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.001124/0.001124, allocations: 84 kB / 21.43 MB, free: 3.125 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.003695/0.003695, allocations: 142.5 kB / 24.68 MB, free: 9.426 MB / 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 0.8237/0.8237, allocations: 173.4 MB / 201.2 MB, free: 9.438 MB / 186.7 MB " [Timeout remaining time 179] 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.392e-06/1.392e-06, allocations: 0 / 319.6 MB, free: 5.879 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.295e-05/2.435e-05, allocations: 6.219 kB / 319.7 MB, free: 5.871 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.001912/0.001936, allocations: 1.665 MB / 321.3 MB, free: 4.191 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005276/0.002464, allocations: 295.1 kB / 321.6 MB, free: 3.902 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.196e-05/0.002545, allocations: 7.938 kB / 321.6 MB, free: 3.895 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001161/0.002662, allocations: 23.67 kB / 321.6 MB, free: 3.871 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 4.498e-05/0.002707, allocations: 27.73 kB / 321.7 MB, free: 3.844 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003719/0.003079, allocations: 119.8 kB / 321.8 MB, free: 3.727 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002436/0.003322, allocations: 279.5 kB / 322.1 MB, free: 3.453 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002177/0.00354, allocations: 150 kB / 322.2 MB, free: 3.305 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001072/0.003647, allocations: 143.7 kB / 322.3 MB, free: 3.164 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.251e-05/0.00374, allocations: 75.7 kB / 322.4 MB, free: 3.09 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.7e-05/0.003767, allocations: 24 kB / 322.4 MB, free: 3.066 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.36e-05/0.00383, allocations: 35.98 kB / 322.5 MB, free: 3.031 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 4.857e-05/0.003879, allocations: 59.81 kB / 322.5 MB, free: 2.973 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 5.607e-05/0.003935, allocations: 63.83 kB / 322.6 MB, free: 2.91 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002505/0.004185, allocations: 271.1 kB / 322.9 MB, free: 2.645 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.655e-06/0.004188, allocations: 0 / 322.9 MB, free: 2.645 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.432e-06/0.004189, allocations: 0 / 322.9 MB, free: 2.645 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.298e-06/0.004194, allocations: 0 / 322.9 MB, free: 2.645 MB / 282.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.0004667/0.00466, allocations: 428.4 kB / 323.3 MB, free: 2.199 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.134e-05/0.004692, allocations: 8.031 kB / 323.3 MB, free: 2.191 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.702e-05/0.004739, allocations: 24.8 kB / 323.3 MB, free: 2.168 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002122/0.004951, allocations: 169.4 kB / 323.5 MB, free: 1.977 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.054e-05/0.004981, allocations: 24.86 kB / 323.5 MB, free: 1.953 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.623e-05/0.005008, allocations: 32.38 kB / 323.5 MB, free: 1.922 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002948/0.005302, allocations: 265.9 kB / 323.8 MB, free: 1.637 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.528e-06/0.005312, allocations: 192 / 323.8 MB, free: 1.637 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.946e-05/0.005331, allocations: 16.36 kB / 323.8 MB, free: 1.621 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.382e-06/0.005338, allocations: 4.375 kB / 323.8 MB, free: 1.617 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001957/0.005534, allocations: 173.7 kB / 324 MB, free: 1.449 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007315/0.006265, allocations: 0.836 MB / 324.8 MB, free: 0.5625 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001935/0.006458, allocations: 157.4 kB / 325 MB, free: 400 kB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.301e-05/0.006531, allocations: 69.69 kB / 325 MB, free: 324 kB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.684e-05/0.006548, allocations: 0 / 325 MB, free: 324 kB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001446/0.006693, allocations: 142.8 kB / 325.2 MB, free: 164 kB / 282.7 MB Notification: Performance of pre-optimization done (n=24): time 9.52e-07/0.006694, allocations: 0 / 325.2 MB, free: 164 kB / 282.7 MB Notification: Performance of matching and sorting (n=24): time 0.0003253/0.007019, allocations: 232.2 kB / 325.4 MB, free: 15.93 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.458e-05/0.007064, allocations: 93.03 kB / 325.5 MB, free: 15.82 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.021e-05/0.007154, allocations: 164.7 kB / 325.7 MB, free: 15.65 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.063e-05/0.007175, allocations: 33.7 kB / 325.7 MB, free: 15.61 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.084e-05/0.007245, allocations: 140.8 kB / 325.8 MB, free: 15.47 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.429e-05/0.00728, allocations: 63.53 kB / 325.9 MB, free: 15.41 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.945e-05/0.007349, allocations: 77.67 kB / 326 MB, free: 15.32 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.219e-05/0.007431, allocations: 326.8 kB / 326.3 MB, free: 15 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.63e-05/0.007508, allocations: 67.91 kB / 326.3 MB, free: 14.93 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001076/0.007615, allocations: 148.1 kB / 326.5 MB, free: 14.75 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001743/0.00779, allocations: 192.4 kB / 326.7 MB, free: 14.54 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.537e-06/0.007793, allocations: 4 kB / 326.7 MB, free: 14.53 MB / 298.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0002543/0.008047, allocations: 265.2 kB / 326.9 MB, free: 14.27 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.621e-05/0.008064, allocations: 4 kB / 326.9 MB, free: 14.26 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.012e-06/0.00807, allocations: 4 kB / 327 MB, free: 14.26 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.427e-05/0.008084, allocations: 4 kB / 327 MB, free: 14.25 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.14e-05/0.008175, allocations: 35.91 kB / 327 MB, free: 14.22 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.412e-06/0.008182, allocations: 4 kB / 327 MB, free: 14.21 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.168e-05/0.008243, allocations: 27.78 kB / 327 MB, free: 14.19 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.133e-05/0.008265, allocations: 19.98 kB / 327 MB, free: 14.17 MB / 298.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.0001041/0.008369, allocations: 158 kB / 327.2 MB, free: 14 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.528e-05/0.008384, allocations: 15.84 kB / 327.2 MB, free: 13.99 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002212/0.008605, allocations: 211 kB / 327.4 MB, free: 13.78 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.987e-06/0.008609, allocations: 4 kB / 327.4 MB, free: 13.77 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.008614, allocations: 0 / 327.4 MB, free: 13.77 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.61e-06/0.00862, allocations: 0 / 327.4 MB, free: 13.77 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000485/0.009105, allocations: 0.5049 MB / 327.9 MB, free: 13.23 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.986e-06/0.009108, allocations: 4 kB / 327.9 MB, free: 13.22 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.053e-05/0.009148, allocations: 11.98 kB / 327.9 MB, free: 13.21 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.246e-06/0.009152, allocations: 7.938 kB / 328 MB, free: 13.2 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.033e-05/0.009162, allocations: 8 kB / 328 MB, free: 13.2 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.808e-06/0.009166, allocations: 4 kB / 328 MB, free: 13.19 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.009167, allocations: 0 / 328 MB, free: 13.19 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002012/0.009369, allocations: 284.1 kB / 328.2 MB, free: 12.89 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.506e-05/0.009384, allocations: 23.83 kB / 328.3 MB, free: 12.87 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.696e-05/0.009401, allocations: 4 kB / 328.3 MB, free: 12.87 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.92e-05/0.00945, allocations: 8 kB / 328.3 MB, free: 12.86 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.09e-05/0.009511, allocations: 19.95 kB / 328.3 MB, free: 12.84 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.19e-05/0.009523, allocations: 12 kB / 328.3 MB, free: 12.83 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.156e-05/0.009564, allocations: 95.2 kB / 328.4 MB, free: 12.73 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.009564, allocations: 8 kB / 328.4 MB, free: 12.73 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002118/0.009776, allocations: 47.89 kB / 328.5 MB, free: 12.68 MB / 298.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.0001542/0.00993, allocations: 126.8 kB / 328.6 MB, free: 12.55 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002417/0.01017, allocations: 167.8 kB / 328.7 MB, free: 12.38 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.01017, allocations: 0 / 328.7 MB, free: 12.38 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 8.421e-05/0.01026, allocations: 77.06 kB / 328.8 MB, free: 12.31 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002248/0.01048, allocations: 24.05 kB / 328.8 MB, free: 12.29 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004761/0.01096, allocations: 373.8 kB / 329.2 MB, free: 11.89 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.909e-05/0.01104, allocations: 125.2 kB / 329.3 MB, free: 11.75 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.513e-05/0.01108, allocations: 28.48 kB / 329.4 MB, free: 11.72 MB / 298.7 MB Notification: Performance of SimCode: time 5.71e-07/0.01108, allocations: 4 kB / 329.4 MB, free: 11.71 MB / 298.7 MB Notification: Performance of Templates: time 0.003024/0.01411, allocations: 2.474 MB / 331.8 MB, free: 9.238 MB / 298.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.015331707894802]