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.001392/0.001392, allocations: 79.91 kB / 21.18 MB, free: 3.391 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.001156/0.001156, allocations: 141.5 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 0.9388/0.9388, allocations: 173.3 MB / 201.1 MB, free: 9.344 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.422e-06/1.422e-06, allocations: 0 / 267.9 MB, free: 6.488 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.744e-05/1.886e-05, allocations: 2.312 kB / 268 MB, free: 6.484 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.01717/0.01719, allocations: 1.509 MB / 269.5 MB, free: 4.965 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005741/0.01776, allocations: 283.1 kB / 269.7 MB, free: 4.688 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.713e-05/0.01784, allocations: 7.938 kB / 269.7 MB, free: 4.68 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001409/0.01798, allocations: 31.67 kB / 269.8 MB, free: 4.648 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 4.452e-05/0.01803, allocations: 11.81 kB / 269.8 MB, free: 4.637 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000473/0.0185, allocations: 123.7 kB / 269.9 MB, free: 4.516 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002935/0.01879, allocations: 267.5 kB / 270.2 MB, free: 4.254 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002665/0.01906, allocations: 150.8 kB / 270.3 MB, free: 4.102 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009154/0.02821, allocations: 127.8 kB / 270.4 MB, free: 3.977 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001304/0.02835, allocations: 67.78 kB / 270.5 MB, free: 3.91 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.878e-05/0.02838, allocations: 24 kB / 270.5 MB, free: 3.887 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.013e-05/0.02846, allocations: 39.97 kB / 270.6 MB, free: 3.848 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 5.607e-05/0.02852, allocations: 51.83 kB / 270.6 MB, free: 3.797 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 6.927e-05/0.02859, allocations: 59.88 kB / 270.7 MB, free: 3.738 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004934/0.02908, allocations: 183.2 kB / 270.9 MB, free: 3.559 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.455e-06/0.02909, allocations: 4 kB / 270.9 MB, free: 3.555 MB / 250.7 MB Notification: Performance of FrontEnd: time 9.52e-07/0.02909, allocations: 0 / 270.9 MB, free: 3.555 MB / 250.7 MB Notification: Performance of Transformations before backend: time 6.622e-06/0.02909, allocations: 0 / 270.9 MB, free: 3.555 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.0006041/0.0297, allocations: 0.5111 MB / 271.4 MB, free: 3.008 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.066e-05/0.02974, allocations: 8.922 kB / 271.4 MB, free: 3 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.488e-05/0.02982, allocations: 40.83 kB / 271.4 MB, free: 2.961 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002192/0.03004, allocations: 172.3 kB / 271.6 MB, free: 2.766 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.269e-05/0.03007, allocations: 20.88 kB / 271.6 MB, free: 2.742 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.517e-05/0.03011, allocations: 28.31 kB / 271.6 MB, free: 2.715 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003637/0.03047, allocations: 213.7 kB / 271.8 MB, free: 2.488 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.106e-05/0.03048, allocations: 192 / 271.8 MB, free: 2.488 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.012e-05/0.0305, allocations: 4.375 kB / 271.9 MB, free: 2.484 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.363e-05/0.03052, allocations: 12.36 kB / 271.9 MB, free: 2.473 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001765/0.03069, allocations: 90.88 kB / 272 MB, free: 2.387 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006812/0.03751, allocations: 0.6772 MB / 272.6 MB, free: 1.668 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002432/0.03775, allocations: 143.2 kB / 272.8 MB, free: 1.516 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.365e-05/0.03783, allocations: 55.66 kB / 272.8 MB, free: 1.457 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.642e-05/0.03785, allocations: 4 kB / 272.8 MB, free: 1.453 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001532/0.038, allocations: 116.8 kB / 272.9 MB, free: 1.324 MB / 250.7 MB Notification: Performance of pre-optimization done (n=24): time 1.613e-06/0.038, allocations: 4 kB / 272.9 MB, free: 1.32 MB / 250.7 MB Notification: Performance of matching and sorting (n=24): time 0.0003369/0.03834, allocations: 187.8 kB / 273.1 MB, free: 1.133 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.626e-05/0.03838, allocations: 59.34 kB / 273.2 MB, free: 1.062 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001306/0.03851, allocations: 217.4 kB / 273.4 MB, free: 0.8359 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.577e-05/0.03853, allocations: 33.7 kB / 273.4 MB, free: 0.7969 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.982e-05/0.03862, allocations: 183.5 kB / 273.6 MB, free: 0.6094 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.814e-05/0.03867, allocations: 67.47 kB / 273.7 MB, free: 0.543 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.444e-05/0.03877, allocations: 79.67 kB / 273.8 MB, free: 464 kB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001532/0.03892, allocations: 0.4962 MB / 274.3 MB, free: 15.95 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.016e-05/0.039, allocations: 44.62 kB / 274.3 MB, free: 15.9 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001243/0.03912, allocations: 134.7 kB / 274.4 MB, free: 15.74 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000188/0.03931, allocations: 169.3 kB / 274.6 MB, free: 15.54 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/0.03931, allocations: 0 / 274.6 MB, free: 15.54 MB / 266.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0002927/0.03961, allocations: 221.3 kB / 274.8 MB, free: 15.32 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.542e-05/0.03962, allocations: 4 kB / 274.8 MB, free: 15.31 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.747e-06/0.03963, allocations: 4 kB / 274.8 MB, free: 15.31 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.933e-05/0.03965, allocations: 11.92 kB / 274.8 MB, free: 15.3 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001122/0.03976, allocations: 31.92 kB / 274.9 MB, free: 15.27 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.588e-06/0.03977, allocations: 8 kB / 274.9 MB, free: 15.26 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.294e-05/0.03985, allocations: 23.84 kB / 274.9 MB, free: 15.23 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.159e-05/0.03987, allocations: 12 kB / 274.9 MB, free: 15.22 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.000108/0.03998, allocations: 188.7 kB / 275.1 MB, free: 15.03 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.006032/0.04601, allocations: 19.95 kB / 275.1 MB, free: 15.01 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002652/0.04627, allocations: 174.4 kB / 275.3 MB, free: 14.83 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.41e-06/0.04628, allocations: 7.938 kB / 275.3 MB, free: 14.82 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.138e-06/0.04628, allocations: 3.984 kB / 275.3 MB, free: 14.82 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.248e-06/0.04629, allocations: 0 / 275.3 MB, free: 14.82 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005026/0.04679, allocations: 0.5017 MB / 275.8 MB, free: 14.27 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.004e-06/0.04679, allocations: 4 kB / 275.8 MB, free: 14.27 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.71e-05/0.04685, allocations: 19.92 kB / 275.8 MB, free: 14.25 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.376e-06/0.04685, allocations: 0 / 275.8 MB, free: 14.25 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.206e-05/0.04686, allocations: 8 kB / 275.8 MB, free: 14.24 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.098e-06/0.04687, allocations: 4 kB / 275.8 MB, free: 14.24 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.432e-06/0.04687, allocations: 0 / 275.8 MB, free: 14.24 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002517/0.04712, allocations: 324 kB / 276.1 MB, free: 13.9 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.368e-05/0.04713, allocations: 19.78 kB / 276.2 MB, free: 13.88 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.18e-05/0.04716, allocations: 8 kB / 276.2 MB, free: 13.88 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.608e-05/0.04722, allocations: 11.98 kB / 276.2 MB, free: 13.86 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.264e-05/0.04728, allocations: 11.97 kB / 276.2 MB, free: 13.85 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.573e-05/0.04729, allocations: 15.98 kB / 276.2 MB, free: 13.84 MB / 266.7 MB Notification: Performance of sorting global known variables: time 4.885e-05/0.04734, allocations: 135.2 kB / 276.3 MB, free: 13.7 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.04734, allocations: 4 kB / 276.3 MB, free: 13.7 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002813/0.04762, allocations: 51.89 kB / 276.4 MB, free: 13.65 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.0001292/0.04775, allocations: 115.1 kB / 276.5 MB, free: 13.53 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002516/0.048, allocations: 143.5 kB / 276.6 MB, free: 13.38 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.963e-06/0.048, allocations: 4 kB / 276.6 MB, free: 13.38 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 9.965e-05/0.0481, allocations: 79.52 kB / 276.7 MB, free: 13.3 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002576/0.04836, allocations: 32.36 kB / 276.8 MB, free: 13.27 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004571/0.04882, allocations: 323.2 kB / 277.1 MB, free: 12.92 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.008e-05/0.04888, allocations: 80.33 kB / 277.2 MB, free: 12.82 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.007082/0.05596, allocations: 21.94 kB / 277.2 MB, free: 12.8 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.941e-05/0.05602, allocations: 24.5 kB / 277.2 MB, free: 12.78 MB / 266.7 MB Notification: Performance of SimCode: time 7.82e-07/0.05602, allocations: 0 / 277.2 MB, free: 12.78 MB / 266.7 MB Notification: Performance of Templates: time 0.01097/0.067, allocations: 2.076 MB / 279.3 MB, free: 10.73 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: 3.0094432118348777]