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.001902/0.001902, allocations: 81.64 kB / 21.43 MB, free: 296 kB / 14.72 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.002736/0.002736, allocations: 164.4 kB / 24.7 MB, free: 3.547 MB / 14.72 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 1.341/1.341, allocations: 158.6 MB / 186.5 MB, free: 6.402 MB / 174.1 MB " [Timeout remaining time 178] 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.823e-06/1.823e-06, allocations: 0 / 298.9 MB, free: 8.758 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.359e-05/3.542e-05, allocations: 2.281 kB / 298.9 MB, free: 8.754 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.003573/0.003608, allocations: 1.656 MB / 300.6 MB, free: 7.078 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007362/0.004345, allocations: 267.8 kB / 300.8 MB, free: 6.816 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001008/0.004446, allocations: 3.938 kB / 300.8 MB, free: 6.812 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001476/0.004593, allocations: 19.75 kB / 300.9 MB, free: 6.793 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 7.691e-05/0.00467, allocations: 23.73 kB / 300.9 MB, free: 6.77 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004528/0.005123, allocations: 123.8 kB / 301 MB, free: 6.648 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003721/0.005495, allocations: 279.4 kB / 301.3 MB, free: 6.375 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003397/0.005835, allocations: 153.9 kB / 301.4 MB, free: 6.23 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002111/0.006046, allocations: 139.7 kB / 301.6 MB, free: 6.094 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001529/0.006199, allocations: 71.77 kB / 301.6 MB, free: 6.023 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.12e-05/0.00625, allocations: 24 kB / 301.7 MB, free: 6 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.831e-05/0.006348, allocations: 31.92 kB / 301.7 MB, free: 5.969 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.576e-05/0.006434, allocations: 59.81 kB / 301.7 MB, free: 5.91 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001078/0.006542, allocations: 63.83 kB / 301.8 MB, free: 5.848 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003682/0.00691, allocations: 267.1 kB / 302.1 MB, free: 5.586 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.995e-06/0.006913, allocations: 0 / 302.1 MB, free: 5.586 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.006914, allocations: 0 / 302.1 MB, free: 5.586 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.781e-06/0.00692, allocations: 0 / 302.1 MB, free: 5.586 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.0007337/0.007654, allocations: 420.6 kB / 302.5 MB, free: 5.141 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.276e-05/0.007696, allocations: 11.98 kB / 302.5 MB, free: 5.129 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.979e-05/0.007766, allocations: 24.8 kB / 302.5 MB, free: 5.105 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003385/0.008105, allocations: 177.4 kB / 302.7 MB, free: 4.906 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.616e-05/0.008141, allocations: 20.88 kB / 302.7 MB, free: 4.887 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.844e-05/0.008189, allocations: 32.38 kB / 302.7 MB, free: 4.855 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004912/0.008681, allocations: 269.9 kB / 303 MB, free: 4.57 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.619e-05/0.008697, allocations: 192 / 303 MB, free: 4.57 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.311e-05/0.00873, allocations: 12.36 kB / 303 MB, free: 4.559 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.503e-05/0.008745, allocations: 8.375 kB / 303 MB, free: 4.551 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003251/0.00907, allocations: 169.7 kB / 303.2 MB, free: 4.383 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001174/0.01024, allocations: 0.8244 MB / 304 MB, free: 3.516 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003042/0.01055, allocations: 150.7 kB / 304.2 MB, free: 3.359 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001174/0.01067, allocations: 60.83 kB / 304.2 MB, free: 3.297 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.503e-05/0.01069, allocations: 11.94 kB / 304.2 MB, free: 3.285 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001981/0.01089, allocations: 123.2 kB / 304.4 MB, free: 3.152 MB / 286.1 MB Notification: Performance of pre-optimization done (n=23): time 1.753e-06/0.01089, allocations: 0 / 304.4 MB, free: 3.152 MB / 286.1 MB Notification: Performance of matching and sorting (n=23): time 0.0004515/0.01134, allocations: 221.2 kB / 304.6 MB, free: 2.93 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.063e-05/0.01139, allocations: 55.41 kB / 304.6 MB, free: 2.863 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000149/0.01154, allocations: 161.5 kB / 304.8 MB, free: 2.695 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.681e-05/0.01158, allocations: 37.7 kB / 304.8 MB, free: 2.652 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001257/0.0117, allocations: 140.8 kB / 305 MB, free: 2.508 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.704e-05/0.01176, allocations: 59.53 kB / 305 MB, free: 2.449 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001092/0.01187, allocations: 78.02 kB / 305.1 MB, free: 2.363 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001603/0.01203, allocations: 330.8 kB / 305.4 MB, free: 2.031 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001271/0.01216, allocations: 72.56 kB / 305.5 MB, free: 1.961 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001751/0.01233, allocations: 133.9 kB / 305.6 MB, free: 1.801 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002727/0.01261, allocations: 184.4 kB / 305.8 MB, free: 1.59 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/0.01261, allocations: 4 kB / 305.8 MB, free: 1.586 MB / 286.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0004012/0.01301, allocations: 253.3 kB / 306 MB, free: 1.332 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.436e-05/0.01303, allocations: 15.88 kB / 306.1 MB, free: 1.316 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.035e-05/0.01304, allocations: 7.984 kB / 306.1 MB, free: 1.309 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.419e-05/0.01307, allocations: 4 kB / 306.1 MB, free: 1.305 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001584/0.01323, allocations: 27.92 kB / 306.1 MB, free: 1.277 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.947e-06/0.01324, allocations: 8.281 kB / 306.1 MB, free: 1.27 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001081/0.01334, allocations: 27.78 kB / 306.1 MB, free: 1.242 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.947e-05/0.01338, allocations: 19.98 kB / 306.2 MB, free: 1.223 MB / 286.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: 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 0.0001768/0.01356, allocations: 148.4 kB / 306.3 MB, free: 1.066 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.273e-05/0.01359, allocations: 19.84 kB / 306.3 MB, free: 1.047 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004029/0.014, allocations: 190.4 kB / 306.5 MB, free: 0.8555 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.08e-06/0.014, allocations: 4 kB / 306.5 MB, free: 0.8516 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.18e-06/0.01401, allocations: 0 / 306.5 MB, free: 0.8516 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.739e-06/0.01401, allocations: 0 / 306.5 MB, free: 0.8516 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007083/0.01472, allocations: 0.5088 MB / 307 MB, free: 308 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.01472, allocations: 0 / 307 MB, free: 308 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.489e-05/0.0148, allocations: 15.98 kB / 307 MB, free: 292 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.675e-06/0.0148, allocations: 0 / 307 MB, free: 292 kB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.738e-05/0.01482, allocations: 8 kB / 307 MB, free: 284 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.684e-06/0.01482, allocations: 0 / 307 MB, free: 284 kB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/0.01482, allocations: 3.938 kB / 307 MB, free: 280 kB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003549/0.01518, allocations: 279.7 kB / 307.3 MB, free: 15.98 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.321e-05/0.0152, allocations: 19.84 kB / 307.3 MB, free: 15.96 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.454e-05/0.01522, allocations: 3.938 kB / 307.3 MB, free: 15.96 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.514e-05/0.01532, allocations: 15.98 kB / 307.4 MB, free: 15.95 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.74e-05/0.01541, allocations: 19.97 kB / 307.4 MB, free: 15.93 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.551e-05/0.01542, allocations: 8 kB / 307.4 MB, free: 15.92 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.517e-05/0.0155, allocations: 99.2 kB / 307.5 MB, free: 15.82 MB / 302.1 MB Notification: Performance of sort global known variables: time 7e-08/0.0155, allocations: 0 / 307.5 MB, free: 15.82 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000321/0.01582, allocations: 59.83 kB / 307.5 MB, free: 15.76 MB / 302.1 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.0002324/0.01605, allocations: 107.2 kB / 307.6 MB, free: 15.65 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003924/0.01644, allocations: 168.1 kB / 307.8 MB, free: 15.48 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.679e-06/0.01645, allocations: 8.188 kB / 307.8 MB, free: 15.48 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001418/0.01659, allocations: 67.91 kB / 307.9 MB, free: 15.41 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003417/0.01693, allocations: 30.47 kB / 307.9 MB, free: 15.38 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006819/0.01761, allocations: 334.7 kB / 308.2 MB, free: 15.03 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001425/0.01775, allocations: 133.2 kB / 308.4 MB, free: 14.88 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.386e-05/0.01783, allocations: 25.89 kB / 308.4 MB, free: 14.85 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.314e-05/0.01789, allocations: 24.48 kB / 308.4 MB, free: 14.83 MB / 302.1 MB Notification: Performance of SimCode: time 3.01e-07/0.01789, allocations: 0 / 308.4 MB, free: 14.83 MB / 302.1 MB Notification: Performance of Templates: time 0.00642/0.02431, allocations: 1.894 MB / 310.3 MB, free: 12.94 MB / 302.1 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.339335072785616]