Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant2.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.001369/0.001369, allocations: 114.5 kB / 21.17 MB, free: 0.6172 MB / 14.72 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.001473/0.001473, allocations: 206.8 kB / 24.47 MB, free: 4.023 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.623/1.623, allocations: 230.4 MB / 258.1 MB, free: 8.148 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.1.0-beta.om_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.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant2") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002072/0.002072, allocations: 67.84 kB / 378.7 MB, free: 2.945 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4219/0.424, allocations: 53.32 MB / 432 MB, free: 7.402 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.003684/0.4277, allocations: 1.69 MB / 433.7 MB, free: 5.707 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009376/0.4286, allocations: 299.1 kB / 434 MB, free: 5.414 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001272/0.4288, allocations: 8 kB / 434 MB, free: 5.406 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001672/0.4289, allocations: 27.67 kB / 434 MB, free: 5.379 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 5.88e-05/0.429, allocations: 15.81 kB / 434.1 MB, free: 5.363 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005019/0.4295, allocations: 115.8 kB / 434.2 MB, free: 5.25 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004166/0.4299, allocations: 271.5 kB / 434.4 MB, free: 4.984 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000366/0.4303, allocations: 154.9 kB / 434.6 MB, free: 4.828 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001381/0.4304, allocations: 99.69 kB / 434.7 MB, free: 4.73 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001872/0.4306, allocations: 103.5 kB / 434.8 MB, free: 4.629 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.81e-05/0.4306, allocations: 20 kB / 434.8 MB, free: 4.609 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.415e-05/0.4307, allocations: 31.98 kB / 434.8 MB, free: 4.578 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.423e-05/0.4308, allocations: 63.77 kB / 434.9 MB, free: 4.516 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001532/0.431, allocations: 107.5 kB / 435 MB, free: 4.41 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004361/0.4314, allocations: 260.9 kB / 435.3 MB, free: 4.156 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.931e-06/0.4314, allocations: 0 / 435.3 MB, free: 4.156 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.635e-06/0.4314, allocations: 0 / 435.3 MB, free: 4.156 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.157e-06/0.4314, allocations: 0 / 435.3 MB, free: 4.156 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.0009721/0.4324, allocations: 0.4906 MB / 435.7 MB, free: 3.613 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.691e-05/0.4324, allocations: 8.031 kB / 435.8 MB, free: 3.605 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003269/0.4328, allocations: 36.78 kB / 435.8 MB, free: 3.57 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004907/0.4333, allocations: 232 kB / 436 MB, free: 3.305 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.2e-05/0.4333, allocations: 20.94 kB / 436 MB, free: 3.285 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.978e-05/0.4334, allocations: 32.31 kB / 436.1 MB, free: 3.254 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000506/0.4339, allocations: 270.6 kB / 436.3 MB, free: 2.969 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.329e-05/0.4339, allocations: 192 / 436.3 MB, free: 2.969 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.288e-05/0.4339, allocations: 15.94 kB / 436.4 MB, free: 2.953 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.628e-06/0.4339, allocations: 4 kB / 436.4 MB, free: 2.949 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003331/0.4343, allocations: 173.5 kB / 436.5 MB, free: 2.781 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00135/0.4356, allocations: 0.9557 MB / 437.5 MB, free: 1.762 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003313/0.4359, allocations: 165.3 kB / 437.6 MB, free: 1.582 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001281/0.4361, allocations: 73.72 kB / 437.7 MB, free: 1.504 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.454e-05/0.4361, allocations: 4 kB / 437.7 MB, free: 1.5 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002403/0.4363, allocations: 133.1 kB / 437.8 MB, free: 1.352 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.272e-06/0.4363, allocations: 0 / 437.8 MB, free: 1.352 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.000511/0.4368, allocations: 220.8 kB / 438.1 MB, free: 1.133 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.59e-05/0.4369, allocations: 89.22 kB / 438.2 MB, free: 1.027 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000155/0.4371, allocations: 154.7 kB / 438.3 MB, free: 0.8672 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.284e-05/0.4371, allocations: 37.7 kB / 438.3 MB, free: 0.8242 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001307/0.4373, allocations: 140.7 kB / 438.5 MB, free: 0.6797 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.952e-05/0.4373, allocations: 71.44 kB / 438.5 MB, free: 0.6094 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001824/0.4375, allocations: 77.64 kB / 438.6 MB, free: 0.5273 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0003264/0.4378, allocations: 330.8 kB / 438.9 MB, free: 200 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001368/0.438, allocations: 67.75 kB / 439 MB, free: 132 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003458/0.4383, allocations: 136.5 kB / 439.1 MB, free: 15.96 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004677/0.4388, allocations: 192.3 kB / 439.3 MB, free: 15.75 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.915e-06/0.4388, allocations: 0 / 439.3 MB, free: 15.75 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0004694/0.4393, allocations: 257.3 kB / 439.6 MB, free: 15.49 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.71e-05/0.4393, allocations: 8 kB / 439.6 MB, free: 15.48 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.136e-05/0.4393, allocations: 3.984 kB / 439.6 MB, free: 15.48 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.605e-05/0.4393, allocations: 4 kB / 439.6 MB, free: 15.47 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001566/0.4395, allocations: 31.92 kB / 439.6 MB, free: 15.44 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.278e-05/0.4395, allocations: 4 kB / 439.6 MB, free: 15.44 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001138/0.4396, allocations: 28.12 kB / 439.7 MB, free: 15.41 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.32e-05/0.4396, allocations: 16 kB / 439.7 MB, free: 15.39 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.0002003/0.4398, allocations: 165.6 kB / 439.8 MB, free: 15.22 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.76e-05/0.4399, allocations: 11.95 kB / 439.8 MB, free: 15.21 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.826e-05/0.4399, allocations: 20.78 kB / 439.9 MB, free: 15.2 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.466e-06/0.4399, allocations: 7.938 kB / 439.9 MB, free: 15.19 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.325e-06/0.4399, allocations: 0 / 439.9 MB, free: 15.19 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.869e-06/0.4399, allocations: 7.922 kB / 439.9 MB, free: 15.18 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008302/0.4408, allocations: 0.5752 MB / 440.5 MB, free: 14.54 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/0.4408, allocations: 0 / 440.5 MB, free: 14.54 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.107e-05/0.4409, allocations: 15.98 kB / 440.5 MB, free: 14.52 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.214e-06/0.4409, allocations: 0 / 440.5 MB, free: 14.52 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.378e-05/0.4409, allocations: 8 kB / 440.5 MB, free: 14.52 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.178e-06/0.4409, allocations: 3.938 kB / 440.5 MB, free: 14.51 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.4409, allocations: 0 / 440.5 MB, free: 14.51 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004031/0.4413, allocations: 294.9 kB / 440.8 MB, free: 14.21 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.3e-05/0.4414, allocations: 89.02 kB / 440.9 MB, free: 14.1 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.798e-05/0.4414, allocations: 4 kB / 440.9 MB, free: 14.1 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.81e-05/0.4415, allocations: 7.938 kB / 440.9 MB, free: 14.09 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.303e-05/0.4416, allocations: 23.97 kB / 440.9 MB, free: 14.07 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.407e-05/0.4416, allocations: 8 kB / 440.9 MB, free: 14.06 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001475/0.4417, allocations: 102.2 kB / 441 MB, free: 13.96 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4417, allocations: 0 / 441 MB, free: 13.96 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003051/0.442, allocations: 51.88 kB / 441.1 MB, free: 13.91 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: 18 (transition2.t_start,step.localActive,step.active,transition1.enableFire,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.0001638/0.4422, allocations: 111.2 kB / 441.2 MB, free: 13.79 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003717/0.4426, allocations: 176 kB / 441.3 MB, free: 13.62 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.4426, allocations: 0 / 441.3 MB, free: 13.62 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001467/0.4427, allocations: 75.7 kB / 441.4 MB, free: 13.54 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003213/0.443, allocations: 23.44 kB / 441.4 MB, free: 13.52 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007415/0.4438, allocations: 344.3 kB / 441.8 MB, free: 13.16 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005025/0.4443, allocations: 0.7365 MB / 442.5 MB, free: 12.39 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002101/0.4445, allocations: 25.94 kB / 442.5 MB, free: 12.37 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.288e-05/0.4446, allocations: 19.44 kB / 442.6 MB, free: 12.35 MB / 350.1 MB Notification: Performance of SimCode: time 5.81e-07/0.4446, allocations: 0 / 442.6 MB, free: 12.35 MB / 350.1 MB Notification: Performance of Templates: time 0.006641/0.4512, allocations: 1.772 MB / 444.3 MB, free: 10.59 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & ./Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant2 -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_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: 5.072682943660766]