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.001682/0.001682, allocations: 103.6 kB / 21.18 MB, free: 0.6445 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.002135/0.002135, allocations: 211.5 kB / 24.48 MB, free: 3.938 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.433/1.433, allocations: 230.6 MB / 258.3 MB, free: 7.75 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.001621/0.001621, allocations: 43.92 kB / 378.9 MB, free: 2.496 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2538/0.2554, allocations: 53.37 MB / 432.3 MB, free: 6.742 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.002917/0.2583, allocations: 1.656 MB / 434 MB, free: 5.082 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006727/0.259, allocations: 291.2 kB / 434.2 MB, free: 4.797 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.902e-05/0.2591, allocations: 11.88 kB / 434.3 MB, free: 4.785 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001206/0.2592, allocations: 19.73 kB / 434.3 MB, free: 4.766 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 5.255e-05/0.2593, allocations: 27.73 kB / 434.3 MB, free: 4.738 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00042/0.2597, allocations: 123.8 kB / 434.4 MB, free: 4.617 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003397/0.26, allocations: 279.4 kB / 434.7 MB, free: 4.344 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000277/0.2603, allocations: 163.1 kB / 434.9 MB, free: 4.184 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001092/0.2604, allocations: 87.72 kB / 434.9 MB, free: 4.098 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001311/0.2605, allocations: 87.58 kB / 435 MB, free: 4.012 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.486e-05/0.2606, allocations: 24 kB / 435.1 MB, free: 3.988 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.505e-05/0.2607, allocations: 35.94 kB / 435.1 MB, free: 3.953 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.949e-05/0.2607, allocations: 55.83 kB / 435.1 MB, free: 3.898 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.633e-05/0.2608, allocations: 87.58 kB / 435.2 MB, free: 3.812 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000324/0.2612, allocations: 257.9 kB / 435.5 MB, free: 3.562 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.2612, allocations: 4 kB / 435.5 MB, free: 3.559 MB / 334.1 MB Notification: Performance of FrontEnd: time 8.82e-07/0.2612, allocations: 0 / 435.5 MB, free: 3.559 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.999e-06/0.2612, allocations: 0 / 435.5 MB, free: 3.559 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.0006464/0.2618, allocations: 421.2 kB / 435.9 MB, free: 3.113 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.846e-05/0.2618, allocations: 8.031 kB / 435.9 MB, free: 3.105 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002633/0.2621, allocations: 40.77 kB / 435.9 MB, free: 3.066 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003052/0.2624, allocations: 178.2 kB / 436.1 MB, free: 2.867 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.52e-05/0.2625, allocations: 20.88 kB / 436.1 MB, free: 2.848 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.064e-05/0.2625, allocations: 28.38 kB / 436.2 MB, free: 2.82 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004574/0.2629, allocations: 269.7 kB / 436.4 MB, free: 2.531 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.184e-05/0.263, allocations: 192 / 436.4 MB, free: 2.531 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.105e-05/0.263, allocations: 15.94 kB / 436.4 MB, free: 2.516 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.688e-06/0.263, allocations: 8 kB / 436.5 MB, free: 2.508 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002978/0.2633, allocations: 157.6 kB / 436.6 MB, free: 2.355 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001122/0.2644, allocations: 0.8396 MB / 437.4 MB, free: 1.473 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003054/0.2647, allocations: 149.5 kB / 437.6 MB, free: 1.309 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001225/0.2648, allocations: 77.61 kB / 437.7 MB, free: 1.227 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.877e-05/0.2649, allocations: 4 kB / 437.7 MB, free: 1.223 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002206/0.2651, allocations: 137 kB / 437.8 MB, free: 1.07 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.342e-06/0.2651, allocations: 0 / 437.8 MB, free: 1.07 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004371/0.2655, allocations: 226.6 kB / 438 MB, free: 0.8477 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.429e-05/0.2656, allocations: 88.98 kB / 438.1 MB, free: 0.7422 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001406/0.2657, allocations: 164.3 kB / 438.3 MB, free: 0.5742 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.288e-05/0.2658, allocations: 33.83 kB / 438.3 MB, free: 0.5352 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000106/0.2659, allocations: 148.8 kB / 438.5 MB, free: 392 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.884e-05/0.2659, allocations: 63.53 kB / 438.5 MB, free: 328 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.899e-05/0.266, allocations: 77.69 kB / 438.6 MB, free: 244 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001745/0.2662, allocations: 326.8 kB / 438.9 MB, free: 15.91 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001248/0.2663, allocations: 67.75 kB / 439 MB, free: 15.84 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001782/0.2665, allocations: 132.5 kB / 439.1 MB, free: 15.68 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000284/0.2668, allocations: 204.8 kB / 439.3 MB, free: 15.45 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.404e-06/0.2668, allocations: 0 / 439.3 MB, free: 15.45 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003984/0.2672, allocations: 253.3 kB / 439.6 MB, free: 15.2 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.313e-05/0.2672, allocations: 4.281 kB / 439.6 MB, free: 15.2 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.114e-06/0.2672, allocations: 8 kB / 439.6 MB, free: 15.19 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.53e-05/0.2672, allocations: 4 kB / 439.6 MB, free: 15.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001466/0.2674, allocations: 31.92 kB / 439.6 MB, free: 15.15 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.218e-05/0.2674, allocations: 4 kB / 439.6 MB, free: 15.15 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001068/0.2675, allocations: 31.77 kB / 439.6 MB, free: 15.12 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.913e-05/0.2675, allocations: 16 kB / 439.6 MB, free: 15.1 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.0001701/0.2677, allocations: 165.6 kB / 439.8 MB, free: 14.93 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.673e-05/0.2677, allocations: 15.89 kB / 439.8 MB, free: 14.91 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.745e-05/0.2678, allocations: 16.94 kB / 439.8 MB, free: 14.9 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.625e-06/0.2678, allocations: 4 kB / 439.8 MB, free: 14.89 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.2678, allocations: 4 kB / 439.8 MB, free: 14.89 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.647e-06/0.2678, allocations: 0 / 439.8 MB, free: 14.89 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006718/0.2684, allocations: 0.489 MB / 440.3 MB, free: 14.36 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.958e-06/0.2684, allocations: 4 kB / 440.3 MB, free: 14.35 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.187e-05/0.2685, allocations: 12 kB / 440.4 MB, free: 14.34 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.214e-05/0.2685, allocations: 4 kB / 440.4 MB, free: 14.34 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.774e-05/0.2685, allocations: 7.984 kB / 440.4 MB, free: 14.33 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.064e-06/0.2685, allocations: 0 / 440.4 MB, free: 14.33 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.668e-06/0.2686, allocations: 7.938 kB / 440.4 MB, free: 14.32 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003265/0.2689, allocations: 276.1 kB / 440.6 MB, free: 14.03 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.503e-05/0.2689, allocations: 23.81 kB / 440.7 MB, free: 14.01 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.559e-05/0.2689, allocations: 4 kB / 440.7 MB, free: 14 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.79e-05/0.269, allocations: 7.938 kB / 440.7 MB, free: 14 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.374e-05/0.2691, allocations: 27.89 kB / 440.7 MB, free: 13.97 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.829e-05/0.2691, allocations: 12 kB / 440.7 MB, free: 13.96 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.608e-05/0.2692, allocations: 95.27 kB / 440.8 MB, free: 13.86 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2692, allocations: 0 / 440.8 MB, free: 13.86 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003005/0.2695, allocations: 51.84 kB / 440.9 MB, free: 13.81 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.0001061/0.2696, allocations: 111.1 kB / 441 MB, free: 13.7 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003282/0.2699, allocations: 167.8 kB / 441.1 MB, free: 13.53 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.2699, allocations: 0 / 441.1 MB, free: 13.53 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001325/0.27, allocations: 82.53 kB / 441.2 MB, free: 13.45 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002999/0.2703, allocations: 22.22 kB / 441.2 MB, free: 13.43 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006035/0.2709, allocations: 366.1 kB / 441.6 MB, free: 13.04 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001235/0.2711, allocations: 122.2 kB / 441.7 MB, free: 12.91 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.882e-05/0.2711, allocations: 19.44 kB / 441.7 MB, free: 12.89 MB / 350.1 MB Notification: Performance of SimCode: time 4.01e-07/0.2711, allocations: 4 kB / 441.7 MB, free: 12.88 MB / 350.1 MB Notification: Performance of Templates: time 0.004194/0.2753, allocations: 2.3 MB / 444 MB, free: 10.58 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: 6.914337106049061]