Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample.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.001423/0.001423, allocations: 127.4 kB / 17.79 MB, free: 5.246 MB / 14.72 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.001555/0.001555, allocations: 208.3 kB / 20.75 MB, free: 2.297 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.71/1.71, allocations: 230.6 MB / 254.1 MB, free: 15.11 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.1.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.1.0_Modelica.StateGraph.Examples.FirstExample") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001556/0.001556, allocations: 47.92 kB / 373.4 MB, free: 9.754 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1151/0.1167, allocations: 53.34 MB / 426.8 MB, free: 4.324 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.003445/0.1201, allocations: 1.503 MB / 428.3 MB, free: 2.809 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007865/0.1209, allocations: 283.2 kB / 428.6 MB, free: 2.531 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001006/0.121, allocations: 8 kB / 428.6 MB, free: 2.523 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000166/0.1212, allocations: 23.69 kB / 428.6 MB, free: 2.5 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.026e-05/0.1212, allocations: 19.8 kB / 428.6 MB, free: 2.48 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004018/0.1217, allocations: 103.9 kB / 428.7 MB, free: 2.379 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003927/0.122, allocations: 263.5 kB / 429 MB, free: 2.121 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002987/0.1223, allocations: 134.4 kB / 429.1 MB, free: 1.984 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001213/0.1225, allocations: 95.69 kB / 429.2 MB, free: 1.891 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001537/0.1226, allocations: 91.61 kB / 429.3 MB, free: 1.801 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.573e-05/0.1227, allocations: 20 kB / 429.3 MB, free: 1.781 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.518e-05/0.1227, allocations: 39.97 kB / 429.3 MB, free: 1.742 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.174e-05/0.1228, allocations: 51.83 kB / 429.4 MB, free: 1.691 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001689/0.123, allocations: 103.5 kB / 429.5 MB, free: 1.59 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003613/0.1233, allocations: 247 kB / 429.7 MB, free: 1.348 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.508e-06/0.1233, allocations: 3.938 kB / 429.7 MB, free: 1.344 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.1233, allocations: 0 / 429.7 MB, free: 1.344 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.833e-06/0.1234, allocations: 4 kB / 429.7 MB, free: 1.34 MB / 350.1 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.0009839/0.1243, allocations: 482.3 kB / 430.2 MB, free: 0.8164 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.376e-05/0.1244, allocations: 8.031 kB / 430.2 MB, free: 0.8086 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003511/0.1247, allocations: 32.81 kB / 430.2 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003762/0.1251, allocations: 224.1 kB / 430.5 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.37e-05/0.1252, allocations: 20.94 kB / 430.5 MB, free: 0.5 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.805e-05/0.1252, allocations: 24.38 kB / 430.5 MB, free: 488 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005426/0.1258, allocations: 256 kB / 430.8 MB, free: 224 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.498e-05/0.1258, allocations: 192 / 430.8 MB, free: 224 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.97e-05/0.1258, allocations: 11.94 kB / 430.8 MB, free: 212 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.132e-05/0.1258, allocations: 8 kB / 430.8 MB, free: 204 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003326/0.1262, allocations: 149.7 kB / 430.9 MB, free: 52 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2635/0.3897, allocations: 0.6883 MB / 431.6 MB, free: 10.96 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003299/0.39, allocations: 153.2 kB / 431.8 MB, free: 10.93 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001244/0.3901, allocations: 71.55 kB / 431.8 MB, free: 10.93 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.91e-05/0.3902, allocations: 2.281 kB / 431.8 MB, free: 10.93 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002144/0.3904, allocations: 109.3 kB / 431.9 MB, free: 10.88 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 2.435e-06/0.3904, allocations: 0 / 431.9 MB, free: 10.88 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.0005366/0.3909, allocations: 226.9 kB / 432.2 MB, free: 10.83 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.908e-05/0.391, allocations: 61.67 kB / 432.2 MB, free: 10.77 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001214/0.3911, allocations: 144 kB / 432.4 MB, free: 10.66 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.586e-05/0.3911, allocations: 40.55 kB / 432.4 MB, free: 10.63 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.566e-05/0.3912, allocations: 130.3 kB / 432.5 MB, free: 10.53 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.223e-05/0.3913, allocations: 65.88 kB / 432.6 MB, free: 10.49 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001185/0.3914, allocations: 74.64 kB / 432.7 MB, free: 10.47 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.905e-05/0.3915, allocations: 327.6 kB / 433 MB, free: 10.16 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001296/0.3916, allocations: 59.81 kB / 433 MB, free: 10.16 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001686/0.3918, allocations: 134.9 kB / 433.2 MB, free: 10.1 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002659/0.3921, allocations: 175.3 kB / 433.4 MB, free: 10.03 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.787e-06/0.3921, allocations: 0 / 433.4 MB, free: 10.03 MB / 350.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003558/0.3924, allocations: 238.3 kB / 433.6 MB, free: 9.984 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.578e-05/0.3924, allocations: 14.98 kB / 433.6 MB, free: 9.98 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.776e-06/0.3924, allocations: 3.594 kB / 433.6 MB, free: 9.98 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.487e-05/0.3925, allocations: 3.562 kB / 433.6 MB, free: 9.98 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001516/0.3926, allocations: 33.94 kB / 433.6 MB, free: 9.98 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.203e-05/0.3926, allocations: 4.469 kB / 433.6 MB, free: 9.98 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001009/0.3927, allocations: 25.22 kB / 433.7 MB, free: 9.965 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.146e-05/0.3928, allocations: 13.59 kB / 433.7 MB, free: 9.965 MB / 350.1 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.0001401/0.3929, allocations: 153 kB / 433.8 MB, free: 9.848 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.578e-05/0.3929, allocations: 18.39 kB / 433.8 MB, free: 9.836 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.055e-05/0.393, allocations: 19.62 kB / 433.9 MB, free: 9.828 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.544e-06/0.393, allocations: 8.766 kB / 433.9 MB, free: 9.828 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.484e-06/0.393, allocations: 0 / 433.9 MB, free: 9.828 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.971e-06/0.393, allocations: 2.562 kB / 433.9 MB, free: 9.828 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006892/0.3937, allocations: 0.5428 MB / 434.4 MB, free: 9.516 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.3937, allocations: 0 / 434.4 MB, free: 9.516 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.809e-05/0.3938, allocations: 22.36 kB / 434.4 MB, free: 9.516 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.596e-06/0.3938, allocations: 1.312 kB / 434.4 MB, free: 9.516 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.515e-05/0.3938, allocations: 4.406 kB / 434.5 MB, free: 9.516 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.595e-06/0.3938, allocations: 7.188 kB / 434.5 MB, free: 9.516 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.3938, allocations: 1.188 kB / 434.5 MB, free: 9.516 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002856/0.3941, allocations: 268 kB / 434.7 MB, free: 9.375 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.897e-05/0.3941, allocations: 92.86 kB / 434.8 MB, free: 9.27 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.571e-05/0.3941, allocations: 9.391 kB / 434.8 MB, free: 9.27 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.415e-05/0.3942, allocations: 5.844 kB / 434.8 MB, free: 9.27 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.183e-05/0.3943, allocations: 25.31 kB / 434.9 MB, free: 9.27 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.429e-05/0.3943, allocations: 11.56 kB / 434.9 MB, free: 9.27 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.878e-05/0.3944, allocations: 98.39 kB / 435 MB, free: 9.195 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3944, allocations: 0 / 435 MB, free: 9.195 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002899/0.3947, allocations: 47.45 kB / 435 MB, free: 9.188 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 17 (transition2.enableFire,step.active,transition1.enableFire,initialStep.active,$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 (24): * Single equations (assignments): 20 * 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.0001128/0.3948, allocations: 102.2 kB / 435.1 MB, free: 9.102 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003259/0.3951, allocations: 173.2 kB / 435.3 MB, free: 9.094 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.422e-06/0.3951, allocations: 0 / 435.3 MB, free: 9.094 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001196/0.3952, allocations: 67.83 kB / 435.3 MB, free: 9.086 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002941/0.3955, allocations: 22.91 kB / 435.4 MB, free: 9.078 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005972/0.3961, allocations: 321.4 kB / 435.7 MB, free: 8.863 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001927/0.3963, allocations: 0.7296 MB / 436.4 MB, free: 8.164 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.243e-05/0.3964, allocations: 24.06 kB / 436.4 MB, free: 8.164 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.366e-05/0.3964, allocations: 19.47 kB / 436.4 MB, free: 8.156 MB / 350.1 MB Notification: Performance of SimCode: time 4.81e-07/0.3964, allocations: 0 / 436.4 MB, free: 8.156 MB / 350.1 MB Notification: Performance of Templates: time 0.006425/0.4029, allocations: 1.68 MB / 438.1 MB, free: 8.055 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample.sim & ./Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/StateGraph/Examples/FirstExample/FirstExample.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample.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: 5.339728504419327]