Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.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.001494/0.001494, allocations: 88.62 kB / 20.96 MB, free: 3.477 MB / 18.57 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.001451/0.001451, allocations: 149.4 kB / 24.26 MB, free: 184 kB / 18.57 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.439/1.439, allocations: 173.4 MB / 200.8 MB, free: 9.309 MB / 186.7 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_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.0.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.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.694e-06/1.694e-06, allocations: 0 / 267.3 MB, free: 6.766 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.632e-05/2.801e-05, allocations: 2.312 kB / 267.3 MB, free: 6.762 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.00432/0.004348, allocations: 1.664 MB / 269 MB, free: 5.082 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001008/0.005357, allocations: 303 kB / 269.3 MB, free: 4.785 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001342/0.005491, allocations: 8 kB / 269.3 MB, free: 4.777 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001843/0.005675, allocations: 31.67 kB / 269.3 MB, free: 4.746 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001112/0.005786, allocations: 19.78 kB / 269.3 MB, free: 4.727 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005828/0.006369, allocations: 127.7 kB / 269.4 MB, free: 4.602 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005489/0.006918, allocations: 271.4 kB / 269.7 MB, free: 4.336 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004231/0.007341, allocations: 170 kB / 269.9 MB, free: 4.164 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002681/0.007609, allocations: 139.7 kB / 270 MB, free: 4.027 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002074/0.007817, allocations: 75.77 kB / 270.1 MB, free: 3.953 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 6.521e-05/0.007882, allocations: 24 kB / 270.1 MB, free: 3.93 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001118/0.007994, allocations: 31.98 kB / 270.1 MB, free: 3.898 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 9.869e-05/0.008092, allocations: 59.81 kB / 270.2 MB, free: 3.84 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001424/0.008235, allocations: 67.81 kB / 270.3 MB, free: 3.773 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005211/0.008756, allocations: 267 kB / 270.5 MB, free: 3.512 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.475e-06/0.008758, allocations: 0 / 270.5 MB, free: 3.512 MB / 250.7 MB Notification: Performance of FrontEnd: time 6.31e-07/0.008759, allocations: 0 / 270.5 MB, free: 3.512 MB / 250.7 MB Notification: Performance of Transformations before backend: time 8.997e-06/0.008768, allocations: 0 / 270.5 MB, free: 3.512 MB / 250.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.000963/0.009731, allocations: 425.1 kB / 270.9 MB, free: 3.066 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.064e-05/0.009772, allocations: 12.03 kB / 270.9 MB, free: 3.055 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001437/0.009915, allocations: 44.8 kB / 271 MB, free: 3.012 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004303/0.01035, allocations: 181.5 kB / 271.2 MB, free: 2.809 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.741e-05/0.0104, allocations: 24.88 kB / 271.2 MB, free: 2.785 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.844e-05/0.01046, allocations: 24.38 kB / 271.2 MB, free: 2.762 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000731/0.01119, allocations: 273.9 kB / 271.5 MB, free: 2.473 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.383e-05/0.01121, allocations: 192 / 271.5 MB, free: 2.473 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.761e-05/0.01124, allocations: 8.375 kB / 271.5 MB, free: 2.465 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.109e-05/0.01126, allocations: 4.375 kB / 271.5 MB, free: 2.461 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005096/0.01176, allocations: 173.7 kB / 271.7 MB, free: 2.293 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001699/0.01346, allocations: 0.8477 MB / 272.5 MB, free: 1.395 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004482/0.01391, allocations: 165.1 kB / 272.7 MB, free: 1.215 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001936/0.01411, allocations: 73.78 kB / 272.7 MB, free: 1.137 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.353e-05/0.01414, allocations: 7.984 kB / 272.8 MB, free: 1.129 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003284/0.01447, allocations: 137 kB / 272.9 MB, free: 0.9766 MB / 250.7 MB Notification: Performance of pre-optimization done (n=24): time 2.194e-06/0.01447, allocations: 0 / 272.9 MB, free: 0.9766 MB / 250.7 MB Notification: Performance of matching and sorting (n=24): time 0.0007072/0.01518, allocations: 235.2 kB / 273.1 MB, free: 0.7422 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.354e-05/0.01527, allocations: 88.98 kB / 273.2 MB, free: 0.6367 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002252/0.0155, allocations: 157.8 kB / 273.4 MB, free: 484 kB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 5.191e-05/0.01555, allocations: 33.7 kB / 273.4 MB, free: 444 kB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001728/0.01572, allocations: 148.7 kB / 273.5 MB, free: 288 kB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.564e-05/0.01582, allocations: 63.52 kB / 273.6 MB, free: 224 kB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001712/0.01599, allocations: 77.69 kB / 273.7 MB, free: 140 kB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0002517/0.01624, allocations: 326.8 kB / 274 MB, free: 15.81 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002095/0.01645, allocations: 67.75 kB / 274.1 MB, free: 15.74 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002892/0.01674, allocations: 140.3 kB / 274.2 MB, free: 15.57 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004428/0.01718, allocations: 192.3 kB / 274.4 MB, free: 15.36 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/0.01718, allocations: 0 / 274.4 MB, free: 15.36 MB / 266.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0006862/0.01787, allocations: 277.4 kB / 274.7 MB, free: 15.08 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.181e-05/0.01789, allocations: 8 kB / 274.7 MB, free: 15.07 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.187e-05/0.0179, allocations: 4 kB / 274.7 MB, free: 15.07 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.668e-05/0.01793, allocations: 4 kB / 274.7 MB, free: 15.06 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000199/0.01813, allocations: 31.92 kB / 274.7 MB, free: 15.03 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.575e-05/0.01815, allocations: 7.938 kB / 274.7 MB, free: 15.02 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001876/0.01833, allocations: 27.83 kB / 274.7 MB, free: 15 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.229e-05/0.01838, allocations: 16 kB / 274.8 MB, free: 14.98 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.0002331/0.01861, allocations: 157.7 kB / 274.9 MB, free: 14.82 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.021e-05/0.01867, allocations: 27.94 kB / 274.9 MB, free: 14.79 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005286/0.0192, allocations: 194.5 kB / 275.1 MB, free: 14.59 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.284e-06/0.0192, allocations: 4 kB / 275.1 MB, free: 14.59 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.169e-06/0.01921, allocations: 0 / 275.1 MB, free: 14.59 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.037e-06/0.01922, allocations: 3.984 kB / 275.1 MB, free: 14.59 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001087/0.02031, allocations: 0.5055 MB / 275.6 MB, free: 14.04 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.816e-06/0.02031, allocations: 0 / 275.6 MB, free: 14.04 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001094/0.02042, allocations: 23.92 kB / 275.7 MB, free: 14.02 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.258e-06/0.02042, allocations: 0 / 275.7 MB, free: 14.02 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.038e-05/0.02044, allocations: 4 kB / 275.7 MB, free: 14.01 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.026e-06/0.02045, allocations: 4 kB / 275.7 MB, free: 14.01 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.02045, allocations: 0 / 275.7 MB, free: 14.01 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005485/0.021, allocations: 308.5 kB / 276 MB, free: 13.69 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.202e-05/0.02103, allocations: 15.84 kB / 276 MB, free: 13.67 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.292e-05/0.02107, allocations: 11.98 kB / 276 MB, free: 13.66 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001544/0.02122, allocations: 4 kB / 276 MB, free: 13.66 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001061/0.02133, allocations: 27.89 kB / 276 MB, free: 13.63 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.153e-05/0.02136, allocations: 11.98 kB / 276 MB, free: 13.62 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001107/0.02147, allocations: 99.2 kB / 276.1 MB, free: 13.52 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.02147, allocations: 0 / 276.1 MB, free: 13.52 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005429/0.02202, allocations: 55.89 kB / 276.2 MB, free: 13.46 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: 20 (transition2.t_start,step.localActive,transition1.enableFire,step.active,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.0002347/0.02225, allocations: 110.9 kB / 276.3 MB, free: 13.35 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005169/0.02277, allocations: 171.8 kB / 276.5 MB, free: 13.18 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 5.029e-06/0.02277, allocations: 4 kB / 276.5 MB, free: 13.18 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002361/0.02301, allocations: 79.78 kB / 276.5 MB, free: 13.1 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000442/0.02345, allocations: 31.36 kB / 276.6 MB, free: 13.07 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008638/0.02431, allocations: 350.4 kB / 276.9 MB, free: 12.7 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002165/0.02453, allocations: 129.2 kB / 277 MB, free: 12.55 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001197/0.02465, allocations: 21.95 kB / 277.1 MB, free: 12.53 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.953e-05/0.02475, allocations: 32.48 kB / 277.1 MB, free: 12.5 MB / 266.7 MB Notification: Performance of SimCode: time 6.21e-07/0.02475, allocations: 0 / 277.1 MB, free: 12.5 MB / 266.7 MB Notification: Performance of Templates: time 0.007306/0.03206, allocations: 1.938 MB / 279 MB, free: 10.59 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & ./Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.307530133984983]