Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample.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.001333/0.001333, allocations: 86.06 kB / 20.68 MB, free: 1.035 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.001471/0.001471, allocations: 164.9 kB / 23.96 MB, free: 4.164 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.45/1.45, allocations: 177.1 MB / 204.3 MB, free: 9.172 MB / 190.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,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.1.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.1.0_Modelica.StateGraph.Examples.FirstExample") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.222e-06/1.222e-06, allocations: 0 / 325 MB, free: 0.5586 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.372e-05/2.494e-05, allocations: 7.562 kB / 325 MB, free: 0.5508 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.002374/0.002399, allocations: 1.479 MB / 326.5 MB, free: 15.53 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006779/0.003077, allocations: 289 kB / 326.8 MB, free: 15.34 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.264e-05/0.00316, allocations: 3.25 kB / 326.8 MB, free: 15.34 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001299/0.00329, allocations: 29.92 kB / 326.8 MB, free: 15.31 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 5.039e-05/0.00334, allocations: 18.12 kB / 326.9 MB, free: 15.3 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003966/0.003736, allocations: 114.4 kB / 327 MB, free: 15.24 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003577/0.004094, allocations: 271.1 kB / 327.2 MB, free: 15.12 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002686/0.004363, allocations: 133.7 kB / 327.4 MB, free: 15.05 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001747/0.004537, allocations: 132.3 kB / 327.5 MB, free: 14.99 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001386/0.004676, allocations: 71.27 kB / 327.6 MB, free: 14.96 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.841e-05/0.004714, allocations: 22.25 kB / 327.6 MB, free: 14.96 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.894e-05/0.004783, allocations: 30.64 kB / 327.6 MB, free: 14.96 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.092e-05/0.004854, allocations: 54.41 kB / 327.7 MB, free: 14.92 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.775e-05/0.004942, allocations: 64.42 kB / 327.7 MB, free: 14.89 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003374/0.005279, allocations: 255.6 kB / 328 MB, free: 14.77 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.645e-06/0.005282, allocations: 5.156 kB / 328 MB, free: 14.77 MB / 302.1 MB Notification: Performance of FrontEnd: time 8.61e-07/0.005283, allocations: 0 / 328 MB, free: 14.77 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.339e-06/0.005287, allocations: 0 / 328 MB, free: 14.77 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: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.0006571/0.005944, allocations: 406.5 kB / 328.4 MB, free: 14.42 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.907e-05/0.005973, allocations: 9.688 kB / 328.4 MB, free: 14.42 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002613/0.006235, allocations: 32 kB / 328.4 MB, free: 14.41 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002675/0.006502, allocations: 171.3 kB / 328.6 MB, free: 14.25 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.514e-05/0.006537, allocations: 21.09 kB / 328.6 MB, free: 14.24 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.829e-05/0.006576, allocations: 26.55 kB / 328.6 MB, free: 14.23 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000428/0.007004, allocations: 246 kB / 328.9 MB, free: 14.11 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.164e-05/0.007015, allocations: 192 / 328.9 MB, free: 14.11 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.628e-05/0.007041, allocations: 11.02 kB / 328.9 MB, free: 14.1 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.897e-06/0.00705, allocations: 6.281 kB / 328.9 MB, free: 14.1 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000306/0.007356, allocations: 154.6 kB / 329 MB, free: 14.05 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009351/0.008291, allocations: 0.5739 MB / 329.6 MB, free: 13.61 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003048/0.008596, allocations: 148.2 kB / 329.8 MB, free: 13.54 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001266/0.008723, allocations: 69.48 kB / 329.8 MB, free: 13.5 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.419e-05/0.008747, allocations: 5.906 kB / 329.8 MB, free: 13.5 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002205/0.008967, allocations: 118.5 kB / 329.9 MB, free: 13.43 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.773e-06/0.008969, allocations: 1.031 kB / 329.9 MB, free: 13.43 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004661/0.009435, allocations: 220.2 kB / 330.2 MB, free: 13.33 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.746e-05/0.009493, allocations: 59.81 kB / 330.2 MB, free: 13.26 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001397/0.009632, allocations: 149 kB / 330.4 MB, free: 13.14 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.585e-05/0.009678, allocations: 35.34 kB / 330.4 MB, free: 13.1 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001093/0.009788, allocations: 138.6 kB / 330.5 MB, free: 12.97 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.333e-05/0.009851, allocations: 65.12 kB / 330.6 MB, free: 12.92 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001175/0.009968, allocations: 74.89 kB / 330.7 MB, free: 12.88 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001627/0.01013, allocations: 325 kB / 331 MB, free: 12.56 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001221/0.01025, allocations: 61.62 kB / 331.1 MB, free: 12.53 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001751/0.01043, allocations: 134.3 kB / 331.2 MB, free: 12.42 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002699/0.0107, allocations: 172.1 kB / 331.4 MB, free: 12.3 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.991e-06/0.0107, allocations: 5 kB / 331.4 MB, free: 12.29 MB / 302.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003911/0.0111, allocations: 245.8 kB / 331.6 MB, free: 12.16 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.58e-05/0.01111, allocations: 6.625 kB / 331.6 MB, free: 12.16 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.651e-06/0.01112, allocations: 1.406 kB / 331.6 MB, free: 12.16 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.951e-05/0.01114, allocations: 8.062 kB / 331.6 MB, free: 12.16 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001349/0.01127, allocations: 30.61 kB / 331.6 MB, free: 12.14 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.646e-06/0.01128, allocations: 3.312 kB / 331.6 MB, free: 12.14 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001069/0.01139, allocations: 32.23 kB / 331.7 MB, free: 12.12 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.844e-05/0.01141, allocations: 8.344 kB / 331.7 MB, free: 12.12 MB / 302.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.0001613/0.01157, allocations: 159.7 kB / 331.8 MB, free: 11.97 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.597e-05/0.01159, allocations: 13.78 kB / 331.9 MB, free: 11.96 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.679e-05/0.01165, allocations: 23.08 kB / 331.9 MB, free: 11.95 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.398e-05/0.01166, allocations: 6.531 kB / 331.9 MB, free: 11.94 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.47e-06/0.01167, allocations: 0 / 331.9 MB, free: 11.94 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.489e-06/0.01167, allocations: 0 / 331.9 MB, free: 11.94 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006795/0.01235, allocations: 470.7 kB / 332.3 MB, free: 11.57 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.803e-06/0.01235, allocations: 1 kB / 332.3 MB, free: 11.57 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.829e-05/0.01243, allocations: 19.64 kB / 332.4 MB, free: 11.57 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.146e-06/0.01244, allocations: 1.469 kB / 332.4 MB, free: 11.57 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.508e-05/0.01245, allocations: 9.188 kB / 332.4 MB, free: 11.56 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.795e-06/0.01245, allocations: 1.188 kB / 332.4 MB, free: 11.56 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.01246, allocations: 1.281 kB / 332.4 MB, free: 11.56 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003437/0.0128, allocations: 273.5 kB / 332.6 MB, free: 11.36 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.745e-05/0.01282, allocations: 12.19 kB / 332.7 MB, free: 11.35 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.551e-05/0.01284, allocations: 5.844 kB / 332.7 MB, free: 11.35 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.411e-05/0.01294, allocations: 11.27 kB / 332.7 MB, free: 11.34 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.435e-05/0.013, allocations: 17.25 kB / 332.7 MB, free: 11.33 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.407e-05/0.01301, allocations: 8.562 kB / 332.7 MB, free: 11.33 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.405e-05/0.01308, allocations: 95.61 kB / 332.8 MB, free: 11.25 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.01308, allocations: 4 kB / 332.8 MB, free: 11.24 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003594/0.01344, allocations: 51.61 kB / 332.8 MB, free: 11.22 MB / 302.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: 17 (transition2.enableFire,step.active,transition1.enableFire,initialStep.active,$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 (24): * Single equations (assignments): 20 * 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.0001103/0.01355, allocations: 102.4 kB / 332.9 MB, free: 11.12 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003138/0.01386, allocations: 169.5 kB / 333.1 MB, free: 11.05 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.512e-06/0.01386, allocations: 0 / 333.1 MB, free: 11.05 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001222/0.01399, allocations: 68.92 kB / 333.2 MB, free: 11.03 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002819/0.01427, allocations: 29.05 kB / 333.2 MB, free: 11.01 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005861/0.01485, allocations: 323 kB / 333.5 MB, free: 10.77 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001323/0.01499, allocations: 124.7 kB / 333.6 MB, free: 10.67 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.492e-05/0.01506, allocations: 24.81 kB / 333.7 MB, free: 10.66 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.088e-05/0.01512, allocations: 20.53 kB / 333.7 MB, free: 10.65 MB / 302.1 MB Notification: Performance of SimCode: time 3.41e-07/0.01512, allocations: 0 / 333.7 MB, free: 10.65 MB / 302.1 MB Notification: Performance of Templates: time 0.005416/0.02054, allocations: 1.702 MB / 335.4 MB, free: 9.793 MB / 302.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample.sim & ./Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/StateGraph/Examples/FirstExample/FirstExample.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 4.286029279232025]