Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.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.001925/0.001925, allocations: 91.61 kB / 20.96 MB, free: 3.465 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.002046/0.002046, allocations: 165.3 kB / 24.27 MB, free: 156 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.549/1.549, allocations: 177.1 MB / 204.6 MB, free: 5.602 MB / 186.7 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.583e-06/1.583e-06, allocations: 0 / 272.3 MB, free: 1.871 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.256e-05/3.414e-05, allocations: 2.312 kB / 272.3 MB, free: 1.867 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.003431/0.003465, allocations: 1.721 MB / 274 MB, free: 140 kB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008154/0.004281, allocations: 299.1 kB / 274.3 MB, free: 15.84 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001116/0.004392, allocations: 7.938 kB / 274.3 MB, free: 15.84 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001612/0.004554, allocations: 23.73 kB / 274.3 MB, free: 15.81 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 7.512e-05/0.004629, allocations: 27.75 kB / 274.4 MB, free: 15.79 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004724/0.005101, allocations: 119.8 kB / 274.5 MB, free: 15.67 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003985/0.0055, allocations: 279.5 kB / 274.7 MB, free: 15.39 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003124/0.005812, allocations: 158 kB / 274.9 MB, free: 15.24 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001974/0.006009, allocations: 135.8 kB / 275 MB, free: 15.11 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001612/0.006171, allocations: 75.75 kB / 275.1 MB, free: 15.04 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.551e-05/0.006216, allocations: 31.94 kB / 275.1 MB, free: 15 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.193e-05/0.006298, allocations: 24 kB / 275.2 MB, free: 14.98 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 9.142e-05/0.006389, allocations: 59.81 kB / 275.2 MB, free: 14.92 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001008/0.00649, allocations: 67.81 kB / 275.3 MB, free: 14.86 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003898/0.00688, allocations: 263.1 kB / 275.5 MB, free: 14.6 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.977e-06/0.006884, allocations: 3.938 kB / 275.5 MB, free: 14.59 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.253e-06/0.006885, allocations: 0 / 275.5 MB, free: 14.59 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.931e-06/0.006891, allocations: 0 / 275.5 MB, free: 14.59 MB / 266.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.0008486/0.00774, allocations: 0.5187 MB / 276.1 MB, free: 14.04 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.882e-05/0.007779, allocations: 15.97 kB / 276.1 MB, free: 14.02 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003006/0.008079, allocations: 52.78 kB / 276.1 MB, free: 13.97 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005896/0.008669, allocations: 176.3 kB / 276.3 MB, free: 13.77 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.527e-05/0.008714, allocations: 24.88 kB / 276.3 MB, free: 13.75 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.773e-05/0.008762, allocations: 28.38 kB / 276.4 MB, free: 13.72 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005501/0.009312, allocations: 288 kB / 276.6 MB, free: 13.41 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.445e-05/0.009326, allocations: 192 / 276.6 MB, free: 13.41 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.581e-05/0.009362, allocations: 12.38 kB / 276.6 MB, free: 13.4 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.15e-05/0.009374, allocations: 8.375 kB / 276.7 MB, free: 13.39 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003384/0.009712, allocations: 157.8 kB / 276.8 MB, free: 13.24 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001472/0.01118, allocations: 1.115 MB / 277.9 MB, free: 12.06 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003603/0.01154, allocations: 181.7 kB / 278.1 MB, free: 11.86 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000169/0.01171, allocations: 79.44 kB / 278.2 MB, free: 11.78 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.228e-05/0.01175, allocations: 4 kB / 278.2 MB, free: 11.77 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002809/0.01203, allocations: 160.2 kB / 278.3 MB, free: 11.59 MB / 266.7 MB Notification: Performance of pre-optimization done (n=24): time 1.753e-06/0.01203, allocations: 0 / 278.3 MB, free: 11.59 MB / 266.7 MB Notification: Performance of matching and sorting (n=24): time 0.0005738/0.0126, allocations: 234.3 kB / 278.6 MB, free: 11.36 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001018/0.0127, allocations: 85.11 kB / 278.7 MB, free: 11.26 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000258/0.01296, allocations: 241.7 kB / 278.9 MB, free: 11 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.388e-05/0.01301, allocations: 37.83 kB / 278.9 MB, free: 10.96 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001933/0.0132, allocations: 187.5 kB / 279.1 MB, free: 10.77 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.343e-05/0.01328, allocations: 71.53 kB / 279.2 MB, free: 10.7 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001584/0.01344, allocations: 103.3 kB / 279.3 MB, free: 10.59 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0003236/0.01376, allocations: 0.504 MB / 279.8 MB, free: 10.07 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001345/0.0139, allocations: 59.97 kB / 279.8 MB, free: 10.02 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002581/0.01416, allocations: 176.8 kB / 280 MB, free: 9.801 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003795/0.01454, allocations: 232.6 kB / 280.2 MB, free: 9.531 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.01454, allocations: 0 / 280.2 MB, free: 9.531 MB / 266.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0004722/0.01501, allocations: 273.2 kB / 280.5 MB, free: 9.258 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.174e-05/0.01504, allocations: 12.28 kB / 280.5 MB, free: 9.246 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.504e-06/0.01505, allocations: 0 / 280.5 MB, free: 9.246 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.673e-05/0.01508, allocations: 4 kB / 280.5 MB, free: 9.242 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001766/0.01525, allocations: 43.92 kB / 280.6 MB, free: 9.199 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.351e-05/0.01527, allocations: 4 kB / 280.6 MB, free: 9.195 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001184/0.01539, allocations: 31.77 kB / 280.6 MB, free: 9.164 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.488e-05/0.01541, allocations: 12 kB / 280.6 MB, free: 9.152 MB / 266.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: 32 ($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,transition2.t_start,$PRE.transition2.t_start,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 (41): * Single equations (assignments): 41 * 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.0002253/0.01564, allocations: 200.5 kB / 280.8 MB, free: 8.945 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.698e-05/0.01567, allocations: 19.88 kB / 280.8 MB, free: 8.926 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.528e-05/0.01573, allocations: 24.94 kB / 280.9 MB, free: 8.906 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.897e-06/0.01574, allocations: 4 kB / 280.9 MB, free: 8.902 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.551e-06/0.01574, allocations: 7.875 kB / 280.9 MB, free: 8.895 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.42e-06/0.01575, allocations: 0 / 280.9 MB, free: 8.895 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008634/0.01661, allocations: 0.5767 MB / 281.4 MB, free: 8.273 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.01661, allocations: 0 / 281.4 MB, free: 8.273 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.773e-05/0.01668, allocations: 12 kB / 281.5 MB, free: 8.262 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.255e-06/0.01668, allocations: 0 / 281.5 MB, free: 8.262 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.118e-05/0.0167, allocations: 11.98 kB / 281.5 MB, free: 8.25 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.823e-06/0.01671, allocations: 0 / 281.5 MB, free: 8.25 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-06/0.01671, allocations: 0 / 281.5 MB, free: 8.25 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000413/0.01712, allocations: 355.2 kB / 281.8 MB, free: 7.879 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.799e-05/0.01715, allocations: 19.83 kB / 281.8 MB, free: 7.859 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.51e-05/0.01717, allocations: 8 kB / 281.8 MB, free: 7.852 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.001e-05/0.01725, allocations: 4 kB / 281.8 MB, free: 7.848 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.028e-05/0.01733, allocations: 19.97 kB / 281.9 MB, free: 7.828 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.649e-05/0.01735, allocations: 11.98 kB / 281.9 MB, free: 7.816 MB / 266.7 MB Notification: Performance of sorting global known variables: time 9.81e-05/0.01745, allocations: 142.2 kB / 282 MB, free: 7.68 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01745, allocations: 0 / 282 MB, free: 7.68 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000289/0.01774, allocations: 51.89 kB / 282.1 MB, free: 7.629 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 18 (transition2.t_start,step.localActive,transition1.enableFire,step.active,initialStep.active,$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: 3 (initialStep.newActive,step.newActive,transition2.t_start) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0001722/0.01791, allocations: 115.1 kB / 282.2 MB, free: 7.504 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003804/0.01829, allocations: 195.5 kB / 282.4 MB, free: 7.312 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.01829, allocations: 0 / 282.4 MB, free: 7.312 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000164/0.01846, allocations: 95.39 kB / 282.5 MB, free: 7.215 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003364/0.01879, allocations: 27.92 kB / 282.5 MB, free: 7.188 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008259/0.01962, allocations: 350.9 kB / 282.8 MB, free: 6.812 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001726/0.01979, allocations: 129.8 kB / 283 MB, free: 6.668 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 8.685e-05/0.01988, allocations: 25.94 kB / 283 MB, free: 6.645 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.808e-05/0.01995, allocations: 20.5 kB / 283 MB, free: 6.621 MB / 266.7 MB Notification: Performance of SimCode: time 8.61e-07/0.01995, allocations: 0 / 283 MB, free: 6.621 MB / 266.7 MB Notification: Performance of Templates: time 0.006005/0.02595, allocations: 1.751 MB / 284.8 MB, free: 4.906 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & ./Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.5300796260125935]