Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009933/0.0009933, allocations: 85.91 kB / 22.22 MB, free: 2.281 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009528/0.0009528, allocations: 164.5 kB / 25.61 MB, free: 8.852 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.054/1.054, allocations: 177 MB / 205.9 MB, free: 4.43 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.152e-06/1.152e-06, allocations: 0 / 274.1 MB, free: 4.305 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.03e-05/1.145e-05, allocations: 2.312 kB / 274.1 MB, free: 4.301 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.001812/0.001823, allocations: 1.722 MB / 275.8 MB, free: 2.578 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004635/0.002287, allocations: 307 kB / 276.1 MB, free: 2.277 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.963e-05/0.002356, allocations: 5.906 kB / 276.1 MB, free: 2.273 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 9.504e-05/0.002451, allocations: 27.67 kB / 276.1 MB, free: 2.246 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 4.104e-05/0.002492, allocations: 19.81 kB / 276.2 MB, free: 2.227 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002509/0.002743, allocations: 123.7 kB / 276.3 MB, free: 2.105 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002089/0.002952, allocations: 284.3 kB / 276.6 MB, free: 1.828 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001815/0.003134, allocations: 146.8 kB / 276.7 MB, free: 1.684 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001053/0.003239, allocations: 146.2 kB / 276.8 MB, free: 1.543 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.225e-05/0.003331, allocations: 71.75 kB / 276.9 MB, free: 1.473 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.514e-05/0.003356, allocations: 24 kB / 276.9 MB, free: 1.449 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.691e-05/0.003403, allocations: 28 kB / 277 MB, free: 1.422 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.45e-05/0.003448, allocations: 59.81 kB / 277 MB, free: 1.363 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 4.953e-05/0.003497, allocations: 63.81 kB / 277.1 MB, free: 1.301 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001721/0.003669, allocations: 188.8 kB / 277.3 MB, free: 1.117 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.573e-06/0.003671, allocations: 0 / 277.3 MB, free: 1.117 MB / 250.7 MB Notification: Performance of FrontEnd: time 8.21e-07/0.003672, allocations: 0 / 277.3 MB, free: 1.117 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.697e-06/0.003676, allocations: 0 / 277.3 MB, free: 1.117 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.0004458/0.004121, allocations: 0.5196 MB / 277.8 MB, free: 0.5586 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.613e-05/0.004148, allocations: 8.031 kB / 277.8 MB, free: 0.5508 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001421/0.00429, allocations: 53.28 kB / 277.8 MB, free: 0.5 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001459/0.004435, allocations: 172.9 kB / 278 MB, free: 312 kB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.282e-05/0.004458, allocations: 28.86 kB / 278 MB, free: 284 kB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.36e-05/0.004482, allocations: 32.38 kB / 278.1 MB, free: 252 kB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001976/0.004679, allocations: 224.7 kB / 278.3 MB, free: 0 / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.127e-06/0.004689, allocations: 192 / 278.3 MB, free: 0 / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.631e-05/0.004715, allocations: 12.45 kB / 278.3 MB, free: 15.98 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.452e-06/0.004721, allocations: 4.375 kB / 278.3 MB, free: 15.98 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.329e-05/0.004815, allocations: 91.28 kB / 278.4 MB, free: 15.89 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006417/0.005456, allocations: 1.03 MB / 279.4 MB, free: 14.81 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001419/0.005598, allocations: 140.5 kB / 279.6 MB, free: 14.65 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.441e-05/0.005643, allocations: 59.33 kB / 279.6 MB, free: 14.59 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.341e-05/0.005656, allocations: 4 kB / 279.6 MB, free: 14.58 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001101/0.005766, allocations: 134.7 kB / 279.8 MB, free: 14.43 MB / 266.7 MB Notification: Performance of pre-optimization done (n=24): time 1.202e-06/0.005767, allocations: 0 / 279.8 MB, free: 14.43 MB / 266.7 MB Notification: Performance of matching and sorting (n=24): time 0.0002079/0.005975, allocations: 173.3 kB / 279.9 MB, free: 14.25 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.615e-05/0.006011, allocations: 85.11 kB / 280 MB, free: 14.15 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.966e-05/0.006101, allocations: 213.7 kB / 280.2 MB, free: 13.93 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.296e-05/0.006124, allocations: 37.7 kB / 280.3 MB, free: 13.88 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.416e-05/0.006218, allocations: 195.4 kB / 280.5 MB, free: 13.68 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.322e-05/0.006251, allocations: 63.62 kB / 280.5 MB, free: 13.62 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.246e-05/0.006324, allocations: 91.25 kB / 280.6 MB, free: 13.52 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001097/0.006434, allocations: 0.5001 MB / 281.1 MB, free: 13.01 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.726e-05/0.006471, allocations: 31.97 kB / 281.1 MB, free: 12.98 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.301e-05/0.006554, allocations: 136.7 kB / 281.3 MB, free: 12.8 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001226/0.006676, allocations: 176.7 kB / 281.4 MB, free: 12.59 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.006679, allocations: 0 / 281.4 MB, free: 12.59 MB / 266.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.000181/0.00686, allocations: 209.3 kB / 281.6 MB, free: 12.38 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.282e-05/0.006872, allocations: 11.94 kB / 281.7 MB, free: 12.37 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.178e-06/0.006877, allocations: 0 / 281.7 MB, free: 12.37 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.959e-06/0.006887, allocations: 8.281 kB / 281.7 MB, free: 12.36 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.922e-05/0.006966, allocations: 43.86 kB / 281.7 MB, free: 12.32 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.168e-06/0.00697, allocations: 4 kB / 281.7 MB, free: 12.31 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.393e-05/0.007024, allocations: 31.77 kB / 281.7 MB, free: 12.28 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.989e-06/0.007034, allocations: 8 kB / 281.7 MB, free: 12.27 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,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 (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 9.27e-05/0.007127, allocations: 184.5 kB / 281.9 MB, free: 12.08 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.215e-05/0.007149, allocations: 23.89 kB / 282 MB, free: 12.06 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.111e-05/0.00718, allocations: 24.92 kB / 282 MB, free: 12.04 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.104e-06/0.007182, allocations: 0 / 282 MB, free: 12.04 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.436e-06/0.007185, allocations: 8 kB / 282 MB, free: 12.03 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.597e-06/0.007189, allocations: 0 / 282 MB, free: 12.03 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003548/0.007544, allocations: 490.1 kB / 282.5 MB, free: 11.52 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-06/0.007545, allocations: 0 / 282.5 MB, free: 11.52 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.5e-05/0.00758, allocations: 19.92 kB / 282.5 MB, free: 11.5 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.884e-06/0.007582, allocations: 0 / 282.5 MB, free: 11.5 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.157e-06/0.007591, allocations: 8 kB / 282.5 MB, free: 11.49 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.82e-07/0.007592, allocations: 0 / 282.5 MB, free: 11.49 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.007593, allocations: 0 / 282.5 MB, free: 11.49 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001672/0.00776, allocations: 322.2 kB / 282.8 MB, free: 11.15 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.092e-05/0.007771, allocations: 15.84 kB / 282.8 MB, free: 11.14 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.555e-05/0.007787, allocations: 12 kB / 282.8 MB, free: 11.12 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.275e-05/0.007829, allocations: 7.984 kB / 282.8 MB, free: 11.12 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.876e-05/0.007868, allocations: 19.83 kB / 282.9 MB, free: 11.1 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.215e-06/0.007876, allocations: 8 kB / 282.9 MB, free: 11.09 MB / 266.7 MB Notification: Performance of sorting global known variables: time 3.646e-05/0.007913, allocations: 131.2 kB / 283 MB, free: 10.96 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.007913, allocations: 0 / 283 MB, free: 10.96 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001909/0.008104, allocations: 55.83 kB / 283.1 MB, free: 10.91 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 6.852e-05/0.008172, allocations: 103.2 kB / 283.2 MB, free: 10.79 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001493/0.008322, allocations: 144.4 kB / 283.3 MB, free: 10.65 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 9.91e-07/0.008323, allocations: 0 / 283.3 MB, free: 10.65 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 5.981e-05/0.008382, allocations: 67.58 kB / 283.4 MB, free: 10.58 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001827/0.008565, allocations: 31.83 kB / 283.4 MB, free: 10.55 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003367/0.008902, allocations: 331.5 kB / 283.7 MB, free: 10.19 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.409e-05/0.008946, allocations: 80.27 kB / 283.8 MB, free: 10.09 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 4.928e-05/0.008995, allocations: 26.56 kB / 283.8 MB, free: 10.07 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.558e-05/0.009081, allocations: 102.2 kB / 283.9 MB, free: 9.969 MB / 266.7 MB Notification: Performance of SimCode: time 3.61e-07/0.009081, allocations: 0 / 283.9 MB, free: 9.969 MB / 266.7 MB Notification: Performance of Templates: time 0.003372/0.01245, allocations: 1.937 MB / 285.9 MB, free: 8.066 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & ./Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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","",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.849048212636262]