Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001917/0.001917, allocations: 107.1 kB / 20.32 MB, free: 1.996 MB / 14.72 MB [Timeout remaining time 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002123/0.002123, allocations: 193 kB / 23.48 MB, free: 5.297 MB / 14.72 MB [Timeout remaining time 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.491/1.491, allocations: 207.6 MB / 234.1 MB, free: 11.04 MB / 190.1 MB [Timeout remaining time 88] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.StateGraph.Examples.FirstExample_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5009,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5009,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2") [Timeout 660] Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001757/0.001757, allocations: 51.92 kB / 345.8 MB, free: 10.63 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2879/0.2896, allocations: 49.13 MB / 394.9 MB, free: 9.383 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.004736/0.2944, allocations: 1.662 MB / 396.6 MB, free: 8.227 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001077/0.2955, allocations: 265.1 kB / 396.8 MB, free: 8.047 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001734/0.2956, allocations: 3.156 kB / 396.8 MB, free: 8.047 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001843/0.2958, allocations: 26.66 kB / 396.9 MB, free: 8.027 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001065/0.2959, allocations: 22.31 kB / 396.9 MB, free: 8.008 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006784/0.2966, allocations: 119.9 kB / 397 MB, free: 7.945 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005666/0.2972, allocations: 266.6 kB / 397.3 MB, free: 7.832 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004635/0.2976, allocations: 169.2 kB / 397.4 MB, free: 7.75 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001822/0.2978, allocations: 85.91 kB / 397.5 MB, free: 7.707 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000241/0.2981, allocations: 101 kB / 397.6 MB, free: 7.648 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.033e-05/0.2981, allocations: 23.69 kB / 397.6 MB, free: 7.648 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001394/0.2983, allocations: 33.11 kB / 397.7 MB, free: 7.645 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.553e-05/0.2984, allocations: 60.02 kB / 397.7 MB, free: 7.605 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001769/0.2985, allocations: 98.14 kB / 397.8 MB, free: 7.539 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005145/0.2991, allocations: 258 kB / 398.1 MB, free: 7.426 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.2991, allocations: 4 kB / 398.1 MB, free: 7.422 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.033e-06/0.2991, allocations: 0 / 398.1 MB, free: 7.422 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.452e-05/0.2991, allocations: 1.094 kB / 398.1 MB, free: 7.422 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0009763/0.3001, allocations: 494.7 kB / 398.6 MB, free: 6.98 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.407e-05/0.3001, allocations: 13.78 kB / 398.6 MB, free: 6.977 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001131/0.3002, allocations: 25.8 kB / 398.6 MB, free: 6.965 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000441/0.3007, allocations: 235.5 kB / 398.8 MB, free: 6.73 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.505e-05/0.3007, allocations: 24.06 kB / 398.8 MB, free: 6.719 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.078e-05/0.3008, allocations: 32.41 kB / 398.9 MB, free: 6.707 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007498/0.3015, allocations: 272.3 kB / 399.1 MB, free: 6.555 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.778e-05/0.3016, allocations: 5.547 kB / 399.1 MB, free: 6.551 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.027e-05/0.3016, allocations: 15.14 kB / 399.2 MB, free: 6.539 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.409e-05/0.3016, allocations: 5.719 kB / 399.2 MB, free: 6.539 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005769/0.3022, allocations: 166 kB / 399.3 MB, free: 6.48 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001293/0.3035, allocations: 0.9634 MB / 400.3 MB, free: 5.699 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003181/0.3038, allocations: 145.1 kB / 400.4 MB, free: 5.625 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001325/0.3039, allocations: 62.44 kB / 400.5 MB, free: 5.598 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.333e-05/0.304, allocations: 5.859 kB / 400.5 MB, free: 5.594 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002238/0.3042, allocations: 128.3 kB / 400.6 MB, free: 5.508 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 2.264e-06/0.3042, allocations: 0 / 400.6 MB, free: 5.508 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.0005066/0.3047, allocations: 206 kB / 400.8 MB, free: 5.422 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.133e-05/0.3047, allocations: 64.06 kB / 400.9 MB, free: 5.352 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001362/0.3049, allocations: 161.4 kB / 401 MB, free: 5.219 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.044e-05/0.3049, allocations: 38.84 kB / 401.1 MB, free: 5.18 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.134e-05/0.305, allocations: 146.4 kB / 401.2 MB, free: 5.047 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.376e-05/0.305, allocations: 57.44 kB / 401.3 MB, free: 5.004 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001236/0.3052, allocations: 77.83 kB / 401.4 MB, free: 4.957 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.413e-05/0.3052, allocations: 328.1 kB / 401.7 MB, free: 4.637 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001428/0.3054, allocations: 62.92 kB / 401.7 MB, free: 4.617 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001743/0.3055, allocations: 143.3 kB / 401.9 MB, free: 4.504 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002734/0.3058, allocations: 184.5 kB / 402.1 MB, free: 4.363 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.428e-06/0.3058, allocations: 6.188 kB / 402.1 MB, free: 4.359 MB / 318.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0004544/0.3063, allocations: 256.4 kB / 402.3 MB, free: 4.238 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.006e-05/0.3063, allocations: 6.5 kB / 402.3 MB, free: 4.238 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.068e-05/0.3063, allocations: 3.125 kB / 402.3 MB, free: 4.238 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.459e-05/0.3063, allocations: 3.812 kB / 402.3 MB, free: 4.238 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001782/0.3065, allocations: 35.08 kB / 402.4 MB, free: 4.23 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.309e-05/0.3065, allocations: 4.75 kB / 402.4 MB, free: 4.23 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001356/0.3066, allocations: 29.06 kB / 402.4 MB, free: 4.211 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.636e-05/0.3067, allocations: 19.61 kB / 402.4 MB, free: 4.203 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 30 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,stateGraphRoot.activeSteps,timer.entryTime,$PRE.timer.entryTime,transition2.enableFire,transition2.localCondition,step.active,step.oldActive,$PRE.step.oldActive,step.newActive,$PRE.step.newActive,step.localActive,$PRE.step.localActive,transition1.t_start,$PRE.transition1.t_start,transition1.fire,transition1.enableFire,initialStep.oldActive,$PRE.initialStep.oldActive,initialStep.newActive,$PRE.initialStep.newActive,initialStep.localActive,$PRE.initialStep.localActive,initialStep.active,$whenCondition1,$whenCondition2,stateGraphRoot.resume,stateGraphRoot.suspend,transition1.condition) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001522/0.3068, allocations: 164.7 kB / 402.6 MB, free: 4.051 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.31e-05/0.3069, allocations: 14.77 kB / 402.6 MB, free: 4.043 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004071/0.3073, allocations: 188.8 kB / 402.8 MB, free: 3.949 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.206e-06/0.3073, allocations: 3.75 kB / 402.8 MB, free: 3.949 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.115e-06/0.3073, allocations: 0.5625 kB / 402.8 MB, free: 3.949 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.943e-06/0.3073, allocations: 1.266 kB / 402.8 MB, free: 3.949 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000839/0.3081, allocations: 0.5919 MB / 403.4 MB, free: 3.5 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.346e-06/0.3081, allocations: 0.5625 kB / 403.4 MB, free: 3.5 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.505e-05/0.3082, allocations: 17.55 kB / 403.4 MB, free: 3.496 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.801e-06/0.3082, allocations: 5.312 kB / 403.4 MB, free: 3.492 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.92e-05/0.3083, allocations: 7.156 kB / 403.4 MB, free: 3.488 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.326e-06/0.3083, allocations: 1.062 kB / 403.4 MB, free: 3.488 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.943e-06/0.3083, allocations: 0.5156 kB / 403.4 MB, free: 3.488 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003259/0.3086, allocations: 275.3 kB / 403.7 MB, free: 3.305 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.805e-05/0.3086, allocations: 97.45 kB / 403.8 MB, free: 3.195 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.262e-05/0.3087, allocations: 14.06 kB / 403.8 MB, free: 3.184 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001077/0.3088, allocations: 9.828 kB / 403.8 MB, free: 3.18 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.32e-05/0.3089, allocations: 19.64 kB / 403.8 MB, free: 3.176 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.823e-05/0.3089, allocations: 8.469 kB / 403.8 MB, free: 3.176 MB / 318.1 MB Notification: Performance of sorting global known variables: time 5.555e-05/0.3089, allocations: 103.3 kB / 403.9 MB, free: 3.09 MB / 318.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3089, allocations: 3.938 kB / 403.9 MB, free: 3.086 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004102/0.3093, allocations: 51.17 kB / 404 MB, free: 3.07 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 19 (step.localActive,step.active,transition1.enableFire,initialStep.active,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.localActive,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.newActive,step.oldActive,transition2.localCondition,transition2.enableFire,timer.entryTime,stateGraphRoot.activeSteps) * Number of discrete states: 2 (initialStep.newActive,step.newActive) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000156/0.3095, allocations: 110.5 kB / 404.1 MB, free: 2.973 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0004237/0.3099, allocations: 170.2 kB / 404.3 MB, free: 2.922 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.3099, allocations: 3.938 kB / 404.3 MB, free: 2.918 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001299/0.3101, allocations: 69.69 kB / 404.3 MB, free: 2.898 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003259/0.3104, allocations: 27.47 kB / 404.4 MB, free: 2.883 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006622/0.311, allocations: 369.4 kB / 404.7 MB, free: 2.625 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002005/0.3112, allocations: 0.7357 MB / 405.4 MB, free: 1.926 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.954e-05/0.3113, allocations: 23.2 kB / 405.5 MB, free: 1.918 MB / 318.1 MB Notification: Performance of SimCode: time 7.81e-07/0.3113, allocations: 0 / 405.5 MB, free: 1.918 MB / 318.1 MB Notification: Performance of Templates: time 0.006077/0.3174, allocations: 2.443 MB / 407.9 MB, free: 1.469 MB / 318.1 MB [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & ./Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] [Timeout remaining time 660] Reference file matches