Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001108/0.001108, allocations: 91.61 kB / 22.19 MB, free: 2.379 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001115/0.001115, allocations: 162 kB / 25.45 MB, free: 8.855 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9984/0.9984, allocations: 158.6 MB / 187.2 MB, free: 3.023 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5009,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5009,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.583e-06/1.583e-06, allocations: 0 / 299.7 MB, free: 3.051 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.768e-05/1.927e-05, allocations: 6.219 kB / 299.7 MB, free: 3.043 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.001903/0.001922, allocations: 1.673 MB / 301.3 MB, free: 1.352 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004966/0.002418, allocations: 259.1 kB / 301.6 MB, free: 1.098 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.141e-05/0.00251, allocations: 7.938 kB / 301.6 MB, free: 1.09 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 9.611e-05/0.002606, allocations: 23.73 kB / 301.6 MB, free: 1.066 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 4.93e-05/0.002655, allocations: 19.73 kB / 301.6 MB, free: 1.047 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003235/0.002979, allocations: 123.8 kB / 301.8 MB, free: 0.9258 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002225/0.003201, allocations: 271.5 kB / 302 MB, free: 0.6602 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001978/0.003399, allocations: 153.9 kB / 302.2 MB, free: 0.5156 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001021/0.003501, allocations: 139.7 kB / 302.3 MB, free: 388 kB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.65e-05/0.003588, allocations: 67.77 kB / 302.4 MB, free: 320 kB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.711e-05/0.003615, allocations: 24 kB / 302.4 MB, free: 296 kB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.708e-05/0.003672, allocations: 32 kB / 302.4 MB, free: 264 kB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 4.309e-05/0.003715, allocations: 59.75 kB / 302.5 MB, free: 204 kB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 5.631e-05/0.003771, allocations: 75.81 kB / 302.6 MB, free: 128 kB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.1371/0.1409, allocations: 255 kB / 302.8 MB, free: 14.29 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.428e-06/0.1409, allocations: 0 / 302.8 MB, free: 14.29 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.213e-06/0.1409, allocations: 0 / 302.8 MB, free: 14.29 MB / 282.7 MB Notification: Performance of Transformations before backend: time 9.067e-06/0.1409, allocations: 0.7969 kB / 302.8 MB, free: 14.29 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.0005411/0.1414, allocations: 416.2 kB / 303.2 MB, free: 13.98 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.909e-05/0.1415, allocations: 14.02 kB / 303.2 MB, free: 13.98 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.414e-05/0.1415, allocations: 25.25 kB / 303.3 MB, free: 13.96 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002408/0.1418, allocations: 173.5 kB / 303.4 MB, free: 13.82 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.01e-05/0.1418, allocations: 23.8 kB / 303.5 MB, free: 13.82 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.045e-05/0.1418, allocations: 29.22 kB / 303.5 MB, free: 13.82 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000326/0.1422, allocations: 274.3 kB / 303.8 MB, free: 13.75 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.07e-05/0.1422, allocations: 1.562 kB / 303.8 MB, free: 13.75 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.818e-05/0.1422, allocations: 11.61 kB / 303.8 MB, free: 13.75 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.795e-06/0.1422, allocations: 7.188 kB / 303.8 MB, free: 13.75 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002107/0.1424, allocations: 170 kB / 303.9 MB, free: 13.74 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007338/0.1431, allocations: 0.8319 MB / 304.8 MB, free: 13.18 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002046/0.1433, allocations: 141.6 kB / 304.9 MB, free: 13.15 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.231e-05/0.1434, allocations: 63.47 kB / 305 MB, free: 13.14 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.928e-05/0.1434, allocations: 2.562 kB / 305 MB, free: 13.14 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001319/0.1436, allocations: 112.7 kB / 305.1 MB, free: 13.09 MB / 282.7 MB Notification: Performance of pre-optimization done (n=23): time 1.613e-06/0.1436, allocations: 1.094 kB / 305.1 MB, free: 13.09 MB / 282.7 MB Notification: Performance of matching and sorting (n=23): time 0.0003188/0.1439, allocations: 219.3 kB / 305.3 MB, free: 13.05 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.211e-05/0.1439, allocations: 61.59 kB / 305.4 MB, free: 12.99 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.844e-05/0.144, allocations: 148.7 kB / 305.5 MB, free: 12.88 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.731e-05/0.144, allocations: 39.36 kB / 305.5 MB, free: 12.85 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.79e-05/0.1441, allocations: 145.9 kB / 305.7 MB, free: 12.73 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.062e-05/0.1441, allocations: 62.41 kB / 305.7 MB, free: 12.7 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.362e-05/0.1442, allocations: 78.28 kB / 305.8 MB, free: 12.68 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 5.689e-05/0.1442, allocations: 330.8 kB / 306.1 MB, free: 12.36 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.071e-05/0.1443, allocations: 63.5 kB / 306.2 MB, free: 12.36 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001186/0.1445, allocations: 138.7 kB / 306.3 MB, free: 12.27 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000176/0.1446, allocations: 186 kB / 306.5 MB, free: 12.14 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.836e-06/0.1446, allocations: 1.156 kB / 306.5 MB, free: 12.14 MB / 282.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0002595/0.1449, allocations: 262.7 kB / 306.8 MB, free: 12.04 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.531e-05/0.1449, allocations: 6.719 kB / 306.8 MB, free: 12.04 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.554e-06/0.1449, allocations: 2.984 kB / 306.8 MB, free: 12.04 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.734e-05/0.1449, allocations: 6.875 kB / 306.8 MB, free: 12.04 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.739e-05/0.145, allocations: 33.61 kB / 306.8 MB, free: 12.04 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.496e-06/0.145, allocations: 8.047 kB / 306.8 MB, free: 12.04 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.127e-05/0.1451, allocations: 29.56 kB / 306.9 MB, free: 12.02 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.21e-05/0.1451, allocations: 13.8 kB / 306.9 MB, free: 12.02 MB / 282.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: 30 ($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,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 (40): * Single equations (assignments): 40 * 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.635e-05/0.1452, allocations: 158.8 kB / 307 MB, free: 11.88 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.37e-05/0.1452, allocations: 17.28 kB / 307.1 MB, free: 11.86 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002297/0.1455, allocations: 190.9 kB / 307.2 MB, free: 11.78 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.126e-06/0.1455, allocations: 6.531 kB / 307.2 MB, free: 11.77 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.701e-06/0.1455, allocations: 0.5156 kB / 307.2 MB, free: 11.77 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.6e-06/0.1455, allocations: 9.672 kB / 307.3 MB, free: 11.77 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004069/0.1459, allocations: 0.5039 MB / 307.8 MB, free: 11.41 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.1459, allocations: 0 / 307.8 MB, free: 11.41 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.211e-05/0.1459, allocations: 13.86 kB / 307.8 MB, free: 11.41 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.547e-06/0.1459, allocations: 2.016 kB / 307.8 MB, free: 11.41 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.109e-05/0.1459, allocations: 5.922 kB / 307.8 MB, free: 11.41 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.744e-06/0.1459, allocations: 1.562 kB / 307.8 MB, free: 11.41 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.1459, allocations: 3.469 kB / 307.8 MB, free: 11.41 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001883/0.1461, allocations: 276.1 kB / 308.1 MB, free: 11.23 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.156e-05/0.1461, allocations: 18.61 kB / 308.1 MB, free: 11.21 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.521e-05/0.1462, allocations: 5.953 kB / 308.1 MB, free: 11.21 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.746e-05/0.1462, allocations: 4.859 kB / 308.1 MB, free: 11.21 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.699e-05/0.1463, allocations: 21.2 kB / 308.1 MB, free: 11.21 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.27e-05/0.1463, allocations: 10.36 kB / 308.1 MB, free: 11.2 MB / 282.7 MB Notification: Performance of sorting global known variables: time 3.473e-05/0.1463, allocations: 107.4 kB / 308.2 MB, free: 11.12 MB / 282.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.1463, allocations: 0 / 308.2 MB, free: 11.12 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002104/0.1465, allocations: 54.86 kB / 308.3 MB, free: 11.1 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 19 (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: 2 (initialStep.newActive,step.newActive) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.0001539/0.1467, allocations: 110.4 kB / 308.4 MB, free: 11 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0002543/0.1469, allocations: 171.6 kB / 308.5 MB, free: 10.96 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.1469, allocations: 0 / 308.5 MB, free: 10.96 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 8.585e-05/0.147, allocations: 66.05 kB / 308.6 MB, free: 10.95 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002155/0.1473, allocations: 28.25 kB / 308.6 MB, free: 10.93 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004365/0.1477, allocations: 356.9 kB / 309 MB, free: 10.69 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.102e-05/0.1478, allocations: 132.5 kB / 309.1 MB, free: 10.6 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.885e-05/0.1478, allocations: 28.47 kB / 309.1 MB, free: 10.59 MB / 282.7 MB Notification: Performance of SimCode: time 4.71e-07/0.1478, allocations: 0 / 309.1 MB, free: 10.59 MB / 282.7 MB Notification: Performance of Templates: time 0.004426/0.1523, allocations: 2.44 MB / 311.6 MB, free: 10.35 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & ./Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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.406359524466097]