Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001313/0.001313, allocations: 74.27 kB / 21.24 MB, free: 0.5547 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001933/0.001933, allocations: 151.2 kB / 24.49 MB, free: 3.723 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.503/1.503, allocations: 173.4 MB / 201.1 MB, free: 12.69 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001638/0.001638, allocations: 50.47 kB / 319.4 MB, free: 3.262 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0966/0.09824, allocations: 52.16 MB / 371.5 MB, free: 7.34 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.003283/0.1015, allocations: 1.649 MB / 373.2 MB, free: 5.68 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008147/0.1023, allocations: 291.1 kB / 373.5 MB, free: 5.395 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001471/0.1025, allocations: 4 kB / 373.5 MB, free: 5.391 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001607/0.1026, allocations: 27.67 kB / 373.5 MB, free: 5.363 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.046e-05/0.1027, allocations: 19.8 kB / 373.5 MB, free: 5.344 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000513/0.1032, allocations: 127.8 kB / 373.7 MB, free: 5.219 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004361/0.1037, allocations: 279.5 kB / 373.9 MB, free: 4.945 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003424/0.104, allocations: 155.6 kB / 374.1 MB, free: 4.785 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001227/0.1041, allocations: 91.7 kB / 374.2 MB, free: 4.695 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001616/0.1043, allocations: 87.53 kB / 374.3 MB, free: 4.609 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.644e-05/0.1043, allocations: 24 kB / 374.3 MB, free: 4.586 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.311e-05/0.1044, allocations: 32 kB / 374.3 MB, free: 4.555 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.489e-05/0.1045, allocations: 59.81 kB / 374.4 MB, free: 4.496 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001179/0.1046, allocations: 83.59 kB / 374.5 MB, free: 4.414 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003428/0.105, allocations: 266.9 kB / 374.7 MB, free: 4.152 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.367e-06/0.105, allocations: 0 / 374.7 MB, free: 4.152 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.105, allocations: 3.938 kB / 374.7 MB, free: 4.148 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.176e-06/0.105, allocations: 0 / 374.7 MB, free: 4.148 MB / 334.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.0007173/0.1057, allocations: 429.1 kB / 375.1 MB, free: 3.695 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.364e-05/0.1057, allocations: 12.03 kB / 375.1 MB, free: 3.684 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.024e-05/0.1058, allocations: 24.8 kB / 375.2 MB, free: 3.66 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003139/0.1061, allocations: 166.3 kB / 375.3 MB, free: 3.473 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.746e-05/0.1061, allocations: 20.88 kB / 375.4 MB, free: 3.453 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.27e-05/0.1062, allocations: 36.38 kB / 375.4 MB, free: 3.418 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004776/0.1067, allocations: 273.8 kB / 375.7 MB, free: 3.129 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.352e-05/0.1067, allocations: 192 / 375.7 MB, free: 3.129 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.019e-05/0.1067, allocations: 15.94 kB / 375.7 MB, free: 3.113 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.868e-06/0.1067, allocations: 8 kB / 375.7 MB, free: 3.105 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003285/0.1071, allocations: 165.8 kB / 375.8 MB, free: 2.945 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001158/0.1082, allocations: 0.8399 MB / 376.7 MB, free: 2.059 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003056/0.1085, allocations: 161.4 kB / 376.8 MB, free: 1.883 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001208/0.1086, allocations: 69.62 kB / 376.9 MB, free: 1.809 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.986e-05/0.1087, allocations: 8 kB / 376.9 MB, free: 1.801 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002281/0.1089, allocations: 141 kB / 377.1 MB, free: 1.645 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.373e-06/0.1089, allocations: 0 / 377.1 MB, free: 1.645 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004759/0.1094, allocations: 224.4 kB / 377.3 MB, free: 1.422 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.713e-05/0.1094, allocations: 85.11 kB / 377.4 MB, free: 1.32 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001492/0.1096, allocations: 149.7 kB / 377.5 MB, free: 1.164 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.118e-05/0.1096, allocations: 41.69 kB / 377.5 MB, free: 1.117 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001354/0.1098, allocations: 148.7 kB / 377.7 MB, free: 0.9648 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.855e-05/0.1098, allocations: 59.53 kB / 377.7 MB, free: 0.9062 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001091/0.1099, allocations: 81.75 kB / 377.8 MB, free: 0.8203 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001617/0.1101, allocations: 330.8 kB / 378.1 MB, free: 500 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001444/0.1102, allocations: 67.97 kB / 378.2 MB, free: 432 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001961/0.1104, allocations: 148.5 kB / 378.4 MB, free: 252 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002998/0.1107, allocations: 200.2 kB / 378.6 MB, free: 20 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.055e-06/0.1107, allocations: 0 / 378.6 MB, free: 20 kB / 334.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0004351/0.1112, allocations: 249.9 kB / 378.8 MB, free: 15.77 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.646e-05/0.1112, allocations: 8 kB / 378.8 MB, free: 15.76 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.601e-06/0.1112, allocations: 0 / 378.8 MB, free: 15.76 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.894e-05/0.1112, allocations: 4 kB / 378.8 MB, free: 15.76 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000146/0.1114, allocations: 44.12 kB / 378.9 MB, free: 15.71 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.261e-05/0.1114, allocations: 11.98 kB / 378.9 MB, free: 15.7 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001062/0.1115, allocations: 27.78 kB / 378.9 MB, free: 15.68 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.046e-05/0.1115, allocations: 16 kB / 378.9 MB, free: 15.66 MB / 350.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: 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.0001721/0.1117, allocations: 157.6 kB / 379.1 MB, free: 15.5 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.606e-05/0.1117, allocations: 11.95 kB / 379.1 MB, free: 15.48 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003661/0.1121, allocations: 198.4 kB / 379.3 MB, free: 15.29 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.986e-06/0.1121, allocations: 0 / 379.3 MB, free: 15.29 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.131e-06/0.1121, allocations: 4 kB / 379.3 MB, free: 15.28 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.019e-06/0.1121, allocations: 0 / 379.3 MB, free: 15.28 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007303/0.1128, allocations: 0.5126 MB / 379.8 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.128e-06/0.1128, allocations: 3.984 kB / 379.8 MB, free: 14.72 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.068e-05/0.1129, allocations: 15.98 kB / 379.8 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.24e-06/0.1129, allocations: 4 kB / 379.8 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.525e-05/0.1129, allocations: 4 kB / 379.8 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.897e-06/0.1129, allocations: 7.938 kB / 379.8 MB, free: 14.69 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/0.1129, allocations: 3.938 kB / 379.8 MB, free: 14.69 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003685/0.1133, allocations: 292.5 kB / 380.1 MB, free: 14.38 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.438e-05/0.1133, allocations: 23.83 kB / 380.1 MB, free: 14.36 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.496e-05/0.1133, allocations: 8 kB / 380.1 MB, free: 14.35 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.294e-05/0.1134, allocations: 8 kB / 380.1 MB, free: 14.34 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.003e-05/0.1135, allocations: 27.89 kB / 380.2 MB, free: 14.32 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.917e-05/0.1135, allocations: 12 kB / 380.2 MB, free: 14.3 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.912e-05/0.1136, allocations: 98.64 kB / 380.3 MB, free: 14.21 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1136, allocations: 0 / 380.3 MB, free: 14.21 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003267/0.1139, allocations: 51.89 kB / 380.3 MB, free: 14.16 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 20 (transition2.t_start,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: 3 (initialStep.newActive,step.newActive,transition2.t_start) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 21 * 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.0001385/0.1141, allocations: 110.9 kB / 380.4 MB, free: 14.04 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003535/0.1144, allocations: 172.1 kB / 380.6 MB, free: 13.88 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.1144, allocations: 0 / 380.6 MB, free: 13.88 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001369/0.1146, allocations: 75.84 kB / 380.7 MB, free: 13.8 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002901/0.1149, allocations: 23.98 kB / 380.7 MB, free: 13.78 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006313/0.1155, allocations: 356.1 kB / 381.1 MB, free: 13.4 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001507/0.1156, allocations: 133.6 kB / 381.2 MB, free: 13.25 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.97e-05/0.1157, allocations: 21.94 kB / 381.2 MB, free: 13.22 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.054e-05/0.1158, allocations: 20.5 kB / 381.2 MB, free: 13.2 MB / 350.1 MB Notification: Performance of SimCode: time 3.51e-07/0.1158, allocations: 0 / 381.2 MB, free: 13.2 MB / 350.1 MB Notification: Performance of Templates: time 0.005752/0.1215, allocations: 1.96 MB / 383.2 MB, free: 11.28 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & ./Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2 -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.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.287565900012851]