Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00109/0.00109, allocations: 79.69 kB / 21.7 MB, free: 2.852 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001071/0.001071, allocations: 160.2 kB / 24.99 MB, free: 8.801 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.029/1.029, allocations: 177 MB / 205.2 MB, free: 5.594 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.783e-06/1.783e-06, allocations: 0 / 272.9 MB, free: 1.805 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.737e-05/1.916e-05, allocations: 5.125 kB / 273 MB, free: 1.801 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.001959/0.001978, allocations: 1.748 MB / 274.7 MB, free: 40 kB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005197/0.002498, allocations: 295.2 kB / 275 MB, free: 15.75 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.217e-05/0.00258, allocations: 7.938 kB / 275 MB, free: 15.74 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001173/0.002697, allocations: 27.73 kB / 275 MB, free: 15.71 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 4.65e-05/0.002744, allocations: 31.72 kB / 275.1 MB, free: 15.68 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003175/0.003061, allocations: 119.8 kB / 275.2 MB, free: 15.56 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002354/0.003297, allocations: 275.4 kB / 275.4 MB, free: 15.29 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002211/0.003518, allocations: 158.1 kB / 275.6 MB, free: 15.14 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001082/0.003626, allocations: 139.7 kB / 275.7 MB, free: 15 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.746e-05/0.003723, allocations: 67.78 kB / 275.8 MB, free: 14.93 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.776e-05/0.003751, allocations: 28 kB / 275.8 MB, free: 14.91 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.092e-05/0.003802, allocations: 31.92 kB / 275.9 MB, free: 14.88 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 4.873e-05/0.003851, allocations: 55.81 kB / 275.9 MB, free: 14.82 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 6.131e-05/0.003912, allocations: 71.81 kB / 276 MB, free: 14.75 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001989/0.004111, allocations: 187.2 kB / 276.2 MB, free: 14.57 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.044e-06/0.004113, allocations: 0 / 276.2 MB, free: 14.57 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.012e-06/0.004114, allocations: 0 / 276.2 MB, free: 14.57 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.217e-06/0.004118, allocations: 0 / 276.2 MB, free: 14.57 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0004836/0.004602, allocations: 0.5073 MB / 276.7 MB, free: 14.02 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.343e-05/0.004635, allocations: 15.98 kB / 276.7 MB, free: 14.01 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001621/0.004797, allocations: 52.78 kB / 276.7 MB, free: 13.96 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001781/0.004975, allocations: 176.3 kB / 276.9 MB, free: 13.76 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.794e-05/0.005003, allocations: 24.88 kB / 276.9 MB, free: 13.73 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.577e-05/0.005029, allocations: 32.38 kB / 277 MB, free: 13.7 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000273/0.005302, allocations: 244.7 kB / 277.2 MB, free: 13.44 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.007e-06/0.005311, allocations: 4.172 kB / 277.2 MB, free: 13.43 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.466e-05/0.005336, allocations: 8.375 kB / 277.2 MB, free: 13.43 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.498e-06/0.005345, allocations: 8.359 kB / 277.2 MB, free: 13.42 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001529/0.005498, allocations: 106.8 kB / 277.3 MB, free: 13.31 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007708/0.006269, allocations: 1.061 MB / 278.4 MB, free: 12.19 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002047/0.006474, allocations: 150.3 kB / 278.5 MB, free: 12.02 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.632e-05/0.00654, allocations: 63.44 kB / 278.6 MB, free: 11.95 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.533e-05/0.006555, allocations: 4 kB / 278.6 MB, free: 11.95 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001352/0.006691, allocations: 136.2 kB / 278.7 MB, free: 11.79 MB / 266.7 MB Notification: Performance of pre-optimization done (n=24): time 1.253e-06/0.006692, allocations: 0 / 278.7 MB, free: 11.79 MB / 266.7 MB Notification: Performance of matching and sorting (n=24): time 0.0002916/0.006983, allocations: 198.8 kB / 278.9 MB, free: 11.59 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.356e-05/0.007027, allocations: 81.11 kB / 279 MB, free: 11.49 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001041/0.007131, allocations: 213.9 kB / 279.2 MB, free: 11.27 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.124e-05/0.007152, allocations: 45.7 kB / 279.3 MB, free: 11.21 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.452e-05/0.007227, allocations: 187.4 kB / 279.4 MB, free: 11.02 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.548e-05/0.007262, allocations: 59.58 kB / 279.5 MB, free: 10.96 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.12e-05/0.007344, allocations: 87.3 kB / 279.6 MB, free: 10.87 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001047/0.007448, allocations: 0.4962 MB / 280.1 MB, free: 10.36 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.382e-05/0.007512, allocations: 39.97 kB / 280.1 MB, free: 10.32 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001044/0.007617, allocations: 148.8 kB / 280.3 MB, free: 10.14 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001637/0.00778, allocations: 192.6 kB / 280.5 MB, free: 9.906 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.007783, allocations: 0 / 280.5 MB, free: 9.906 MB / 266.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0002361/0.008019, allocations: 233.5 kB / 280.7 MB, free: 9.672 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.354e-05/0.008033, allocations: 10.84 kB / 280.7 MB, free: 9.664 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.701e-06/0.008038, allocations: 4 kB / 280.7 MB, free: 9.66 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.182e-05/0.00805, allocations: 7.938 kB / 280.7 MB, free: 9.652 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.155e-05/0.008142, allocations: 35.92 kB / 280.7 MB, free: 9.617 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.183e-06/0.008149, allocations: 4 kB / 280.7 MB, free: 9.613 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.887e-05/0.008208, allocations: 31.77 kB / 280.8 MB, free: 9.582 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.823e-05/0.008226, allocations: 16 kB / 280.8 MB, free: 9.566 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 32 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,stateGraphRoot.activeSteps,timer.entryTime,$PRE.timer.entryTime,transition2.enableFire,transition2.localCondition,step.active,step.oldActive,$PRE.step.oldActive,step.newActive,$PRE.step.newActive,step.localActive,$PRE.step.localActive,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,transition2.t_start,$PRE.transition2.t_start,stateGraphRoot.resume,stateGraphRoot.suspend,transition1.condition) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (41): * Single equations (assignments): 41 * 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 9.461e-05/0.00832, allocations: 184.5 kB / 281 MB, free: 9.375 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.244e-05/0.008343, allocations: 23.89 kB / 281 MB, free: 9.352 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.922e-05/0.008372, allocations: 20.94 kB / 281 MB, free: 9.336 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.735e-06/0.008375, allocations: 7.938 kB / 281 MB, free: 9.328 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.00838, allocations: 3.984 kB / 281 MB, free: 9.324 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.358e-06/0.008384, allocations: 0 / 281 MB, free: 9.324 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004096/0.008794, allocations: 0.5166 MB / 281.5 MB, free: 8.762 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.008795, allocations: 3.938 kB / 281.6 MB, free: 8.758 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.783e-05/0.008833, allocations: 19.98 kB / 281.6 MB, free: 8.738 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.474e-06/0.008836, allocations: 0 / 281.6 MB, free: 8.738 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.117e-06/0.008845, allocations: 4 kB / 281.6 MB, free: 8.734 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.164e-06/0.008847, allocations: 4 kB / 281.6 MB, free: 8.73 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.008848, allocations: 4 kB / 281.6 MB, free: 8.727 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001993/0.009047, allocations: 340.1 kB / 281.9 MB, free: 8.371 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.189e-05/0.009059, allocations: 19.84 kB / 281.9 MB, free: 8.352 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.653e-05/0.009076, allocations: 4 kB / 281.9 MB, free: 8.348 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.344e-05/0.009119, allocations: 7.984 kB / 281.9 MB, free: 8.34 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5e-05/0.009169, allocations: 19.97 kB / 282 MB, free: 8.32 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.448e-06/0.009179, allocations: 8 kB / 282 MB, free: 8.312 MB / 266.7 MB Notification: Performance of sorting global known variables: time 4.673e-05/0.009225, allocations: 139 kB / 282.1 MB, free: 8.18 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.009225, allocations: 0 / 282.1 MB, free: 8.18 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001936/0.009419, allocations: 47.89 kB / 282.2 MB, free: 8.133 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 18 (transition2.t_start,step.localActive,transition1.enableFire,step.active,initialStep.active,$whenCondition2,$whenCondition1,initialStep.localActive,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.newActive,step.oldActive,transition2.localCondition,transition2.enableFire,timer.entryTime,stateGraphRoot.activeSteps) * Number of discrete states: 3 (initialStep.newActive,step.newActive,transition2.t_start) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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 8.204e-05/0.009501, allocations: 119.1 kB / 282.3 MB, free: 8.004 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002046/0.009706, allocations: 148.4 kB / 282.4 MB, free: 7.855 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.009707, allocations: 0 / 282.4 MB, free: 7.855 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 7.767e-05/0.009785, allocations: 67.59 kB / 282.5 MB, free: 7.785 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000201/0.009986, allocations: 28.78 kB / 282.5 MB, free: 7.758 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003961/0.01038, allocations: 335.4 kB / 282.8 MB, free: 7.398 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.527e-05/0.01043, allocations: 84.27 kB / 282.9 MB, free: 7.297 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 4.983e-05/0.01048, allocations: 21.94 kB / 282.9 MB, free: 7.277 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.271e-05/0.01052, allocations: 20.5 kB / 283 MB, free: 7.254 MB / 266.7 MB Notification: Performance of SimCode: time 6.81e-07/0.01052, allocations: 0 / 283 MB, free: 7.254 MB / 266.7 MB Notification: Performance of Templates: time 0.003303/0.01382, allocations: 1.761 MB / 284.7 MB, free: 5.52 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & ./Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.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.815174503950402]