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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001037/0.001037, allocations: 84.39 kB / 22.21 MB, free: 2.289 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009582/0.0009582, allocations: 166.5 kB / 25.61 MB, free: 8.91 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9934/0.9934, allocations: 158.6 MB / 187.5 MB, free: 2.797 MB / 170.7 MB " [Timeout remaining time 179] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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: Performance of FrontEnd - loaded program: time 1.273e-06/1.273e-06, allocations: 0 / 251.4 MB, free: 7.281 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.213e-05/1.341e-05, allocations: 2.312 kB / 251.4 MB, free: 7.277 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.001923/0.001936, allocations: 1.676 MB / 253.1 MB, free: 5.586 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004908/0.002427, allocations: 255.2 kB / 253.4 MB, free: 5.336 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.636e-05/0.002513, allocations: 11.94 kB / 253.4 MB, free: 5.324 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001173/0.002631, allocations: 35.61 kB / 253.4 MB, free: 5.289 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 5.086e-05/0.002681, allocations: 15.8 kB / 253.4 MB, free: 5.273 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003424/0.003024, allocations: 131.7 kB / 253.6 MB, free: 5.145 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002186/0.003242, allocations: 271.5 kB / 253.8 MB, free: 4.879 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002141/0.003456, allocations: 155.7 kB / 254 MB, free: 4.723 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000116/0.003573, allocations: 139.8 kB / 254.1 MB, free: 4.586 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.538e-05/0.003668, allocations: 71.77 kB / 254.2 MB, free: 4.516 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 2.912e-05/0.003697, allocations: 24 kB / 254.2 MB, free: 4.492 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.92e-05/0.003756, allocations: 31.98 kB / 254.2 MB, free: 4.461 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 4.403e-05/0.0038, allocations: 59.8 kB / 254.3 MB, free: 4.402 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 5.325e-05/0.003853, allocations: 71.77 kB / 254.4 MB, free: 4.332 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001976/0.004051, allocations: 179.3 kB / 254.5 MB, free: 4.156 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.793e-06/0.004053, allocations: 0 / 254.5 MB, free: 4.156 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.703e-06/0.004055, allocations: 7.922 kB / 254.5 MB, free: 4.148 MB / 234.7 MB Notification: Performance of Transformations before backend: time 3.566e-06/0.004058, allocations: 0 / 254.5 MB, free: 4.148 MB / 234.7 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.0004499/0.004508, allocations: 0.5146 MB / 255.1 MB, free: 3.59 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.545e-05/0.004543, allocations: 15.98 kB / 255.1 MB, free: 3.574 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.75e-05/0.004601, allocations: 48.8 kB / 255.1 MB, free: 3.527 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001635/0.004764, allocations: 168.3 kB / 255.3 MB, free: 3.336 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.737e-05/0.004792, allocations: 28.86 kB / 255.3 MB, free: 3.309 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.379e-05/0.004816, allocations: 24.38 kB / 255.3 MB, free: 3.285 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002258/0.005041, allocations: 240.6 kB / 255.6 MB, free: 3.02 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.558e-06/0.005051, allocations: 192 / 255.6 MB, free: 3.02 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.587e-05/0.005067, allocations: 12.38 kB / 255.6 MB, free: 3.008 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.664e-06/0.005074, allocations: 4.375 kB / 255.6 MB, free: 3.004 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.086e-05/0.005165, allocations: 87.3 kB / 255.7 MB, free: 2.922 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007253/0.005891, allocations: 1.049 MB / 256.7 MB, free: 1.824 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001414/0.006032, allocations: 115.3 kB / 256.8 MB, free: 1.699 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.361e-05/0.006076, allocations: 47.59 kB / 256.9 MB, free: 1.648 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.71e-05/0.006093, allocations: 4 kB / 256.9 MB, free: 1.645 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.914e-05/0.006192, allocations: 104.8 kB / 257 MB, free: 1.527 MB / 234.7 MB Notification: Performance of pre-optimization done (n=23): time 1.493e-06/0.006193, allocations: 4 kB / 257 MB, free: 1.523 MB / 234.7 MB Notification: Performance of matching and sorting (n=23): time 0.0002181/0.006412, allocations: 166 kB / 257.2 MB, free: 1.355 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.077e-05/0.006442, allocations: 59.41 kB / 257.2 MB, free: 1.285 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001024/0.006545, allocations: 217.7 kB / 257.4 MB, free: 1.055 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 2.702e-05/0.006572, allocations: 41.69 kB / 257.5 MB, free: 1.008 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.932e-05/0.006651, allocations: 187.4 kB / 257.7 MB, free: 0.8203 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.557e-05/0.006687, allocations: 63.5 kB / 257.7 MB, free: 0.7578 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.645e-05/0.006763, allocations: 91.59 kB / 257.8 MB, free: 0.6562 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001248/0.006888, allocations: 0.4962 MB / 258.3 MB, free: 152 kB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.652e-05/0.006924, allocations: 32.62 kB / 258.3 MB, free: 120 kB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.246e-05/0.007017, allocations: 134.1 kB / 258.5 MB, free: 15.95 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001322/0.007149, allocations: 172.7 kB / 258.6 MB, free: 15.73 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.007151, allocations: 0 / 258.6 MB, free: 15.73 MB / 250.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0001891/0.00734, allocations: 221.3 kB / 258.8 MB, free: 15.51 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.117e-05/0.007351, allocations: 8 kB / 258.9 MB, free: 15.5 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.879e-06/0.007356, allocations: 4 kB / 258.9 MB, free: 15.5 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.203e-05/0.007368, allocations: 4 kB / 258.9 MB, free: 15.5 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.081e-05/0.007449, allocations: 31.92 kB / 258.9 MB, free: 15.46 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.941e-06/0.007455, allocations: 7.984 kB / 258.9 MB, free: 15.46 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.538e-05/0.00751, allocations: 27.84 kB / 258.9 MB, free: 15.43 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.654e-05/0.007527, allocations: 8 kB / 258.9 MB, free: 15.42 MB / 250.7 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,transition1.condition,stateGraphRoot.suspend,stateGraphRoot.resume) * 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 9.758e-05/0.007624, allocations: 191.2 kB / 259.1 MB, free: 15.22 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.239e-05/0.007647, allocations: 27.83 kB / 259.2 MB, free: 15.2 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001771/0.007824, allocations: 162.7 kB / 259.3 MB, free: 15.03 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-06/0.007826, allocations: 3.938 kB / 259.3 MB, free: 15.03 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.777e-06/0.00783, allocations: 8 kB / 259.3 MB, free: 15.02 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.837e-06/0.007834, allocations: 0 / 259.3 MB, free: 15.02 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003796/0.008213, allocations: 0.489 MB / 259.8 MB, free: 14.49 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.814e-06/0.008215, allocations: 0 / 259.8 MB, free: 14.49 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.443e-05/0.008249, allocations: 19.98 kB / 259.8 MB, free: 14.47 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.525e-06/0.008252, allocations: 4 kB / 259.8 MB, free: 14.47 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.563e-06/0.008258, allocations: 7.938 kB / 259.8 MB, free: 14.46 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.00826, allocations: 0 / 259.8 MB, free: 14.46 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.008261, allocations: 0 / 259.8 MB, free: 14.46 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002/0.008461, allocations: 307.7 kB / 260.1 MB, free: 14.14 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.182e-05/0.008472, allocations: 15.91 kB / 260.2 MB, free: 14.12 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.678e-05/0.008489, allocations: 4 kB / 260.2 MB, free: 14.12 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.208e-05/0.008531, allocations: 7.984 kB / 260.2 MB, free: 14.11 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.13e-05/0.008573, allocations: 19.97 kB / 260.2 MB, free: 14.09 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.125e-06/0.008581, allocations: 3.984 kB / 260.2 MB, free: 14.09 MB / 250.7 MB Notification: Performance of sorting global known variables: time 4.273e-05/0.008623, allocations: 150.9 kB / 260.3 MB, free: 13.95 MB / 250.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.008624, allocations: 0 / 260.3 MB, free: 13.95 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001966/0.00882, allocations: 55.89 kB / 260.4 MB, free: 13.89 MB / 250.7 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.000101/0.008921, allocations: 103.2 kB / 260.5 MB, free: 13.78 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001543/0.009075, allocations: 136.7 kB / 260.6 MB, free: 13.64 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 7.92e-07/0.009076, allocations: 0 / 260.6 MB, free: 13.64 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 6.673e-05/0.009143, allocations: 75.44 kB / 260.7 MB, free: 13.56 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001769/0.00932, allocations: 28.48 kB / 260.7 MB, free: 13.54 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004258/0.009746, allocations: 330.8 kB / 261.1 MB, free: 13.19 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.591e-05/0.009791, allocations: 80.33 kB / 261.1 MB, free: 13.09 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 4.883e-05/0.00984, allocations: 25.94 kB / 261.2 MB, free: 13.07 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.755e-05/0.009928, allocations: 106.2 kB / 261.3 MB, free: 12.96 MB / 250.7 MB Notification: Performance of SimCode: time 5.41e-07/0.009928, allocations: 0 / 261.3 MB, free: 12.96 MB / 250.7 MB Notification: Performance of Templates: time 0.003795/0.01372, allocations: 2.136 MB / 263.4 MB, free: 10.85 MB / 250.7 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=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.8766103298403323]