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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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=5000,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=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001153/0.001153, allocations: 111 kB / 16.63 MB, free: 6.797 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001157/0.001157, allocations: 185.8 kB / 17.55 MB, free: 5.953 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.482/1.482, allocations: 222.9 MB / 241.2 MB, free: 13.73 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001208/0.001208, allocations: 44.47 kB / 300.1 MB, free: 5.996 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1423/0.1436, allocations: 49.46 MB / 349.6 MB, free: 4.531 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.00358/0.1472, allocations: 1.776 MB / 351.3 MB, free: 2.734 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008159/0.1481, allocations: 303.1 kB / 351.6 MB, free: 2.438 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001196/0.1482, allocations: 7.938 kB / 351.6 MB, free: 2.43 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001647/0.1484, allocations: 19.86 kB / 351.7 MB, free: 2.41 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 6.449e-05/0.1485, allocations: 11.92 kB / 351.7 MB, free: 2.398 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004483/0.1489, allocations: 103.8 kB / 351.8 MB, free: 2.297 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003526/0.1493, allocations: 267.5 kB / 352 MB, free: 2.035 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003723/0.1497, allocations: 185.6 kB / 352.2 MB, free: 1.852 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001196/0.1498, allocations: 91.69 kB / 352.3 MB, free: 1.762 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000171/0.15, allocations: 99.53 kB / 352.4 MB, free: 1.664 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.32e-05/0.15, allocations: 24 kB / 352.4 MB, free: 1.641 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.767e-05/0.1501, allocations: 31.98 kB / 352.5 MB, free: 1.609 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.809e-05/0.1502, allocations: 63.78 kB / 352.5 MB, free: 1.547 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001162/0.1503, allocations: 103.5 kB / 352.6 MB, free: 1.445 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003029/0.1506, allocations: 235.2 kB / 352.9 MB, free: 1.215 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.1507, allocations: 0 / 352.9 MB, free: 1.215 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.1507, allocations: 0 / 352.9 MB, free: 1.215 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.544e-06/0.1507, allocations: 0 / 352.9 MB, free: 1.215 MB / 286.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.0007325/0.1514, allocations: 491 kB / 353.3 MB, free: 0.6797 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.192e-05/0.1515, allocations: 11.89 kB / 353.3 MB, free: 0.668 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.816e-05/0.1515, allocations: 28.64 kB / 353.4 MB, free: 0.6406 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002648/0.1518, allocations: 228.1 kB / 353.6 MB, free: 388 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.921e-05/0.1519, allocations: 28.86 kB / 353.6 MB, free: 360 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.21e-05/0.1519, allocations: 32.38 kB / 353.7 MB, free: 328 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004512/0.1524, allocations: 262.6 kB / 353.9 MB, free: 48 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.309e-05/0.1524, allocations: 192 / 353.9 MB, free: 48 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.188e-05/0.1524, allocations: 15.94 kB / 353.9 MB, free: 32 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.276e-05/0.1525, allocations: 4 kB / 353.9 MB, free: 28 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003196/0.1528, allocations: 177.5 kB / 354.1 MB, free: 15.86 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001192/0.154, allocations: 0.975 MB / 355.1 MB, free: 14.81 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003006/0.1543, allocations: 180.4 kB / 355.3 MB, free: 14.62 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000125/0.1544, allocations: 81.72 kB / 355.3 MB, free: 14.54 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.564e-05/0.1545, allocations: 4 kB / 355.3 MB, free: 14.53 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002948/0.1548, allocations: 145 kB / 355.5 MB, free: 14.37 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 3.386e-06/0.1548, allocations: 4 kB / 355.5 MB, free: 14.37 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004794/0.1553, allocations: 226.7 kB / 355.7 MB, free: 14.14 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.436e-05/0.1553, allocations: 81.11 kB / 355.8 MB, free: 14.04 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001345/0.1555, allocations: 157.6 kB / 355.9 MB, free: 13.88 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.96e-05/0.1555, allocations: 37.7 kB / 356 MB, free: 13.84 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.601e-05/0.1556, allocations: 136.5 kB / 356.1 MB, free: 13.7 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.202e-05/0.1557, allocations: 67.17 kB / 356.2 MB, free: 13.63 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.053e-05/0.1558, allocations: 73.69 kB / 356.3 MB, free: 13.55 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000114/0.1559, allocations: 338.9 kB / 356.6 MB, free: 13.21 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000117/0.156, allocations: 67.91 kB / 356.6 MB, free: 13.15 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001723/0.1562, allocations: 136.5 kB / 356.8 MB, free: 12.98 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002677/0.1565, allocations: 189 kB / 357 MB, free: 12.77 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.1565, allocations: 0 / 357 MB, free: 12.77 MB / 302.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003742/0.1569, allocations: 261.2 kB / 357.2 MB, free: 12.51 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.101e-05/0.1569, allocations: 4 kB / 357.2 MB, free: 12.5 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.547e-06/0.1569, allocations: 7.938 kB / 357.2 MB, free: 12.5 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.97e-05/0.1569, allocations: 4 kB / 357.2 MB, free: 12.49 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001439/0.1571, allocations: 28.2 kB / 357.3 MB, free: 12.46 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.029e-05/0.1571, allocations: 8 kB / 357.3 MB, free: 12.46 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001036/0.1572, allocations: 27.73 kB / 357.3 MB, free: 12.43 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.348e-05/0.1573, allocations: 19.98 kB / 357.3 MB, free: 12.41 MB / 302.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.condition,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.0001816/0.1575, allocations: 157.7 kB / 357.5 MB, free: 12.25 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.319e-05/0.1575, allocations: 15.89 kB / 357.5 MB, free: 12.23 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003431/0.1578, allocations: 194.2 kB / 357.7 MB, free: 12.04 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.061e-06/0.1578, allocations: 4 kB / 357.7 MB, free: 12.03 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.58e-06/0.1579, allocations: 4 kB / 357.7 MB, free: 12.03 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.264e-06/0.1579, allocations: 4 kB / 357.7 MB, free: 12.02 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006938/0.1586, allocations: 0.5869 MB / 358.3 MB, free: 11.38 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.1586, allocations: 0 / 358.3 MB, free: 11.38 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.739e-05/0.1587, allocations: 23.92 kB / 358.3 MB, free: 11.35 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.628e-06/0.1587, allocations: 3.938 kB / 358.3 MB, free: 11.35 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.815e-05/0.1587, allocations: 11.94 kB / 358.3 MB, free: 11.34 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.374e-06/0.1587, allocations: 4 kB / 358.3 MB, free: 11.33 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.1587, allocations: 0 / 358.3 MB, free: 11.33 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003163/0.159, allocations: 280.6 kB / 358.6 MB, free: 11.04 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.097e-05/0.1591, allocations: 96.84 kB / 358.7 MB, free: 10.93 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.193e-05/0.1591, allocations: 11.94 kB / 358.7 MB, free: 10.91 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001121/0.1593, allocations: 8 kB / 358.7 MB, free: 10.91 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.078e-05/0.1593, allocations: 23.97 kB / 358.7 MB, free: 10.88 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.45e-05/0.1594, allocations: 4 kB / 358.7 MB, free: 10.88 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.018e-05/0.1594, allocations: 98.64 kB / 358.8 MB, free: 10.79 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1594, allocations: 3.938 kB / 358.8 MB, free: 10.78 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003193/0.1598, allocations: 55.83 kB / 358.9 MB, free: 10.73 MB / 302.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.active,transition1.enableFire,step.localActive,initialStep.localActive,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.active,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.newActive,step.oldActive,transition2.condition,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.0001825/0.16, allocations: 123.1 kB / 359 MB, free: 10.6 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003983/0.1604, allocations: 200.2 kB / 359.2 MB, free: 10.4 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.484e-06/0.1604, allocations: 4.062 kB / 359.2 MB, free: 10.4 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001415/0.1605, allocations: 87.84 kB / 359.3 MB, free: 10.31 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003071/0.1608, allocations: 18.97 kB / 359.3 MB, free: 10.3 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006947/0.1615, allocations: 404.8 kB / 359.7 MB, free: 9.871 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003726/0.1619, allocations: 0.7401 MB / 360.4 MB, free: 9.105 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.307e-05/0.162, allocations: 33.89 kB / 360.5 MB, free: 9.07 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.448e-05/0.1621, allocations: 27.42 kB / 360.5 MB, free: 9.043 MB / 302.1 MB Notification: Performance of SimCode: time 2.9e-07/0.1621, allocations: 0 / 360.5 MB, free: 9.043 MB / 302.1 MB Notification: Performance of Templates: time 0.005234/0.1673, allocations: 1.83 MB / 362.3 MB, free: 7.223 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile (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) 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) Reference file matches