Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.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.0009863/0.0009863, allocations: 83.89 kB / 21.19 MB, free: 3.387 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.0009054/0.0009054, allocations: 141.1 kB / 24.54 MB, free: 36 kB / 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.9569/0.9569, allocations: 173.3 MB / 201.1 MB, free: 9.004 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_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 9.71e-07/9.71e-07, allocations: 0 / 268 MB, free: 6.352 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.364e-05/1.461e-05, allocations: 6.25 kB / 268 MB, free: 6.344 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.001758/0.001773, allocations: 1.699 MB / 269.7 MB, free: 4.633 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004732/0.002246, allocations: 295.1 kB / 269.9 MB, free: 4.344 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.862e-05/0.002314, allocations: 4 kB / 269.9 MB, free: 4.34 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001145/0.002429, allocations: 35.61 kB / 270 MB, free: 4.305 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 3.924e-05/0.002468, allocations: 19.78 kB / 270 MB, free: 4.285 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003339/0.002802, allocations: 127.7 kB / 270.1 MB, free: 4.16 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002381/0.00304, allocations: 283.4 kB / 270.4 MB, free: 3.883 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001986/0.003239, allocations: 155.7 kB / 270.6 MB, free: 3.723 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000109/0.003348, allocations: 139.7 kB / 270.7 MB, free: 3.586 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.572e-05/0.003443, allocations: 71.77 kB / 270.8 MB, free: 3.516 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.828e-05/0.003472, allocations: 24 kB / 270.8 MB, free: 3.492 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.547e-05/0.003537, allocations: 35.98 kB / 270.8 MB, free: 3.457 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.675e-05/0.003584, allocations: 59.81 kB / 270.9 MB, free: 3.398 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 5.995e-05/0.003644, allocations: 67.77 kB / 270.9 MB, free: 3.332 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002069/0.003851, allocations: 195.2 kB / 271.1 MB, free: 3.141 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.533e-06/0.003852, allocations: 4 kB / 271.1 MB, free: 3.137 MB / 250.7 MB Notification: Performance of FrontEnd: time 6.02e-07/0.003853, allocations: 4 kB / 271.1 MB, free: 3.133 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.597e-06/0.003856, allocations: 0 / 271.1 MB, free: 3.133 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0004787/0.004335, allocations: 0.5151 MB / 271.7 MB, free: 2.578 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.137e-05/0.004367, allocations: 8.031 kB / 271.7 MB, free: 2.57 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.607e-05/0.004433, allocations: 44.8 kB / 271.7 MB, free: 2.527 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001765/0.004609, allocations: 180.3 kB / 271.9 MB, free: 2.324 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.587e-05/0.004635, allocations: 24.88 kB / 271.9 MB, free: 2.301 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.656e-05/0.004662, allocations: 24.38 kB / 271.9 MB, free: 2.277 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002765/0.004938, allocations: 252.7 kB / 272.2 MB, free: 2 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.566e-06/0.004947, allocations: 8.125 kB / 272.2 MB, free: 1.992 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.756e-05/0.004964, allocations: 16.31 kB / 272.2 MB, free: 1.977 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.945e-06/0.004972, allocations: 4.375 kB / 272.2 MB, free: 1.973 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001434/0.005115, allocations: 102.8 kB / 272.3 MB, free: 1.875 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007401/0.005856, allocations: 1.072 MB / 273.4 MB, free: 0.7461 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001904/0.006046, allocations: 153.6 kB / 273.5 MB, free: 0.5742 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.565e-05/0.006112, allocations: 63.28 kB / 273.6 MB, free: 0.5039 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.625e-05/0.006128, allocations: 8 kB / 273.6 MB, free: 0.4961 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001342/0.006262, allocations: 141.8 kB / 273.7 MB, free: 344 kB / 250.7 MB Notification: Performance of pre-optimization done (n=24): time 1.673e-06/0.006264, allocations: 0 / 273.7 MB, free: 344 kB / 250.7 MB Notification: Performance of matching and sorting (n=24): time 0.0002726/0.006536, allocations: 200.4 kB / 273.9 MB, free: 140 kB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.785e-05/0.006574, allocations: 89.03 kB / 274 MB, free: 32 kB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001049/0.006679, allocations: 221.7 kB / 274.2 MB, free: 15.8 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.92e-05/0.006698, allocations: 33.7 kB / 274.3 MB, free: 15.76 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.128e-05/0.00677, allocations: 183.5 kB / 274.5 MB, free: 15.57 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.941e-05/0.006809, allocations: 71.52 kB / 274.5 MB, free: 15.5 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.151e-05/0.006881, allocations: 83.34 kB / 274.6 MB, free: 15.41 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001095/0.00699, allocations: 0.5002 MB / 275.1 MB, free: 14.9 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.084e-05/0.007051, allocations: 47.73 kB / 275.2 MB, free: 14.85 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001006/0.007152, allocations: 148.6 kB / 275.3 MB, free: 14.66 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001499/0.007301, allocations: 184.7 kB / 275.5 MB, free: 14.44 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/0.007305, allocations: 4 kB / 275.5 MB, free: 14.44 MB / 266.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0002245/0.007529, allocations: 233.2 kB / 275.7 MB, free: 14.2 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.217e-05/0.007541, allocations: 8 kB / 275.7 MB, free: 14.2 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.62e-06/0.007547, allocations: 4 kB / 275.7 MB, free: 14.19 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.241e-05/0.007559, allocations: 4 kB / 275.7 MB, free: 14.19 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.183e-05/0.007651, allocations: 36.2 kB / 275.8 MB, free: 14.15 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.655e-06/0.007659, allocations: 11.94 kB / 275.8 MB, free: 14.14 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.522e-05/0.007714, allocations: 31.77 kB / 275.8 MB, free: 14.11 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.141e-05/0.007735, allocations: 23.94 kB / 275.8 MB, free: 14.09 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.517e-05/0.00783, allocations: 188.5 kB / 276 MB, free: 13.89 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.174e-05/0.007852, allocations: 27.83 kB / 276 MB, free: 13.86 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001983/0.008051, allocations: 166.5 kB / 276.2 MB, free: 13.7 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.507e-06/0.008054, allocations: 4 kB / 276.2 MB, free: 13.69 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.376e-06/0.008057, allocations: 0 / 276.2 MB, free: 13.69 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.008061, allocations: 0 / 276.2 MB, free: 13.69 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004196/0.008481, allocations: 0.5438 MB / 276.7 MB, free: 13.1 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.803e-06/0.008483, allocations: 0 / 276.7 MB, free: 13.1 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4e-05/0.008523, allocations: 19.94 kB / 276.8 MB, free: 13.08 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.306e-06/0.008526, allocations: 4 kB / 276.8 MB, free: 13.08 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.879e-06/0.008536, allocations: 3.984 kB / 276.8 MB, free: 13.07 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.313e-06/0.008537, allocations: 0 / 276.8 MB, free: 13.07 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-06/0.008539, allocations: 4 kB / 276.8 MB, free: 13.07 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000207/0.008746, allocations: 331.7 kB / 277.1 MB, free: 12.72 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.413e-05/0.00876, allocations: 23.84 kB / 277.1 MB, free: 12.7 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.726e-05/0.008777, allocations: 0 / 277.1 MB, free: 12.7 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.485e-05/0.008822, allocations: 15.98 kB / 277.1 MB, free: 12.68 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.101e-05/0.008883, allocations: 19.97 kB / 277.2 MB, free: 12.66 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.588e-06/0.008893, allocations: 4 kB / 277.2 MB, free: 12.66 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.333e-05/0.008946, allocations: 143.1 kB / 277.3 MB, free: 12.52 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.008946, allocations: 0 / 277.3 MB, free: 12.52 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001949/0.009141, allocations: 63.77 kB / 277.4 MB, free: 12.46 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: 20 (transition2.t_start,step.localActive,step.active,transition1.enableFire,initialStep.active,$cse1,$cse2,$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 (26): * Single equations (assignments): 21 * 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 0.0001075/0.009248, allocations: 110.9 kB / 277.5 MB, free: 12.34 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001898/0.009438, allocations: 152.2 kB / 277.6 MB, free: 12.19 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.333e-06/0.00944, allocations: 4.062 kB / 277.6 MB, free: 12.18 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 7.928e-05/0.009519, allocations: 87.45 kB / 277.7 MB, free: 12.09 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001999/0.009719, allocations: 23.98 kB / 277.7 MB, free: 12.07 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004246/0.01014, allocations: 346.5 kB / 278.1 MB, free: 11.7 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.616e-05/0.01019, allocations: 88.25 kB / 278.2 MB, free: 11.6 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.203e-05/0.01024, allocations: 26 kB / 278.2 MB, free: 11.57 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.691e-05/0.01029, allocations: 32.48 kB / 278.2 MB, free: 11.54 MB / 266.7 MB Notification: Performance of SimCode: time 5.71e-07/0.01029, allocations: 0 / 278.2 MB, free: 11.54 MB / 266.7 MB Notification: Performance of Templates: time 0.003906/0.01419, allocations: 2.083 MB / 280.3 MB, free: 9.488 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & ./Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.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.8062986778095365]