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.001359/0.001359, allocations: 79 kB / 20.67 MB, free: 1.023 MB / 14.72 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.001351/0.001351, allocations: 149.2 kB / 23.93 MB, free: 4.164 MB / 14.72 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.446/1.446, allocations: 173.3 MB / 200.4 MB, free: 12.87 MB / 190.1 MB " [Timeout remaining time 178] 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.633e-06/1.633e-06, allocations: 0 / 318.9 MB, free: 3.574 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.647e-05/2.81e-05, allocations: 2.281 kB / 318.9 MB, free: 3.57 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.002415/0.002443, allocations: 1.455 MB / 320.3 MB, free: 2.57 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006767/0.00312, allocations: 283.3 kB / 320.6 MB, free: 2.379 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001018/0.003221, allocations: 7.5 kB / 320.6 MB, free: 2.375 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001488/0.00337, allocations: 22.22 kB / 320.7 MB, free: 2.359 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 4.842e-05/0.003419, allocations: 14.12 kB / 320.7 MB, free: 2.348 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004753/0.003894, allocations: 125.1 kB / 320.8 MB, free: 2.281 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003786/0.004273, allocations: 264.7 kB / 321 MB, free: 2.164 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000284/0.004557, allocations: 134.8 kB / 321.2 MB, free: 2.098 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001622/0.004719, allocations: 132.4 kB / 321.3 MB, free: 2.035 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001405/0.004859, allocations: 66.45 kB / 321.4 MB, free: 2.008 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.939e-05/0.004909, allocations: 30.52 kB / 321.4 MB, free: 2 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.895e-05/0.004998, allocations: 33.81 kB / 321.4 MB, free: 1.996 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.072e-05/0.005068, allocations: 55.38 kB / 321.5 MB, free: 1.961 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.91e-05/0.005157, allocations: 63.23 kB / 321.6 MB, free: 1.926 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000419/0.005576, allocations: 258.4 kB / 321.8 MB, free: 1.809 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.005581, allocations: 1.125 kB / 321.8 MB, free: 1.809 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.213e-06/0.005582, allocations: 4 kB / 321.8 MB, free: 1.805 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.804e-06/0.00559, allocations: 0.75 kB / 321.8 MB, free: 1.805 MB / 286.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.0007094/0.0063, allocations: 405.7 kB / 322.2 MB, free: 1.465 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.175e-05/0.006351, allocations: 11.05 kB / 322.2 MB, free: 1.465 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.28e-05/0.006434, allocations: 24.91 kB / 322.2 MB, free: 1.453 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003053/0.006739, allocations: 174.2 kB / 322.4 MB, free: 1.289 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.638e-05/0.006776, allocations: 23.41 kB / 322.4 MB, free: 1.277 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.825e-05/0.006814, allocations: 26.47 kB / 322.5 MB, free: 1.27 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000418/0.007232, allocations: 238.3 kB / 322.7 MB, free: 1.152 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.461e-05/0.007247, allocations: 4.844 kB / 322.7 MB, free: 1.148 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.33e-05/0.00727, allocations: 13.78 kB / 322.7 MB, free: 1.137 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.246e-06/0.007278, allocations: 7.141 kB / 322.7 MB, free: 1.137 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000286/0.007564, allocations: 166.8 kB / 322.9 MB, free: 1.074 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008077/0.008372, allocations: 0.5701 MB / 323.4 MB, free: 0.6445 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00033/0.008702, allocations: 159.1 kB / 323.6 MB, free: 0.5664 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001429/0.008845, allocations: 66.53 kB / 323.7 MB, free: 0.5391 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.134e-05/0.008876, allocations: 2.594 kB / 323.7 MB, free: 0.5391 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000251/0.009127, allocations: 114.8 kB / 323.8 MB, free: 480 kB / 286.1 MB Notification: Performance of pre-optimization done (n=24): time 1.744e-06/0.009129, allocations: 4 kB / 323.8 MB, free: 476 kB / 286.1 MB Notification: Performance of matching and sorting (n=24): time 0.000567/0.009696, allocations: 230.2 kB / 324 MB, free: 372 kB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.042e-05/0.009756, allocations: 60.12 kB / 324.1 MB, free: 304 kB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001832/0.00994, allocations: 151.9 kB / 324.2 MB, free: 172 kB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.536e-05/0.009975, allocations: 35.14 kB / 324.3 MB, free: 136 kB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001072/0.01008, allocations: 134.9 kB / 324.4 MB, free: 8 kB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001269/0.01021, allocations: 62.28 kB / 324.4 MB, free: 15.96 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001511/0.01036, allocations: 76.62 kB / 324.5 MB, free: 15.91 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002293/0.01059, allocations: 324.1 kB / 324.8 MB, free: 15.59 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001623/0.01075, allocations: 62.95 kB / 324.9 MB, free: 15.57 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002474/0.011, allocations: 133.6 kB / 325 MB, free: 15.48 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003431/0.01134, allocations: 168.2 kB / 325.2 MB, free: 15.36 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.918e-06/0.01135, allocations: 1.375 kB / 325.2 MB, free: 15.36 MB / 302.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0004626/0.01181, allocations: 251.6 kB / 325.4 MB, free: 15.24 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.873e-05/0.01183, allocations: 7.016 kB / 325.4 MB, free: 15.24 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.562e-06/0.01183, allocations: 1.438 kB / 325.5 MB, free: 15.24 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.197e-05/0.01186, allocations: 7.875 kB / 325.5 MB, free: 15.24 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001517/0.01201, allocations: 32.34 kB / 325.5 MB, free: 15.23 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.738e-06/0.01202, allocations: 7.359 kB / 325.5 MB, free: 15.23 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000104/0.01212, allocations: 29.58 kB / 325.5 MB, free: 15.21 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.131e-05/0.01215, allocations: 10.19 kB / 325.5 MB, free: 15.21 MB / 302.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.000173/0.01233, allocations: 158.6 kB / 325.7 MB, free: 15.06 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.546e-05/0.01235, allocations: 10.17 kB / 325.7 MB, free: 15.06 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004125/0.01276, allocations: 209.5 kB / 325.9 MB, free: 14.95 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.83e-06/0.01277, allocations: 3.125 kB / 325.9 MB, free: 14.95 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.321e-06/0.01277, allocations: 0.75 kB / 325.9 MB, free: 14.95 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.194e-06/0.01278, allocations: 1.828 kB / 325.9 MB, free: 14.95 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000765/0.01355, allocations: 491.3 kB / 326.4 MB, free: 14.61 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.956e-06/0.01355, allocations: 1.375 kB / 326.4 MB, free: 14.61 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.294e-05/0.01363, allocations: 19.28 kB / 326.4 MB, free: 14.61 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.482e-06/0.01364, allocations: 5.359 kB / 326.4 MB, free: 14.6 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.966e-05/0.01366, allocations: 10.27 kB / 326.4 MB, free: 14.59 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.599e-05/0.01367, allocations: 5.922 kB / 326.4 MB, free: 14.59 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.01368, allocations: 0 / 326.4 MB, free: 14.59 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003903/0.01407, allocations: 282.1 kB / 326.7 MB, free: 14.4 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.384e-05/0.01409, allocations: 17.25 kB / 326.7 MB, free: 14.39 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.182e-05/0.01412, allocations: 7.938 kB / 326.7 MB, free: 14.39 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.191e-05/0.01421, allocations: 8.625 kB / 326.7 MB, free: 14.38 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.643e-05/0.0143, allocations: 22.53 kB / 326.8 MB, free: 14.38 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.835e-05/0.01432, allocations: 9.484 kB / 326.8 MB, free: 14.38 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.886e-05/0.0144, allocations: 99.56 kB / 326.9 MB, free: 14.3 MB / 302.1 MB Notification: Performance of sort global known variables: time 9e-08/0.0144, allocations: 4 kB / 326.9 MB, free: 14.29 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003779/0.01478, allocations: 46.23 kB / 326.9 MB, free: 14.28 MB / 302.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: 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.0001854/0.01496, allocations: 113.9 kB / 327 MB, free: 14.18 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003583/0.01532, allocations: 161.6 kB / 327.2 MB, free: 14.14 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/0.01532, allocations: 0 / 327.2 MB, free: 14.14 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001546/0.01548, allocations: 82.23 kB / 327.3 MB, free: 14.11 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003034/0.01578, allocations: 27.77 kB / 327.3 MB, free: 14.09 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007171/0.0165, allocations: 335.8 kB / 327.6 MB, free: 13.86 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001578/0.01665, allocations: 118.5 kB / 327.7 MB, free: 13.79 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.148e-05/0.01674, allocations: 25.66 kB / 327.8 MB, free: 13.79 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.881e-05/0.01681, allocations: 23.22 kB / 327.8 MB, free: 13.78 MB / 302.1 MB Notification: Performance of SimCode: time 3.61e-07/0.01681, allocations: 3.938 kB / 327.8 MB, free: 13.77 MB / 302.1 MB Notification: Performance of Templates: time 0.006576/0.02338, allocations: 1.939 MB / 329.7 MB, free: 13.51 MB / 302.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 4.302874758839607]