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.001816/0.001816, allocations: 100 kB / 21.18 MB, free: 0.6484 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.002094/0.002094, allocations: 184.9 kB / 24.45 MB, free: 3.961 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.468/1.468, allocations: 225.7 MB / 253.3 MB, free: 12.81 MB / 206.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 0.001591/0.001591, allocations: 55.91 kB / 371.6 MB, free: 9.191 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2207/0.2223, allocations: 52.17 MB / 423.8 MB, free: 14.47 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.002698/0.225, allocations: 1.471 MB / 425.3 MB, free: 12.99 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006441/0.2257, allocations: 283.1 kB / 425.5 MB, free: 12.71 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.79e-05/0.2258, allocations: 4 kB / 425.5 MB, free: 12.71 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001135/0.2259, allocations: 15.75 kB / 425.6 MB, free: 12.7 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 5.523e-05/0.2259, allocations: 31.72 kB / 425.6 MB, free: 12.66 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003767/0.2263, allocations: 115.8 kB / 425.7 MB, free: 12.55 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003146/0.2266, allocations: 263.5 kB / 426 MB, free: 12.29 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000244/0.2269, allocations: 142.7 kB / 426.1 MB, free: 12.15 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001046/0.227, allocations: 83.77 kB / 426.2 MB, free: 12.07 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001307/0.2271, allocations: 87.53 kB / 426.3 MB, free: 11.98 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.814e-05/0.2271, allocations: 20 kB / 426.3 MB, free: 11.96 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.097e-05/0.2272, allocations: 35.98 kB / 426.3 MB, free: 11.93 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.612e-05/0.2273, allocations: 51.89 kB / 426.4 MB, free: 11.88 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.814e-05/0.2274, allocations: 75.59 kB / 426.4 MB, free: 11.8 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003003/0.2277, allocations: 245.7 kB / 426.7 MB, free: 11.57 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.775e-06/0.2277, allocations: 0 / 426.7 MB, free: 11.57 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.2277, allocations: 4 kB / 426.7 MB, free: 11.56 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.122e-06/0.2277, allocations: 0 / 426.7 MB, free: 11.56 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: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.0006576/0.2283, allocations: 424.9 kB / 427.1 MB, free: 11.11 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.189e-05/0.2284, allocations: 8.031 kB / 427.1 MB, free: 11.11 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.462e-05/0.2284, allocations: 28.73 kB / 427.1 MB, free: 11.08 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002991/0.2287, allocations: 170.2 kB / 427.3 MB, free: 10.89 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.615e-05/0.2288, allocations: 20.88 kB / 427.3 MB, free: 10.87 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.962e-05/0.2288, allocations: 24.38 kB / 427.3 MB, free: 10.84 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004275/0.2292, allocations: 243.2 kB / 427.6 MB, free: 10.59 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.204e-05/0.2292, allocations: 4.188 kB / 427.6 MB, free: 10.59 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.507e-05/0.2293, allocations: 7.938 kB / 427.6 MB, free: 10.58 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.714e-06/0.2293, allocations: 8 kB / 427.6 MB, free: 10.57 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003061/0.2296, allocations: 161.6 kB / 427.8 MB, free: 10.41 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009352/0.2305, allocations: 0.562 MB / 428.3 MB, free: 9.82 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003046/0.2308, allocations: 158.7 kB / 428.5 MB, free: 9.656 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001241/0.2309, allocations: 68.84 kB / 428.5 MB, free: 9.586 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.208e-05/0.231, allocations: 3.984 kB / 428.5 MB, free: 9.582 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002015/0.2312, allocations: 126.7 kB / 428.7 MB, free: 9.449 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.703e-06/0.2312, allocations: 4 kB / 428.7 MB, free: 9.445 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.000433/0.2316, allocations: 217.4 kB / 428.9 MB, free: 9.227 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.038e-05/0.2317, allocations: 59.41 kB / 428.9 MB, free: 9.156 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001308/0.2318, allocations: 153.8 kB / 429.1 MB, free: 8.996 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.565e-05/0.2318, allocations: 37.7 kB / 429.1 MB, free: 8.953 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.491e-05/0.2319, allocations: 128.9 kB / 429.3 MB, free: 8.82 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.905e-05/0.232, allocations: 67.47 kB / 429.3 MB, free: 8.754 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001048/0.2321, allocations: 77.94 kB / 429.4 MB, free: 8.668 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001467/0.2322, allocations: 326.8 kB / 429.7 MB, free: 8.34 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001213/0.2324, allocations: 64.62 kB / 429.8 MB, free: 8.277 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001809/0.2325, allocations: 132 kB / 429.9 MB, free: 8.125 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000259/0.2328, allocations: 170.8 kB / 430.1 MB, free: 7.934 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.2328, allocations: 0 / 430.1 MB, free: 7.934 MB / 334.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003885/0.2332, allocations: 257.8 kB / 430.3 MB, free: 7.676 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.579e-05/0.2332, allocations: 8 kB / 430.3 MB, free: 7.668 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.069e-06/0.2332, allocations: 0 / 430.3 MB, free: 7.668 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.541e-05/0.2332, allocations: 4 kB / 430.3 MB, free: 7.664 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001343/0.2334, allocations: 31.92 kB / 430.4 MB, free: 7.633 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.009e-05/0.2334, allocations: 7.984 kB / 430.4 MB, free: 7.625 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.81e-05/0.2335, allocations: 27.78 kB / 430.4 MB, free: 7.598 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.847e-05/0.2335, allocations: 15.98 kB / 430.4 MB, free: 7.582 MB / 334.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.000149/0.2336, allocations: 157.9 kB / 430.6 MB, free: 7.418 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.484e-05/0.2337, allocations: 11.89 kB / 430.6 MB, free: 7.406 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000358/0.234, allocations: 194.5 kB / 430.8 MB, free: 7.207 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.568e-06/0.234, allocations: 4 kB / 430.8 MB, free: 7.203 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.636e-06/0.234, allocations: 0 / 430.8 MB, free: 7.203 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.947e-06/0.234, allocations: 0 / 430.8 MB, free: 7.203 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006975/0.2347, allocations: 493.7 kB / 431.3 MB, free: 6.684 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.794e-06/0.2347, allocations: 0 / 431.3 MB, free: 6.684 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.01e-05/0.2348, allocations: 19.92 kB / 431.3 MB, free: 6.664 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.274e-06/0.2348, allocations: 0 / 431.3 MB, free: 6.664 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.731e-05/0.2348, allocations: 12 kB / 431.3 MB, free: 6.652 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.773e-06/0.2348, allocations: 0 / 431.3 MB, free: 6.652 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.006e-06/0.2348, allocations: 3.984 kB / 431.3 MB, free: 6.648 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003506/0.2352, allocations: 287.6 kB / 431.6 MB, free: 6.352 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.218e-05/0.2352, allocations: 19.83 kB / 431.6 MB, free: 6.332 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.678e-05/0.2352, allocations: 8 kB / 431.6 MB, free: 6.324 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.034e-05/0.2353, allocations: 8 kB / 431.6 MB, free: 6.316 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.59e-05/0.2354, allocations: 23.89 kB / 431.6 MB, free: 6.293 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.034e-05/0.2354, allocations: 15.98 kB / 431.7 MB, free: 6.277 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.333e-05/0.2355, allocations: 99.02 kB / 431.8 MB, free: 6.184 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2355, allocations: 0 / 431.8 MB, free: 6.184 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002991/0.2358, allocations: 55.83 kB / 431.8 MB, free: 6.129 MB / 334.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.0001428/0.2359, allocations: 111.1 kB / 431.9 MB, free: 6.012 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003231/0.2362, allocations: 167.8 kB / 432.1 MB, free: 5.848 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.2362, allocations: 3.938 kB / 432.1 MB, free: 5.844 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001358/0.2364, allocations: 75.84 kB / 432.2 MB, free: 5.77 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002762/0.2367, allocations: 16 kB / 432.2 MB, free: 5.754 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005989/0.2373, allocations: 361.7 kB / 432.5 MB, free: 5.367 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001177/0.2374, allocations: 120.5 kB / 432.6 MB, free: 5.23 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.828e-05/0.2374, allocations: 27.42 kB / 432.7 MB, free: 5.203 MB / 334.1 MB Notification: Performance of SimCode: time 4.91e-07/0.2374, allocations: 0 / 432.7 MB, free: 5.203 MB / 334.1 MB Notification: Performance of Templates: time 0.004629/0.2421, allocations: 2.398 MB / 435.1 MB, free: 2.805 MB / 334.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample/FirstExample.csv","/var/lib/jenkins1/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: 7.081967960111797]