Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001416/0.001416, allocations: 85.58 kB / 20.68 MB, free: 1.035 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001485/0.001485, allocations: 157.5 kB / 23.95 MB, free: 4.168 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.504/1.504, allocations: 177 MB / 204.1 MB, free: 9.176 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.503e-06/1.503e-06, allocations: 0 / 325 MB, free: 0.5078 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.487e-05/2.637e-05, allocations: 2.281 kB / 325 MB, free: 0.5039 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.002848/0.002874, allocations: 1.655 MB / 326.6 MB, free: 15.37 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007558/0.00363, allocations: 295.5 kB / 326.9 MB, free: 15.17 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.542e-05/0.003725, allocations: 3.906 kB / 326.9 MB, free: 15.17 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001457/0.003871, allocations: 33.75 kB / 327 MB, free: 15.14 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 5.627e-05/0.003927, allocations: 20.06 kB / 327 MB, free: 15.12 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004515/0.004379, allocations: 125.1 kB / 327.1 MB, free: 15.06 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003726/0.004751, allocations: 276.5 kB / 327.4 MB, free: 14.94 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003126/0.005064, allocations: 159.5 kB / 327.5 MB, free: 14.86 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001845/0.005248, allocations: 136.9 kB / 327.7 MB, free: 14.8 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001514/0.0054, allocations: 73.53 kB / 327.7 MB, free: 14.77 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.655e-05/0.005446, allocations: 23.22 kB / 327.8 MB, free: 14.77 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.41e-05/0.00553, allocations: 26.42 kB / 327.8 MB, free: 14.77 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.205e-05/0.005612, allocations: 63.7 kB / 327.8 MB, free: 14.73 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.993e-05/0.005702, allocations: 66.66 kB / 327.9 MB, free: 14.69 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003421/0.006045, allocations: 267.7 kB / 328.2 MB, free: 14.57 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.494e-06/0.006047, allocations: 0 / 328.2 MB, free: 14.57 MB / 302.1 MB Notification: Performance of FrontEnd: time 8.72e-07/0.006048, allocations: 1.094 kB / 328.2 MB, free: 14.57 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.15e-06/0.006053, allocations: 0 / 328.2 MB, free: 14.57 MB / 302.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.000722/0.006775, allocations: 427.9 kB / 328.6 MB, free: 14.21 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.569e-05/0.006811, allocations: 11.64 kB / 328.6 MB, free: 14.21 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002128/0.007024, allocations: 32.86 kB / 328.6 MB, free: 14.2 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003064/0.00733, allocations: 179 kB / 328.8 MB, free: 14.03 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.016e-05/0.00737, allocations: 22.27 kB / 328.8 MB, free: 14.02 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.168e-05/0.007422, allocations: 27.66 kB / 328.9 MB, free: 14.01 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005341/0.007956, allocations: 274.6 kB / 329.1 MB, free: 13.86 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.552e-05/0.007971, allocations: 1.25 kB / 329.1 MB, free: 13.86 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.998e-05/0.008001, allocations: 11.45 kB / 329.1 MB, free: 13.85 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.237e-06/0.008011, allocations: 10.95 kB / 329.1 MB, free: 13.85 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003523/0.008363, allocations: 170.7 kB / 329.3 MB, free: 13.78 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001269/0.009632, allocations: 0.8291 MB / 330.1 MB, free: 13.09 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003754/0.01001, allocations: 152.5 kB / 330.3 MB, free: 13 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001377/0.01014, allocations: 67.34 kB / 330.4 MB, free: 12.96 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.588e-05/0.01017, allocations: 3.781 kB / 330.4 MB, free: 12.96 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002512/0.01042, allocations: 147.4 kB / 330.5 MB, free: 12.86 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.733e-06/0.01042, allocations: 1.094 kB / 330.5 MB, free: 12.86 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.0005136/0.01094, allocations: 229.7 kB / 330.7 MB, free: 12.76 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.634e-05/0.01102, allocations: 89.81 kB / 330.8 MB, free: 12.66 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001483/0.01117, allocations: 155.5 kB / 331 MB, free: 12.52 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.083e-05/0.01123, allocations: 42.34 kB / 331 MB, free: 12.48 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000122/0.01135, allocations: 143.1 kB / 331.2 MB, free: 12.34 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.994e-05/0.01141, allocations: 59.98 kB / 331.2 MB, free: 12.29 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001137/0.01153, allocations: 84.64 kB / 331.3 MB, free: 12.23 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001552/0.01168, allocations: 327.3 kB / 331.6 MB, free: 11.91 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001205/0.0118, allocations: 62.5 kB / 331.7 MB, free: 11.88 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000193/0.012, allocations: 136.7 kB / 331.8 MB, free: 11.76 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002857/0.01228, allocations: 192.2 kB / 332 MB, free: 11.61 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.01229, allocations: 1.469 kB / 332 MB, free: 11.61 MB / 302.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0004203/0.01271, allocations: 260.9 kB / 332.3 MB, free: 11.47 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.573e-05/0.01272, allocations: 6 kB / 332.3 MB, free: 11.47 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.283e-06/0.01273, allocations: 2.281 kB / 332.3 MB, free: 11.47 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.859e-05/0.01275, allocations: 8.438 kB / 332.3 MB, free: 11.47 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001413/0.01289, allocations: 30.3 kB / 332.3 MB, free: 11.46 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.515e-05/0.0129, allocations: 11.52 kB / 332.3 MB, free: 11.45 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001098/0.01301, allocations: 27.97 kB / 332.3 MB, free: 11.43 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.241e-05/0.01304, allocations: 10.94 kB / 332.3 MB, free: 11.43 MB / 302.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.0002081/0.01324, allocations: 168 kB / 332.5 MB, free: 11.28 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.892e-05/0.01327, allocations: 17.72 kB / 332.5 MB, free: 11.27 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.221e-05/0.01333, allocations: 19.31 kB / 332.5 MB, free: 11.25 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.328e-06/0.01333, allocations: 3.281 kB / 332.6 MB, free: 11.25 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.963e-06/0.01334, allocations: 1.094 kB / 332.6 MB, free: 11.25 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.743e-06/0.01334, allocations: 3.984 kB / 332.6 MB, free: 11.25 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007083/0.01405, allocations: 498.2 kB / 333 MB, free: 10.84 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.814e-06/0.01405, allocations: 1.031 kB / 333 MB, free: 10.84 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.94e-05/0.01413, allocations: 19.08 kB / 333.1 MB, free: 10.83 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.266e-06/0.01414, allocations: 5.094 kB / 333.1 MB, free: 10.83 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.625e-05/0.01415, allocations: 10.06 kB / 333.1 MB, free: 10.82 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.114e-06/0.01416, allocations: 1.156 kB / 333.1 MB, free: 10.82 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.01416, allocations: 1.062 kB / 333.1 MB, free: 10.82 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003385/0.01449, allocations: 281.6 kB / 333.4 MB, free: 10.61 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.315e-05/0.01452, allocations: 13.06 kB / 333.4 MB, free: 10.61 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.724e-05/0.01455, allocations: 2.312 kB / 333.4 MB, free: 10.61 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.914e-05/0.01463, allocations: 7.312 kB / 333.4 MB, free: 10.6 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.846e-05/0.01472, allocations: 24.95 kB / 333.4 MB, free: 10.59 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.601e-05/0.01474, allocations: 8.406 kB / 333.4 MB, free: 10.58 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.965e-05/0.01482, allocations: 103.5 kB / 333.5 MB, free: 10.49 MB / 302.1 MB Notification: Performance of sort global known variables: time 7e-08/0.01482, allocations: 0 / 333.5 MB, free: 10.49 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003065/0.01513, allocations: 54.2 kB / 333.6 MB, free: 10.47 MB / 302.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.0001393/0.01526, allocations: 109 kB / 333.7 MB, free: 10.37 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000332/0.0156, allocations: 172.3 kB / 333.8 MB, free: 10.3 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.895e-06/0.0156, allocations: 1.094 kB / 333.8 MB, free: 10.3 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001336/0.01573, allocations: 71.12 kB / 333.9 MB, free: 10.27 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003017/0.01603, allocations: 24.08 kB / 333.9 MB, free: 10.26 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006656/0.0167, allocations: 333.8 kB / 334.3 MB, free: 10.01 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001302/0.01683, allocations: 124 kB / 334.4 MB, free: 9.91 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.346e-05/0.0169, allocations: 26.53 kB / 334.4 MB, free: 9.898 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.452e-05/0.01698, allocations: 20.47 kB / 334.4 MB, free: 9.891 MB / 302.1 MB Notification: Performance of SimCode: time 3.81e-07/0.01698, allocations: 3.938 kB / 334.4 MB, free: 9.887 MB / 302.1 MB Notification: Performance of Templates: time 0.005337/0.02232, allocations: 1.766 MB / 336.2 MB, free: 8.984 MB / 302.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & ./Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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: 4.341507576406002]