Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2.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.001774/0.001774, allocations: 107.6 kB / 21.18 MB, free: 0.5273 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.002132/0.002132, allocations: 205.1 kB / 24.48 MB, free: 3.695 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.519/1.519, allocations: 230.6 MB / 258.3 MB, free: 7.781 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_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.1.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.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001518/0.001518, allocations: 51.92 kB / 378.9 MB, free: 2.473 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2527/0.2543, allocations: 53.35 MB / 432.3 MB, free: 6.711 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.00296/0.2572, allocations: 1.663 MB / 434 MB, free: 5.047 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007106/0.2579, allocations: 295.1 kB / 434.2 MB, free: 4.758 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001018/0.258, allocations: 7.938 kB / 434.3 MB, free: 4.75 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001389/0.2582, allocations: 27.73 kB / 434.3 MB, free: 4.723 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 4.793e-05/0.2582, allocations: 11.81 kB / 434.3 MB, free: 4.711 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004143/0.2586, allocations: 127.8 kB / 434.4 MB, free: 4.586 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003453/0.259, allocations: 283.4 kB / 434.7 MB, free: 4.309 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002979/0.2593, allocations: 163.2 kB / 434.9 MB, free: 4.148 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001106/0.2594, allocations: 95.7 kB / 434.9 MB, free: 4.055 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001524/0.2595, allocations: 99.53 kB / 435 MB, free: 3.957 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.826e-05/0.2596, allocations: 24 kB / 435.1 MB, free: 3.934 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.94e-05/0.2597, allocations: 28 kB / 435.1 MB, free: 3.906 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.637e-05/0.2597, allocations: 67.75 kB / 435.2 MB, free: 3.84 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001048/0.2598, allocations: 79.59 kB / 435.2 MB, free: 3.762 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000332/0.2602, allocations: 261.9 kB / 435.5 MB, free: 3.508 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.2602, allocations: 4 kB / 435.5 MB, free: 3.504 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.814e-06/0.2602, allocations: 0 / 435.5 MB, free: 3.504 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.402e-06/0.2602, allocations: 0 / 435.5 MB, free: 3.504 MB / 334.1 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.000714/0.2609, allocations: 421.2 kB / 435.9 MB, free: 3.059 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.152e-05/0.2609, allocations: 12.03 kB / 435.9 MB, free: 3.047 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002678/0.2612, allocations: 36.72 kB / 436 MB, free: 3.012 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003386/0.2615, allocations: 174.2 kB / 436.1 MB, free: 2.816 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.062e-05/0.2616, allocations: 24.81 kB / 436.2 MB, free: 2.793 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.629e-05/0.2616, allocations: 32.36 kB / 436.2 MB, free: 2.762 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004745/0.2621, allocations: 265.8 kB / 436.4 MB, free: 2.477 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.57e-05/0.2621, allocations: 4.188 kB / 436.4 MB, free: 2.473 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.716e-05/0.2622, allocations: 15.92 kB / 436.5 MB, free: 2.457 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.769e-06/0.2622, allocations: 8 kB / 436.5 MB, free: 2.449 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003022/0.2625, allocations: 165.5 kB / 436.6 MB, free: 2.289 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001106/0.2636, allocations: 0.8318 MB / 437.5 MB, free: 1.414 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000295/0.2639, allocations: 155.2 kB / 437.6 MB, free: 1.246 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001176/0.264, allocations: 73.72 kB / 437.7 MB, free: 1.168 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.27e-05/0.264, allocations: 8 kB / 437.7 MB, free: 1.16 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002137/0.2642, allocations: 134.7 kB / 437.8 MB, free: 1.012 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.513e-06/0.2642, allocations: 0 / 437.8 MB, free: 1.012 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004516/0.2647, allocations: 225 kB / 438 MB, free: 0.7891 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.962e-05/0.2647, allocations: 85.09 kB / 438.1 MB, free: 0.6875 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001412/0.2649, allocations: 161.6 kB / 438.3 MB, free: 0.5195 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.39e-05/0.2649, allocations: 33.7 kB / 438.3 MB, free: 492 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001005/0.265, allocations: 140.8 kB / 438.5 MB, free: 344 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.266e-05/0.2651, allocations: 71.45 kB / 438.5 MB, free: 272 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.788e-05/0.2652, allocations: 77.69 kB / 438.6 MB, free: 188 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001583/0.2653, allocations: 327 kB / 438.9 MB, free: 15.86 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001266/0.2655, allocations: 71.75 kB / 439 MB, free: 15.79 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001727/0.2656, allocations: 132.5 kB / 439.1 MB, free: 15.62 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002653/0.2659, allocations: 200.7 kB / 439.3 MB, free: 15.4 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/0.2659, allocations: 4 kB / 439.3 MB, free: 15.39 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003898/0.2663, allocations: 257.3 kB / 439.6 MB, free: 15.14 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.777e-05/0.2663, allocations: 7.984 kB / 439.6 MB, free: 15.13 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.131e-06/0.2663, allocations: 4 kB / 439.6 MB, free: 15.12 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.831e-05/0.2663, allocations: 4 kB / 439.6 MB, free: 15.12 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001378/0.2665, allocations: 35.92 kB / 439.6 MB, free: 15.09 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.114e-05/0.2665, allocations: 12.27 kB / 439.6 MB, free: 15.07 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.78e-05/0.2666, allocations: 27.78 kB / 439.7 MB, free: 15.05 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.995e-05/0.2666, allocations: 12 kB / 439.7 MB, free: 15.04 MB / 350.1 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 0.0001524/0.2667, allocations: 161.7 kB / 439.8 MB, free: 14.87 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.449e-05/0.2668, allocations: 11.91 kB / 439.8 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.847e-05/0.2668, allocations: 16.94 kB / 439.9 MB, free: 14.84 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.12e-06/0.2668, allocations: 7.938 kB / 439.9 MB, free: 14.83 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.438e-06/0.2668, allocations: 3.938 kB / 439.9 MB, free: 14.83 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.601e-06/0.2668, allocations: 3.984 kB / 439.9 MB, free: 14.82 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006684/0.2675, allocations: 0.4929 MB / 440.4 MB, free: 14.29 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.278e-06/0.2675, allocations: 4 kB / 440.4 MB, free: 14.28 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.883e-05/0.2676, allocations: 11.98 kB / 440.4 MB, free: 14.27 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.679e-06/0.2676, allocations: 4 kB / 440.4 MB, free: 14.27 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.464e-05/0.2676, allocations: 4 kB / 440.4 MB, free: 14.26 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.677e-06/0.2676, allocations: 4 kB / 440.4 MB, free: 14.26 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.2676, allocations: 0 / 440.4 MB, free: 14.26 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003573/0.268, allocations: 280 kB / 440.7 MB, free: 13.96 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.252e-05/0.268, allocations: 15.84 kB / 440.7 MB, free: 13.95 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.661e-05/0.268, allocations: 8 kB / 440.7 MB, free: 13.94 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.486e-05/0.2681, allocations: 7.984 kB / 440.7 MB, free: 13.93 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.123e-05/0.2682, allocations: 27.91 kB / 440.7 MB, free: 13.91 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.669e-05/0.2682, allocations: 8 kB / 440.7 MB, free: 13.9 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.619e-05/0.2683, allocations: 98.64 kB / 440.8 MB, free: 13.8 MB / 350.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.2683, allocations: 0 / 440.8 MB, free: 13.8 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003321/0.2686, allocations: 51.84 kB / 440.9 MB, free: 13.75 MB / 350.1 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,step.active,transition1.enableFire,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 0.0001171/0.2687, allocations: 107.2 kB / 441 MB, free: 13.64 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003299/0.269, allocations: 179.1 kB / 441.2 MB, free: 13.47 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.269, allocations: 0 / 441.2 MB, free: 13.47 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000128/0.2692, allocations: 75.7 kB / 441.2 MB, free: 13.39 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002838/0.2694, allocations: 23.92 kB / 441.3 MB, free: 13.37 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006432/0.2701, allocations: 362.1 kB / 441.6 MB, free: 12.98 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001338/0.2702, allocations: 125.7 kB / 441.7 MB, free: 12.84 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.037e-05/0.2703, allocations: 23.44 kB / 441.8 MB, free: 12.82 MB / 350.1 MB Notification: Performance of SimCode: time 3.21e-07/0.2703, allocations: 0 / 441.8 MB, free: 12.82 MB / 350.1 MB Notification: Performance of Templates: time 0.004549/0.2748, allocations: 2.305 MB / 444.1 MB, free: 10.51 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & ./Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2.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: 7.053838704014197]