Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.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.0009432/0.0009432, allocations: 80.92 kB / 21.49 MB, free: 2.996 MB / 18.57 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.001078/0.001078, allocations: 170.6 kB / 24.91 MB, free: 8.723 MB / 18.57 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 0.9695/0.9695, allocations: 177.1 MB / 205.3 MB, free: 5.109 MB / 186.7 MB " [Timeout remaining time 179] 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_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.1.0_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_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.283e-06/1.283e-06, allocations: 0 / 273.4 MB, free: 1.223 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.469e-05/1.597e-05, allocations: 5.266 kB / 273.4 MB, free: 1.219 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.001931/0.001947, allocations: 1.739 MB / 275.2 MB, free: 15.47 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004997/0.002446, allocations: 302.9 kB / 275.5 MB, free: 15.17 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.597e-05/0.002522, allocations: 7.938 kB / 275.5 MB, free: 15.16 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001114/0.002634, allocations: 27.67 kB / 275.5 MB, free: 15.14 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 4.796e-05/0.002682, allocations: 19.75 kB / 275.5 MB, free: 15.12 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003067/0.002988, allocations: 123.8 kB / 275.6 MB, free: 15 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002226/0.003211, allocations: 279.4 kB / 275.9 MB, free: 14.72 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001848/0.003396, allocations: 160.1 kB / 276.1 MB, free: 14.57 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000111/0.003507, allocations: 135.8 kB / 276.2 MB, free: 14.43 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.85e-05/0.003605, allocations: 79.69 kB / 276.3 MB, free: 14.36 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.472e-05/0.00363, allocations: 24 kB / 276.3 MB, free: 14.33 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.423e-05/0.003684, allocations: 24 kB / 276.3 MB, free: 14.31 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 4.665e-05/0.003731, allocations: 59.77 kB / 276.4 MB, free: 14.25 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 5.706e-05/0.003788, allocations: 71.8 kB / 276.4 MB, free: 14.18 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001869/0.003975, allocations: 183.3 kB / 276.6 MB, free: 14 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.333e-06/0.003976, allocations: 0 / 276.6 MB, free: 14 MB / 266.7 MB Notification: Performance of FrontEnd: time 5.51e-07/0.003977, allocations: 4 kB / 276.6 MB, free: 14 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.427e-06/0.00398, allocations: 0 / 276.6 MB, free: 14 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.0003688/0.004349, allocations: 399.7 kB / 277 MB, free: 13.58 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.965e-05/0.004379, allocations: 12.03 kB / 277 MB, free: 13.57 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001527/0.004531, allocations: 48.89 kB / 277.1 MB, free: 13.52 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001523/0.004684, allocations: 149.5 kB / 277.2 MB, free: 13.35 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.347e-05/0.004707, allocations: 24.88 kB / 277.2 MB, free: 13.32 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.108e-05/0.004738, allocations: 32.36 kB / 277.3 MB, free: 13.29 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001881/0.004926, allocations: 218.5 kB / 277.5 MB, free: 13.05 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.065e-06/0.004934, allocations: 4.188 kB / 277.5 MB, free: 13.05 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.438e-05/0.004949, allocations: 12.38 kB / 277.5 MB, free: 13.04 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.434e-06/0.004956, allocations: 8.359 kB / 277.5 MB, free: 13.03 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.958e-05/0.005036, allocations: 75.33 kB / 277.6 MB, free: 12.96 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005418/0.005578, allocations: 0.7192 MB / 278.3 MB, free: 12.21 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001298/0.005707, allocations: 113.2 kB / 278.4 MB, free: 12.08 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.991e-05/0.005747, allocations: 53.62 kB / 278.5 MB, free: 12.02 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.398e-05/0.005761, allocations: 4 kB / 278.5 MB, free: 12.02 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.735e-05/0.005859, allocations: 120.3 kB / 278.6 MB, free: 11.89 MB / 266.7 MB Notification: Performance of pre-optimization done (n=24): time 9.62e-07/0.00586, allocations: 0 / 278.6 MB, free: 11.89 MB / 266.7 MB Notification: Performance of matching and sorting (n=24): time 0.0001649/0.006024, allocations: 137.4 kB / 278.7 MB, free: 11.75 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.712e-05/0.006062, allocations: 81.11 kB / 278.8 MB, free: 11.65 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.378e-05/0.006135, allocations: 158.5 kB / 279 MB, free: 11.48 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.901e-05/0.006154, allocations: 41.64 kB / 279 MB, free: 11.43 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.737e-05/0.006212, allocations: 144.7 kB / 279.1 MB, free: 11.29 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.326e-05/0.006245, allocations: 59.52 kB / 279.2 MB, free: 11.23 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.942e-05/0.006304, allocations: 77.64 kB / 279.3 MB, free: 11.14 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.948e-05/0.006374, allocations: 330.8 kB / 279.6 MB, free: 10.81 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.974e-05/0.006404, allocations: 28.12 kB / 279.6 MB, free: 10.79 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.53e-05/0.006469, allocations: 108.5 kB / 279.7 MB, free: 10.65 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001077/0.006577, allocations: 152.4 kB / 279.9 MB, free: 10.47 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.295e-06/0.006579, allocations: 4 kB / 279.9 MB, free: 10.46 MB / 266.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0001625/0.006741, allocations: 173.3 kB / 280.1 MB, free: 10.29 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.148e-05/0.006753, allocations: 7.938 kB / 280.1 MB, free: 10.28 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.533e-06/0.006759, allocations: 7.984 kB / 280.1 MB, free: 10.27 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.169e-05/0.006771, allocations: 4 kB / 280.1 MB, free: 10.27 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.809e-05/0.006849, allocations: 35.92 kB / 280.1 MB, free: 10.23 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.599e-06/0.006854, allocations: 4.281 kB / 280.1 MB, free: 10.23 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.055e-05/0.006904, allocations: 31.78 kB / 280.1 MB, free: 10.2 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.183e-05/0.006916, allocations: 12 kB / 280.2 MB, free: 10.19 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,transition1.condition,stateGraphRoot.suspend,stateGraphRoot.resume) * 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 7.638e-05/0.006993, allocations: 141.7 kB / 280.3 MB, free: 10.04 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.624e-05/0.007009, allocations: 15.98 kB / 280.3 MB, free: 10.02 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.978e-05/0.007039, allocations: 28.86 kB / 280.3 MB, free: 9.996 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.056e-06/0.007042, allocations: 4 kB / 280.3 MB, free: 9.992 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.194e-06/0.007044, allocations: 0 / 280.3 MB, free: 9.992 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/0.007048, allocations: 0 / 280.3 MB, free: 9.992 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002972/0.007345, allocations: 367.9 kB / 280.7 MB, free: 9.605 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.007347, allocations: 7.984 kB / 280.7 MB, free: 9.598 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.049e-05/0.007377, allocations: 8 kB / 280.7 MB, free: 9.59 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.874e-06/0.007379, allocations: 4 kB / 280.7 MB, free: 9.586 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.017e-06/0.007388, allocations: 11.94 kB / 280.7 MB, free: 9.574 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.144e-06/0.00739, allocations: 4 kB / 280.7 MB, free: 9.57 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.007393, allocations: 3.984 kB / 280.7 MB, free: 9.566 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001137/0.007507, allocations: 212.1 kB / 280.9 MB, free: 9.34 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.066e-05/0.007517, allocations: 15.84 kB / 281 MB, free: 9.324 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.534e-05/0.007533, allocations: 8 kB / 281 MB, free: 9.316 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.957e-05/0.007572, allocations: 11.98 kB / 281 MB, free: 9.305 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.37e-05/0.007616, allocations: 15.97 kB / 281 MB, free: 9.289 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.384e-06/0.007623, allocations: 8 kB / 281 MB, free: 9.281 MB / 266.7 MB Notification: Performance of sorting global known variables: time 1.873e-05/0.007642, allocations: 28.58 kB / 281 MB, free: 9.254 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.007642, allocations: 0 / 281 MB, free: 9.254 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.00016/0.007802, allocations: 47.89 kB / 281.1 MB, free: 9.207 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 7.212e-05/0.007874, allocations: 88.34 kB / 281.2 MB, free: 9.113 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000132/0.008006, allocations: 128.8 kB / 281.3 MB, free: 8.988 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.008009, allocations: 4.188 kB / 281.3 MB, free: 8.984 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 5.597e-05/0.008065, allocations: 64.7 kB / 281.4 MB, free: 8.918 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000137/0.008202, allocations: 27.92 kB / 281.4 MB, free: 8.891 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003318/0.008534, allocations: 318.2 kB / 281.7 MB, free: 8.551 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.713e-05/0.008581, allocations: 84.27 kB / 281.8 MB, free: 8.449 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 4.981e-05/0.008631, allocations: 26 kB / 281.8 MB, free: 8.418 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.476e-05/0.008706, allocations: 79.38 kB / 281.9 MB, free: 8.34 MB / 266.7 MB Notification: Performance of SimCode: time 6.02e-07/0.008706, allocations: 0 / 281.9 MB, free: 8.34 MB / 266.7 MB Notification: Performance of Templates: time 0.003307/0.01201, allocations: 1.884 MB / 283.8 MB, free: 6.488 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & ./Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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.711449902970344]