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.001441/0.001441, allocations: 78.19 kB / 21.42 MB, free: 3.07 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.001453/0.001453, allocations: 153.9 kB / 24.8 MB, free: 8.941 MB / 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.098/1.098, allocations: 173.3 MB / 201.4 MB, free: 9.215 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 1.803e-06/1.803e-06, allocations: 0 / 268.4 MB, free: 6.238 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.205e-05/3.385e-05, allocations: 2.312 kB / 268.4 MB, free: 6.234 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.002642/0.002676, allocations: 1.502 MB / 269.9 MB, free: 4.719 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007144/0.00339, allocations: 283.1 kB / 270.1 MB, free: 4.441 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001012/0.003492, allocations: 7.938 kB / 270.2 MB, free: 4.434 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001343/0.003626, allocations: 23.67 kB / 270.2 MB, free: 4.41 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 4.048e-05/0.003666, allocations: 15.81 kB / 270.2 MB, free: 4.395 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000422/0.004088, allocations: 119.7 kB / 270.3 MB, free: 4.277 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003475/0.004436, allocations: 271.5 kB / 270.6 MB, free: 4.012 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003169/0.004753, allocations: 146.8 kB / 270.7 MB, free: 3.863 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001485/0.004901, allocations: 127.8 kB / 270.8 MB, free: 3.738 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00013/0.005031, allocations: 75.75 kB / 270.9 MB, free: 3.664 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.48e-05/0.005066, allocations: 24 kB / 270.9 MB, free: 3.641 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.767e-05/0.005144, allocations: 24 kB / 271 MB, free: 3.617 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 5.878e-05/0.005202, allocations: 63.8 kB / 271 MB, free: 3.555 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 6.042e-05/0.005263, allocations: 63.83 kB / 271.1 MB, free: 3.492 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002929/0.005556, allocations: 179.3 kB / 271.3 MB, free: 3.316 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.125e-06/0.005559, allocations: 0 / 271.3 MB, free: 3.316 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.172e-06/0.00556, allocations: 3.938 kB / 271.3 MB, free: 3.312 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.548e-06/0.005565, allocations: 0 / 271.3 MB, free: 3.312 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.0005192/0.006084, allocations: 0.5072 MB / 271.8 MB, free: 2.77 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.423e-05/0.006128, allocations: 12.86 kB / 271.8 MB, free: 2.758 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.437e-05/0.006192, allocations: 40.84 kB / 271.8 MB, free: 2.719 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001854/0.006378, allocations: 168.3 kB / 272 MB, free: 2.527 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.873e-05/0.006407, allocations: 20.88 kB / 272 MB, free: 2.504 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.331e-05/0.00643, allocations: 28.38 kB / 272 MB, free: 2.477 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002131/0.006643, allocations: 197.7 kB / 272.2 MB, free: 2.266 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.496e-06/0.006651, allocations: 192 / 272.2 MB, free: 2.266 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.597e-05/0.006667, allocations: 16.31 kB / 272.3 MB, free: 2.25 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.813e-06/0.006674, allocations: 4.375 kB / 272.3 MB, free: 2.246 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.126e-05/0.006765, allocations: 75.36 kB / 272.3 MB, free: 2.176 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007877/0.007553, allocations: 0.6466 MB / 273 MB, free: 1.496 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001808/0.007734, allocations: 131.2 kB / 273.1 MB, free: 1.355 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.62e-05/0.00778, allocations: 47.66 kB / 273.2 MB, free: 1.305 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.254e-05/0.007803, allocations: 4 kB / 273.2 MB, free: 1.301 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001274/0.00793, allocations: 112.8 kB / 273.3 MB, free: 1.176 MB / 250.7 MB Notification: Performance of pre-optimization done (n=24): time 2.415e-06/0.007932, allocations: 0 / 273.3 MB, free: 1.176 MB / 250.7 MB Notification: Performance of matching and sorting (n=24): time 0.0002677/0.0082, allocations: 167.9 kB / 273.4 MB, free: 1.008 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.011e-05/0.00824, allocations: 59.34 kB / 273.5 MB, free: 0.9375 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001126/0.008353, allocations: 213.7 kB / 273.7 MB, free: 0.7109 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.303e-05/0.008376, allocations: 33.7 kB / 273.7 MB, free: 0.6719 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.548e-05/0.008461, allocations: 179.5 kB / 273.9 MB, free: 500 kB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.418e-05/0.008506, allocations: 67.45 kB / 274 MB, free: 432 kB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.073e-05/0.008586, allocations: 87.61 kB / 274.1 MB, free: 332 kB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001348/0.008721, allocations: 0.4962 MB / 274.6 MB, free: 15.82 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.523e-05/0.008766, allocations: 36.62 kB / 274.6 MB, free: 15.78 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.958e-05/0.008846, allocations: 122.6 kB / 274.7 MB, free: 15.63 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001227/0.008969, allocations: 153.4 kB / 274.9 MB, free: 15.45 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/0.008971, allocations: 0 / 274.9 MB, free: 15.45 MB / 266.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0002157/0.009187, allocations: 213.3 kB / 275.1 MB, free: 15.23 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.384e-05/0.009201, allocations: 8 kB / 275.1 MB, free: 15.22 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.46e-06/0.009206, allocations: 0 / 275.1 MB, free: 15.22 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.293e-05/0.009219, allocations: 4 kB / 275.1 MB, free: 15.22 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001038/0.009323, allocations: 39.8 kB / 275.1 MB, free: 15.18 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.079e-06/0.009328, allocations: 0 / 275.1 MB, free: 15.18 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.275e-05/0.009401, allocations: 27.84 kB / 275.1 MB, free: 15.15 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.204e-05/0.009423, allocations: 15.98 kB / 275.2 MB, free: 15.14 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,transition1.condition,transition2.condition,stateGraphRoot.suspend,stateGraphRoot.resume) * 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.0001319/0.009555, allocations: 188.7 kB / 275.3 MB, free: 14.94 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.406e-05/0.009579, allocations: 15.95 kB / 275.4 MB, free: 14.93 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002426/0.009822, allocations: 162.4 kB / 275.5 MB, free: 14.76 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.105e-06/0.009825, allocations: 0 / 275.5 MB, free: 14.76 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.371e-06/0.00983, allocations: 7.922 kB / 275.5 MB, free: 14.75 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.041e-06/0.009836, allocations: 7.938 kB / 275.5 MB, free: 14.74 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000426/0.01026, allocations: 470.4 kB / 276 MB, free: 14.25 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.256e-06/0.01027, allocations: 0 / 276 MB, free: 14.25 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.072e-05/0.01032, allocations: 19.92 kB / 276 MB, free: 14.23 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.808e-06/0.01032, allocations: 7.938 kB / 276 MB, free: 14.22 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.04e-05/0.01033, allocations: 8 kB / 276 MB, free: 14.21 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.974e-06/0.01033, allocations: 0 / 276 MB, free: 14.21 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.874e-06/0.01033, allocations: 0 / 276 MB, free: 14.21 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000207/0.01054, allocations: 312 kB / 276.3 MB, free: 13.89 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.627e-05/0.01056, allocations: 23.78 kB / 276.4 MB, free: 13.87 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.809e-05/0.01058, allocations: 4 kB / 276.4 MB, free: 13.86 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.837e-05/0.01062, allocations: 11.98 kB / 276.4 MB, free: 13.85 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.239e-05/0.01068, allocations: 23.95 kB / 276.4 MB, free: 13.83 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.124e-05/0.01069, allocations: 4 kB / 276.4 MB, free: 13.82 MB / 266.7 MB Notification: Performance of sorting global known variables: time 4.374e-05/0.01073, allocations: 134.7 kB / 276.5 MB, free: 13.7 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01073, allocations: 4 kB / 276.5 MB, free: 13.69 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002089/0.01094, allocations: 47.89 kB / 276.6 MB, free: 13.64 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.0001306/0.01107, allocations: 111.1 kB / 276.7 MB, free: 13.53 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001883/0.01126, allocations: 131.5 kB / 276.8 MB, free: 13.39 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.01126, allocations: 0 / 276.8 MB, free: 13.39 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 7.81e-05/0.01134, allocations: 75.5 kB / 276.9 MB, free: 13.32 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002159/0.01156, allocations: 28.42 kB / 276.9 MB, free: 13.29 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004561/0.01201, allocations: 319.2 kB / 277.2 MB, free: 12.95 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.127e-05/0.01207, allocations: 80.33 kB / 277.3 MB, free: 12.85 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.654e-05/0.01213, allocations: 21.94 kB / 277.3 MB, free: 12.83 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.508e-05/0.01223, allocations: 102.2 kB / 277.4 MB, free: 12.73 MB / 266.7 MB Notification: Performance of SimCode: time 9.31e-07/0.01223, allocations: 0 / 277.4 MB, free: 12.73 MB / 266.7 MB Notification: Performance of Templates: time 0.00444/0.01667, allocations: 2.155 MB / 279.6 MB, free: 10.61 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.949318719096482]