Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.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.001092/0.001092, allocations: 91.61 kB / 22.18 MB, free: 2.383 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.00102/0.00102, allocations: 155.7 kB / 25.45 MB, free: 8.859 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.9204/0.9204, allocations: 158.6 MB / 187.2 MB, free: 3.051 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_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5009,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5009,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.242e-06/1.242e-06, allocations: 0 / 299.7 MB, free: 6.961 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.402e-05/2.526e-05, allocations: 2.281 kB / 299.7 MB, free: 6.957 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.001982/0.002007, allocations: 1.629 MB / 301.3 MB, free: 5.309 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005572/0.002564, allocations: 263.2 kB / 301.6 MB, free: 5.051 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.687e-05/0.002651, allocations: 7.938 kB / 301.6 MB, free: 5.043 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001159/0.002767, allocations: 27.67 kB / 301.6 MB, free: 5.016 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 4.167e-05/0.002809, allocations: 19.8 kB / 301.6 MB, free: 4.996 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003963/0.003205, allocations: 123.8 kB / 301.7 MB, free: 4.875 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002538/0.003459, allocations: 279.4 kB / 302 MB, free: 4.602 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002234/0.003682, allocations: 159.5 kB / 302.2 MB, free: 4.445 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001094/0.003792, allocations: 139.7 kB / 302.3 MB, free: 4.309 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001054/0.003897, allocations: 67.78 kB / 302.4 MB, free: 4.242 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.957e-05/0.003927, allocations: 24 kB / 302.4 MB, free: 4.219 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.539e-05/0.003992, allocations: 31.98 kB / 302.4 MB, free: 4.188 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 4.702e-05/0.004039, allocations: 59.81 kB / 302.5 MB, free: 4.129 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 5.91e-05/0.004098, allocations: 71.75 kB / 302.5 MB, free: 4.059 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002432/0.004341, allocations: 267.1 kB / 302.8 MB, free: 3.797 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.523e-06/0.004343, allocations: 0 / 302.8 MB, free: 3.797 MB / 282.7 MB Notification: Performance of FrontEnd: time 7.21e-07/0.004343, allocations: 0 / 302.8 MB, free: 3.797 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.799e-06/0.004348, allocations: 4 kB / 302.8 MB, free: 3.793 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.0005003/0.004849, allocations: 424.6 kB / 303.2 MB, free: 3.348 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.253e-05/0.004881, allocations: 11.98 kB / 303.2 MB, free: 3.336 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.998e-05/0.004931, allocations: 24.8 kB / 303.3 MB, free: 3.312 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002215/0.005153, allocations: 169.5 kB / 303.4 MB, free: 3.121 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.915e-05/0.005182, allocations: 24.86 kB / 303.4 MB, free: 3.098 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.914e-05/0.005211, allocations: 32.38 kB / 303.5 MB, free: 3.066 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00032/0.005531, allocations: 265.9 kB / 303.7 MB, free: 2.785 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.193e-05/0.005543, allocations: 4.125 kB / 303.7 MB, free: 2.781 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.83e-05/0.005561, allocations: 8.375 kB / 303.8 MB, free: 2.773 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.993e-06/0.005568, allocations: 12.38 kB / 303.8 MB, free: 2.762 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002007/0.005769, allocations: 169.8 kB / 303.9 MB, free: 2.594 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007663/0.006535, allocations: 0.836 MB / 304.8 MB, free: 1.715 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001991/0.006734, allocations: 134.4 kB / 304.9 MB, free: 1.578 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.611e-05/0.00681, allocations: 68.86 kB / 305 MB, free: 1.508 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.675e-05/0.006827, allocations: 0 / 305 MB, free: 1.508 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001317/0.006959, allocations: 131.2 kB / 305.1 MB, free: 1.367 MB / 282.7 MB Notification: Performance of pre-optimization done (n=23): time 1.393e-06/0.00696, allocations: 0 / 305.1 MB, free: 1.367 MB / 282.7 MB Notification: Performance of matching and sorting (n=23): time 0.0002947/0.007255, allocations: 213.3 kB / 305.3 MB, free: 1.152 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.588e-05/0.007291, allocations: 63.33 kB / 305.4 MB, free: 1.078 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.903e-05/0.00738, allocations: 161.9 kB / 305.5 MB, free: 0.9102 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.151e-05/0.007401, allocations: 41.64 kB / 305.6 MB, free: 0.8633 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.489e-05/0.007476, allocations: 144.7 kB / 305.7 MB, free: 0.7148 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.155e-05/0.007508, allocations: 59.52 kB / 305.8 MB, free: 0.6562 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.147e-05/0.007579, allocations: 78.02 kB / 305.8 MB, free: 0.5703 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 8.91e-05/0.007668, allocations: 330.8 kB / 306.2 MB, free: 244 kB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.36e-05/0.007742, allocations: 60.62 kB / 306.2 MB, free: 184 kB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001114/0.007853, allocations: 137.8 kB / 306.4 MB, free: 16 kB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001807/0.008034, allocations: 184.5 kB / 306.5 MB, free: 15.8 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.434e-06/0.008036, allocations: 3.938 kB / 306.5 MB, free: 15.8 MB / 298.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0002507/0.008287, allocations: 265.1 kB / 306.8 MB, free: 15.54 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.346e-05/0.008301, allocations: 8 kB / 306.8 MB, free: 15.53 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.468e-06/0.008305, allocations: 0 / 306.8 MB, free: 15.53 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.409e-05/0.008319, allocations: 4 kB / 306.8 MB, free: 15.52 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.759e-05/0.008407, allocations: 39.91 kB / 306.8 MB, free: 15.48 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.234e-06/0.008414, allocations: 4 kB / 306.8 MB, free: 15.48 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.755e-05/0.008472, allocations: 23.84 kB / 306.9 MB, free: 15.46 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.2e-05/0.008494, allocations: 16 kB / 306.9 MB, free: 15.44 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: 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.0001073/0.008601, allocations: 156.7 kB / 307 MB, free: 15.28 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.538e-05/0.008616, allocations: 19.88 kB / 307.1 MB, free: 15.26 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002304/0.008847, allocations: 190.7 kB / 307.2 MB, free: 15.07 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.607e-06/0.00885, allocations: 4 kB / 307.3 MB, free: 15.06 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.651e-06/0.008856, allocations: 3.984 kB / 307.3 MB, free: 15.06 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.138e-06/0.00886, allocations: 0 / 307.3 MB, free: 15.06 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004204/0.00928, allocations: 0.501 MB / 307.8 MB, free: 14.52 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.009282, allocations: 0 / 307.8 MB, free: 14.52 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.224e-05/0.009324, allocations: 19.92 kB / 307.8 MB, free: 14.5 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.896e-06/0.009327, allocations: 4 kB / 307.8 MB, free: 14.49 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.183e-05/0.009339, allocations: 8 kB / 307.8 MB, free: 14.48 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.042e-06/0.00934, allocations: 0 / 307.8 MB, free: 14.48 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.183e-06/0.009341, allocations: 0 / 307.8 MB, free: 14.48 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001972/0.009538, allocations: 283.7 kB / 308.1 MB, free: 14.19 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.268e-05/0.009551, allocations: 15.84 kB / 308.1 MB, free: 14.18 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.812e-05/0.009569, allocations: 8 kB / 308.1 MB, free: 14.17 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.282e-05/0.009612, allocations: 8 kB / 308.1 MB, free: 14.16 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.422e-05/0.009676, allocations: 23.89 kB / 308.1 MB, free: 14.14 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.224e-05/0.009689, allocations: 8 kB / 308.1 MB, free: 14.13 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.299e-05/0.009732, allocations: 103.2 kB / 308.2 MB, free: 14.03 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.009732, allocations: 4 kB / 308.2 MB, free: 14.02 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000208/0.00994, allocations: 51.83 kB / 308.3 MB, free: 13.97 MB / 298.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,step.active,transition1.enableFire,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.0001111/0.01005, allocations: 111.2 kB / 308.4 MB, free: 13.86 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002122/0.01026, allocations: 167.8 kB / 308.6 MB, free: 13.69 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.774e-06/0.01026, allocations: 0 / 308.6 MB, free: 13.69 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 7.942e-05/0.01034, allocations: 75.84 kB / 308.6 MB, free: 13.62 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001925/0.01054, allocations: 24.53 kB / 308.7 MB, free: 13.59 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004642/0.011, allocations: 360.5 kB / 309 MB, free: 13.21 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.022e-05/0.01109, allocations: 133.1 kB / 309.1 MB, free: 13.05 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.592e-05/0.01114, allocations: 24.48 kB / 309.2 MB, free: 13.03 MB / 298.7 MB Notification: Performance of SimCode: time 8.21e-07/0.01114, allocations: 0 / 309.2 MB, free: 13.03 MB / 298.7 MB Notification: Performance of Templates: time 0.00312/0.01426, allocations: 2.46 MB / 311.6 MB, free: 10.57 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & ./Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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: 4.516050349920988]