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.001396/0.001396, allocations: 68.08 kB / 21.69 MB, free: 2.863 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.0009411/0.0009411, allocations: 145.4 kB / 24.97 MB, free: 8.816 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 0.9174/0.9174, allocations: 173.3 MB / 201.5 MB, free: 9.355 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.022e-06/1.022e-06, allocations: 0 / 268 MB, free: 6.793 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.291e-05/1.393e-05, allocations: 2.312 kB / 268 MB, free: 6.789 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.001622/0.001636, allocations: 1.51 MB / 269.5 MB, free: 5.266 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004263/0.002062, allocations: 287.1 kB / 269.8 MB, free: 4.984 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.516e-05/0.002128, allocations: 4 kB / 269.8 MB, free: 4.98 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 9.051e-05/0.002218, allocations: 27.67 kB / 269.8 MB, free: 4.953 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 3.197e-05/0.00225, allocations: 23.75 kB / 269.9 MB, free: 4.93 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002821/0.002532, allocations: 123.8 kB / 270 MB, free: 4.809 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002144/0.002747, allocations: 267.5 kB / 270.3 MB, free: 4.547 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001709/0.002917, allocations: 138.8 kB / 270.4 MB, free: 4.406 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.94e-05/0.003017, allocations: 131.8 kB / 270.5 MB, free: 4.277 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.729e-05/0.003104, allocations: 67.78 kB / 270.6 MB, free: 4.211 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.152e-05/0.003136, allocations: 23.98 kB / 270.6 MB, free: 4.188 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.295e-05/0.003189, allocations: 35.98 kB / 270.6 MB, free: 4.152 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 3.908e-05/0.003228, allocations: 51.83 kB / 270.7 MB, free: 4.102 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 5.314e-05/0.003281, allocations: 63.88 kB / 270.8 MB, free: 4.039 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001755/0.003456, allocations: 191.2 kB / 270.9 MB, free: 3.852 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.483e-06/0.003458, allocations: 0 / 270.9 MB, free: 3.852 MB / 250.7 MB Notification: Performance of FrontEnd: time 5.71e-07/0.003458, allocations: 0 / 270.9 MB, free: 3.852 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.126e-06/0.003461, allocations: 0 / 270.9 MB, free: 3.852 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.0004387/0.0039, allocations: 0.4994 MB / 271.4 MB, free: 3.316 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.751e-05/0.003928, allocations: 12.92 kB / 271.5 MB, free: 3.305 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.674e-05/0.003984, allocations: 40.83 kB / 271.5 MB, free: 3.266 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001991/0.004183, allocations: 176.3 kB / 271.7 MB, free: 3.066 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.492e-05/0.004208, allocations: 20.88 kB / 271.7 MB, free: 3.043 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.302e-05/0.004231, allocations: 24.38 kB / 271.7 MB, free: 3.02 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002388/0.00447, allocations: 209.7 kB / 271.9 MB, free: 2.797 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.807e-06/0.004479, allocations: 192 / 271.9 MB, free: 2.797 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.57e-05/0.004495, allocations: 12.38 kB / 271.9 MB, free: 2.785 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.097e-06/0.004504, allocations: 8.359 kB / 271.9 MB, free: 2.777 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000133/0.004637, allocations: 94.81 kB / 272 MB, free: 2.688 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006386/0.005275, allocations: 0.6773 MB / 272.7 MB, free: 1.969 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001823/0.005458, allocations: 147.2 kB / 272.8 MB, free: 1.812 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.307e-05/0.005521, allocations: 59.59 kB / 272.9 MB, free: 1.75 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.31e-05/0.005534, allocations: 4 kB / 272.9 MB, free: 1.746 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001073/0.005641, allocations: 104.9 kB / 273 MB, free: 1.629 MB / 250.7 MB Notification: Performance of pre-optimization done (n=24): time 1.353e-06/0.005642, allocations: 0 / 273 MB, free: 1.629 MB / 250.7 MB Notification: Performance of matching and sorting (n=24): time 0.0002571/0.0059, allocations: 199.8 kB / 273.2 MB, free: 1.43 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.83e-05/0.005928, allocations: 55.41 kB / 273.3 MB, free: 1.363 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.358e-05/0.006021, allocations: 212.9 kB / 273.5 MB, free: 1.141 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.938e-05/0.006041, allocations: 37.7 kB / 273.5 MB, free: 1.098 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.669e-05/0.006107, allocations: 179.5 kB / 273.7 MB, free: 0.9141 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.467e-05/0.006142, allocations: 67.47 kB / 273.7 MB, free: 0.8477 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.807e-05/0.00621, allocations: 87.67 kB / 273.8 MB, free: 0.75 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0002223/0.006432, allocations: 0.4962 MB / 274.3 MB, free: 248 kB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.951e-05/0.006492, allocations: 40.62 kB / 274.4 MB, free: 208 kB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.907e-05/0.006581, allocations: 126.7 kB / 274.5 MB, free: 48 kB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001491/0.00673, allocations: 173.3 kB / 274.7 MB, free: 15.84 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.704e-06/0.006732, allocations: 0 / 274.7 MB, free: 15.84 MB / 266.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0002119/0.006944, allocations: 221.3 kB / 274.9 MB, free: 15.62 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.103e-05/0.006955, allocations: 8 kB / 274.9 MB, free: 15.61 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.938e-06/0.006959, allocations: 0 / 274.9 MB, free: 15.61 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.361e-05/0.006972, allocations: 11.92 kB / 274.9 MB, free: 15.6 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.089e-05/0.007053, allocations: 31.92 kB / 274.9 MB, free: 15.57 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.72e-06/0.007059, allocations: 0 / 274.9 MB, free: 15.57 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.322e-05/0.007112, allocations: 36.06 kB / 275 MB, free: 15.54 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.507e-05/0.007127, allocations: 12 kB / 275 MB, free: 15.52 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 8.792e-05/0.007215, allocations: 188.4 kB / 275.2 MB, free: 15.33 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.886e-05/0.007234, allocations: 19.95 kB / 275.2 MB, free: 15.31 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002014/0.007435, allocations: 174.5 kB / 275.4 MB, free: 15.13 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.069e-06/0.007441, allocations: 11.92 kB / 275.4 MB, free: 15.12 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.898e-06/0.007444, allocations: 3.984 kB / 275.4 MB, free: 15.11 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.807e-06/0.007448, allocations: 0 / 275.4 MB, free: 15.11 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003976/0.007846, allocations: 0.5056 MB / 275.9 MB, free: 14.57 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.007848, allocations: 4 kB / 275.9 MB, free: 14.56 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.54e-05/0.007893, allocations: 19.92 kB / 275.9 MB, free: 14.54 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.196e-06/0.007896, allocations: 0 / 275.9 MB, free: 14.54 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.817e-06/0.007905, allocations: 8 kB / 275.9 MB, free: 14.54 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.007907, allocations: 3.938 kB / 275.9 MB, free: 14.53 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.007908, allocations: 0 / 275.9 MB, free: 14.53 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001913/0.008099, allocations: 324 kB / 276.2 MB, free: 14.2 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.253e-05/0.008112, allocations: 19.84 kB / 276.2 MB, free: 14.18 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.638e-05/0.008128, allocations: 4 kB / 276.2 MB, free: 14.17 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.395e-05/0.008172, allocations: 7.984 kB / 276.3 MB, free: 14.16 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.795e-05/0.00822, allocations: 23.97 kB / 276.3 MB, free: 14.14 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.357e-06/0.00823, allocations: 7.984 kB / 276.3 MB, free: 14.13 MB / 266.7 MB Notification: Performance of sorting global known variables: time 4.173e-05/0.008271, allocations: 139.1 kB / 276.4 MB, free: 14 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.008271, allocations: 0 / 276.4 MB, free: 14 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001941/0.008465, allocations: 51.89 kB / 276.5 MB, free: 13.95 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.0001075/0.008573, allocations: 103.2 kB / 276.6 MB, free: 13.84 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001955/0.008768, allocations: 147.5 kB / 276.7 MB, free: 13.69 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.253e-06/0.00877, allocations: 448 / 276.7 MB, free: 13.69 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 8.186e-05/0.008852, allocations: 91.45 kB / 276.8 MB, free: 13.59 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001826/0.009034, allocations: 30.89 kB / 276.8 MB, free: 13.57 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003795/0.009414, allocations: 323.3 kB / 277.2 MB, free: 13.22 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.08e-05/0.009454, allocations: 76.33 kB / 277.2 MB, free: 13.12 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 4.893e-05/0.009503, allocations: 21.94 kB / 277.2 MB, free: 13.11 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.97e-05/0.009543, allocations: 28.5 kB / 277.3 MB, free: 13.08 MB / 266.7 MB Notification: Performance of SimCode: time 8.82e-07/0.009544, allocations: 0 / 277.3 MB, free: 13.08 MB / 266.7 MB Notification: Performance of Templates: time 0.003631/0.01318, allocations: 1.949 MB / 279.2 MB, free: 11.16 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.958388350903988]