Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00111/0.00111, allocations: 79.91 kB / 21.18 MB, free: 3.387 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001196/0.001196, allocations: 141.1 kB / 24.54 MB, free: 36 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.011/1.011, allocations: 173.3 MB / 201.1 MB, free: 8.945 MB / 186.7 MB " [Timeout remaining time 179] 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,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample") translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.104e-06/2.104e-06, allocations: 0 / 268 MB, free: 6.305 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.342e-05/3.553e-05, allocations: 6.312 kB / 268 MB, free: 6.297 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.002136/0.002172, allocations: 1.498 MB / 269.5 MB, free: 4.785 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.000578/0.00275, allocations: 279.1 kB / 269.7 MB, free: 4.512 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.933e-05/0.002829, allocations: 4 kB / 269.7 MB, free: 4.508 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000138/0.002967, allocations: 27.67 kB / 269.8 MB, free: 4.48 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 3.921e-05/0.003006, allocations: 19.75 kB / 269.8 MB, free: 4.461 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004188/0.003425, allocations: 127.8 kB / 269.9 MB, free: 4.336 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002842/0.003709, allocations: 267.5 kB / 270.2 MB, free: 4.074 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002599/0.003969, allocations: 138.8 kB / 270.3 MB, free: 3.934 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001161/0.004085, allocations: 131.8 kB / 270.4 MB, free: 3.805 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000111/0.004196, allocations: 75.75 kB / 270.5 MB, free: 3.73 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.129e-05/0.004228, allocations: 20 kB / 270.5 MB, free: 3.711 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.179e-05/0.004299, allocations: 35.94 kB / 270.6 MB, free: 3.676 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.989e-05/0.004349, allocations: 55.81 kB / 270.6 MB, free: 3.621 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 6.367e-05/0.004413, allocations: 67.88 kB / 270.7 MB, free: 3.555 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002388/0.004652, allocations: 179.3 kB / 270.9 MB, free: 3.379 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.755e-06/0.004655, allocations: 0 / 270.9 MB, free: 3.379 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.303e-06/0.004656, allocations: 0 / 270.9 MB, free: 3.379 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.699e-06/0.004661, allocations: 0 / 270.9 MB, free: 3.379 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.0005171/0.005178, allocations: 0.5072 MB / 271.4 MB, free: 2.836 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.892e-05/0.005217, allocations: 12.92 kB / 271.4 MB, free: 2.824 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.6e-05/0.005283, allocations: 32.84 kB / 271.4 MB, free: 2.793 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002119/0.005494, allocations: 180.3 kB / 271.6 MB, free: 2.59 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.224e-05/0.005527, allocations: 28.86 kB / 271.6 MB, free: 2.559 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.906e-05/0.005556, allocations: 24.38 kB / 271.6 MB, free: 2.535 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002767/0.005832, allocations: 213.7 kB / 271.8 MB, free: 2.309 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.222e-05/0.005845, allocations: 192 / 271.8 MB, free: 2.309 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.85e-05/0.005863, allocations: 8.375 kB / 271.9 MB, free: 2.301 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.759e-06/0.005873, allocations: 4.375 kB / 271.9 MB, free: 2.297 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001472/0.00602, allocations: 102.8 kB / 272 MB, free: 2.199 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007163/0.006736, allocations: 0.6695 MB / 272.6 MB, free: 1.488 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002153/0.006952, allocations: 135.3 kB / 272.8 MB, free: 1.344 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.329e-05/0.007025, allocations: 66.59 kB / 272.8 MB, free: 1.277 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.151e-05/0.007047, allocations: 4 kB / 272.8 MB, free: 1.273 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001307/0.007177, allocations: 108.9 kB / 272.9 MB, free: 1.152 MB / 250.7 MB Notification: Performance of pre-optimization done (n=24): time 2.254e-06/0.00718, allocations: 0 / 272.9 MB, free: 1.152 MB / 250.7 MB Notification: Performance of matching and sorting (n=24): time 0.0003116/0.007491, allocations: 199.8 kB / 273.1 MB, free: 0.9531 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.942e-05/0.007531, allocations: 55.41 kB / 273.2 MB, free: 0.8867 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001149/0.007646, allocations: 209.8 kB / 273.4 MB, free: 0.6641 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.034e-05/0.007666, allocations: 37.7 kB / 273.4 MB, free: 0.6211 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.176e-05/0.007758, allocations: 179.5 kB / 273.6 MB, free: 448 kB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.709e-05/0.007795, allocations: 63.48 kB / 273.7 MB, free: 384 kB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.536e-05/0.00788, allocations: 91.66 kB / 273.8 MB, free: 280 kB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001499/0.00803, allocations: 0.4923 MB / 274.2 MB, free: 15.77 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.032e-05/0.0081, allocations: 44.62 kB / 274.3 MB, free: 15.73 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001024/0.008203, allocations: 122.7 kB / 274.4 MB, free: 15.57 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001588/0.008362, allocations: 169.3 kB / 274.6 MB, free: 15.38 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.29e-06/0.008367, allocations: 8 kB / 274.6 MB, free: 15.37 MB / 266.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0002569/0.008624, allocations: 225.3 kB / 274.8 MB, free: 15.14 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.729e-05/0.008641, allocations: 8 kB / 274.8 MB, free: 15.13 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.231e-06/0.008647, allocations: 0 / 274.8 MB, free: 15.13 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.338e-05/0.008671, allocations: 7.938 kB / 274.8 MB, free: 15.12 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000127/0.008798, allocations: 35.92 kB / 274.9 MB, free: 15.09 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.173e-06/0.008805, allocations: 0 / 274.9 MB, free: 15.09 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.34e-05/0.008868, allocations: 39.98 kB / 274.9 MB, free: 15.05 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.024e-05/0.008888, allocations: 8 kB / 274.9 MB, free: 15.04 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 31 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,stateGraphRoot.activeSteps,transition2.t_start,$PRE.transition2.t_start,transition2.fire,transition2.enableFire,step.oldActive,$PRE.step.oldActive,step.newActive,$PRE.step.newActive,step.localActive,$PRE.step.localActive,step.active,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,transition2.condition,transition1.condition) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 39 * 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.0001054/0.008994, allocations: 184.5 kB / 275.1 MB, free: 14.85 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.163e-05/0.009015, allocations: 19.95 kB / 275.1 MB, free: 14.83 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002358/0.009251, allocations: 178.4 kB / 275.3 MB, free: 14.65 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.659e-06/0.009256, allocations: 7.938 kB / 275.3 MB, free: 14.64 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.969e-06/0.009261, allocations: 0 / 275.3 MB, free: 14.64 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.308e-06/0.009265, allocations: 0 / 275.3 MB, free: 14.64 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000476/0.009741, allocations: 0.5056 MB / 275.8 MB, free: 14.09 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.464e-06/0.009744, allocations: 4 kB / 275.8 MB, free: 14.09 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.069e-05/0.009794, allocations: 19.92 kB / 275.8 MB, free: 14.07 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.438e-06/0.009799, allocations: 4 kB / 275.8 MB, free: 14.07 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.114e-05/0.00981, allocations: 4 kB / 275.8 MB, free: 14.06 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.264e-06/0.009812, allocations: 0 / 275.8 MB, free: 14.06 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.009813, allocations: 3.938 kB / 275.8 MB, free: 14.06 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002181/0.01003, allocations: 324 kB / 276.1 MB, free: 13.72 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.625e-05/0.01005, allocations: 19.84 kB / 276.2 MB, free: 13.7 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.118e-05/0.01007, allocations: 7.984 kB / 276.2 MB, free: 13.7 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.818e-05/0.01012, allocations: 4 kB / 276.2 MB, free: 13.69 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.625e-05/0.01018, allocations: 31.89 kB / 276.2 MB, free: 13.66 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.264e-05/0.0102, allocations: 12 kB / 276.2 MB, free: 13.65 MB / 266.7 MB Notification: Performance of sorting global known variables: time 4.631e-05/0.01024, allocations: 131.2 kB / 276.3 MB, free: 13.52 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01024, allocations: 4 kB / 276.3 MB, free: 13.52 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002117/0.01045, allocations: 47.89 kB / 276.4 MB, free: 13.47 MB / 266.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 (transition2.enableFire,step.active,transition1.enableFire,initialStep.active,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.localActive,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.localActive,step.newActive,step.oldActive,transition2.fire,transition2.t_start,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 (26): * Single equations (assignments): 22 * 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.0001506/0.0106, allocations: 111.2 kB / 276.5 MB, free: 13.35 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000239/0.01084, allocations: 143.5 kB / 276.6 MB, free: 13.21 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.01085, allocations: 448 / 276.6 MB, free: 13.21 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 8.975e-05/0.01094, allocations: 87.47 kB / 276.7 MB, free: 13.12 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002286/0.01116, allocations: 35.91 kB / 276.8 MB, free: 13.08 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004936/0.01166, allocations: 319.2 kB / 277.1 MB, free: 12.74 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.37e-05/0.01171, allocations: 76.33 kB / 277.1 MB, free: 12.64 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.681e-05/0.01177, allocations: 25.94 kB / 277.2 MB, free: 12.62 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.176e-05/0.01182, allocations: 28.5 kB / 277.2 MB, free: 12.59 MB / 266.7 MB Notification: Performance of SimCode: time 4.31e-07/0.01182, allocations: 0 / 277.2 MB, free: 12.59 MB / 266.7 MB Notification: Performance of Templates: time 0.004467/0.01629, allocations: 1.953 MB / 279.2 MB, free: 10.67 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.sim & ./Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample/FirstExample.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.967319328337908]