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.0008129/0.0008129, allocations: 87.62 kB / 21.43 MB, free: 3.133 MB / 18.57 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.003013/0.003013, allocations: 161.2 kB / 24.7 MB, free: 9.426 MB / 18.57 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 0.8331/0.8331, allocations: 177.2 MB / 205 MB, free: 5.723 MB / 186.7 MB " [Timeout remaining time 179] 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.663e-06/1.663e-06, allocations: 0 / 325.8 MB, free: 15.46 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.079e-05/2.245e-05, allocations: 2.281 kB / 325.8 MB, free: 15.45 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.001696/0.001718, allocations: 1.478 MB / 327.3 MB, free: 13.97 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005013/0.002219, allocations: 291.1 kB / 327.6 MB, free: 13.68 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.26e-05/0.002302, allocations: 3.938 kB / 327.6 MB, free: 13.68 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001161/0.002418, allocations: 23.73 kB / 327.6 MB, free: 13.66 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 3.141e-05/0.002449, allocations: 15.81 kB / 327.6 MB, free: 13.64 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003484/0.002798, allocations: 119.7 kB / 327.7 MB, free: 13.52 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002328/0.003031, allocations: 271.4 kB / 328 MB, free: 13.26 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000211/0.003242, allocations: 138.7 kB / 328.1 MB, free: 13.12 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001057/0.003347, allocations: 131.8 kB / 328.3 MB, free: 12.99 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.163e-05/0.003439, allocations: 71.77 kB / 328.3 MB, free: 12.92 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.842e-05/0.003468, allocations: 24 kB / 328.3 MB, free: 12.89 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.171e-05/0.003529, allocations: 24 kB / 328.4 MB, free: 12.87 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.908e-05/0.003578, allocations: 55.81 kB / 328.4 MB, free: 12.82 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.727e-05/0.003636, allocations: 67.81 kB / 328.5 MB, free: 12.75 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002337/0.003869, allocations: 251.1 kB / 328.7 MB, free: 12.5 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.184e-06/0.003871, allocations: 4 kB / 328.7 MB, free: 12.5 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.122e-06/0.003873, allocations: 0 / 328.7 MB, free: 12.5 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.339e-06/0.003877, allocations: 4 kB / 328.7 MB, free: 12.5 MB / 298.7 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.0004724/0.004349, allocations: 409.1 kB / 329.1 MB, free: 12.06 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.338e-05/0.004383, allocations: 12.03 kB / 329.2 MB, free: 12.05 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001762/0.004559, allocations: 28.83 kB / 329.2 MB, free: 12.02 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002075/0.004766, allocations: 173.4 kB / 329.4 MB, free: 11.83 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.856e-05/0.004795, allocations: 20.88 kB / 329.4 MB, free: 11.81 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.339e-05/0.004818, allocations: 24.38 kB / 329.4 MB, free: 11.79 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002732/0.005092, allocations: 243.3 kB / 329.6 MB, free: 11.54 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.22e-05/0.005104, allocations: 8.109 kB / 329.6 MB, free: 11.53 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.474e-05/0.005118, allocations: 4.375 kB / 329.6 MB, free: 11.52 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.218e-06/0.005128, allocations: 12.31 kB / 329.7 MB, free: 11.51 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001914/0.005319, allocations: 161.8 kB / 329.8 MB, free: 11.36 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008831/0.006202, allocations: 0.5622 MB / 330.4 MB, free: 10.76 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002078/0.00641, allocations: 149.3 kB / 330.5 MB, free: 10.61 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.073e-05/0.006491, allocations: 76.77 kB / 330.6 MB, free: 10.53 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.075e-05/0.006511, allocations: 0 / 330.6 MB, free: 10.53 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001326/0.006644, allocations: 124.2 kB / 330.7 MB, free: 10.39 MB / 298.7 MB Notification: Performance of pre-optimization done (n=24): time 1.152e-06/0.006645, allocations: 0 / 330.7 MB, free: 10.39 MB / 298.7 MB Notification: Performance of matching and sorting (n=24): time 0.0003111/0.006956, allocations: 228.1 kB / 330.9 MB, free: 10.17 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.594e-05/0.006992, allocations: 59.39 kB / 331 MB, free: 10.1 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.527e-05/0.007068, allocations: 145.6 kB / 331.1 MB, free: 9.949 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.919e-05/0.007087, allocations: 37.7 kB / 331.2 MB, free: 9.906 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.164e-05/0.007148, allocations: 132.8 kB / 331.3 MB, free: 9.77 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.285e-05/0.007181, allocations: 71.47 kB / 331.4 MB, free: 9.699 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.25e-05/0.007244, allocations: 70.02 kB / 331.4 MB, free: 9.621 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.762e-05/0.007321, allocations: 326.8 kB / 331.8 MB, free: 9.293 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.262e-05/0.007394, allocations: 64.62 kB / 331.8 MB, free: 9.23 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001029/0.007497, allocations: 128.1 kB / 332 MB, free: 9.082 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000158/0.007655, allocations: 171.2 kB / 332.1 MB, free: 8.891 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.007658, allocations: 0 / 332.1 MB, free: 8.891 MB / 298.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0002267/0.007884, allocations: 249.3 kB / 332.4 MB, free: 8.641 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.256e-05/0.007897, allocations: 4 kB / 332.4 MB, free: 8.637 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.919e-06/0.007902, allocations: 0 / 332.4 MB, free: 8.637 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.31e-05/0.007915, allocations: 7.938 kB / 332.4 MB, free: 8.629 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.187e-05/0.007997, allocations: 31.92 kB / 332.4 MB, free: 8.598 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.372e-06/0.008003, allocations: 4 kB / 332.4 MB, free: 8.594 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.07e-05/0.008054, allocations: 23.84 kB / 332.4 MB, free: 8.57 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.237e-05/0.008066, allocations: 15.98 kB / 332.5 MB, free: 8.555 MB / 298.7 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 9.315e-05/0.008159, allocations: 161.9 kB / 332.6 MB, free: 8.387 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.213e-05/0.008171, allocations: 15.84 kB / 332.6 MB, free: 8.371 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.04e-05/0.008202, allocations: 28.92 kB / 332.7 MB, free: 8.344 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.006e-06/0.008205, allocations: 3.938 kB / 332.7 MB, free: 8.34 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.897e-06/0.008209, allocations: 0 / 332.7 MB, free: 8.34 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.407e-06/0.008212, allocations: 0 / 332.7 MB, free: 8.34 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003873/0.008599, allocations: 466.1 kB / 333.1 MB, free: 7.848 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.008601, allocations: 0 / 333.1 MB, free: 7.848 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.594e-05/0.008636, allocations: 19.98 kB / 333.1 MB, free: 7.828 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.643e-06/0.008638, allocations: 0 / 333.1 MB, free: 7.828 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.107e-06/0.008647, allocations: 8 kB / 333.1 MB, free: 7.82 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.008648, allocations: 0 / 333.1 MB, free: 7.82 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.008649, allocations: 3.938 kB / 333.1 MB, free: 7.816 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001736/0.008823, allocations: 282.4 kB / 333.4 MB, free: 7.527 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.16e-05/0.008835, allocations: 15.91 kB / 333.4 MB, free: 7.512 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.4e-05/0.008849, allocations: 0 / 333.4 MB, free: 7.512 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.211e-05/0.008891, allocations: 11.98 kB / 333.4 MB, free: 7.5 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.439e-05/0.008945, allocations: 19.97 kB / 333.5 MB, free: 7.48 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.656e-06/0.008954, allocations: 7.984 kB / 333.5 MB, free: 7.473 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.523e-05/0.008989, allocations: 99.27 kB / 333.6 MB, free: 7.375 MB / 298.7 MB Notification: Performance of sort global known variables: time 7e-08/0.008989, allocations: 4 kB / 333.6 MB, free: 7.371 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001711/0.00916, allocations: 43.89 kB / 333.6 MB, free: 7.328 MB / 298.7 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 7.639e-05/0.009237, allocations: 111.2 kB / 333.7 MB, free: 7.207 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002037/0.00944, allocations: 155.7 kB / 333.9 MB, free: 7.055 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.292e-06/0.009442, allocations: 0 / 333.9 MB, free: 7.055 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 7.912e-05/0.009521, allocations: 74.75 kB / 334 MB, free: 6.984 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001904/0.009711, allocations: 24.36 kB / 334 MB, free: 6.961 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003814/0.01009, allocations: 345.1 kB / 334.3 MB, free: 6.594 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.161e-05/0.01016, allocations: 116.5 kB / 334.4 MB, free: 6.457 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.287e-05/0.01021, allocations: 24.48 kB / 334.4 MB, free: 6.434 MB / 298.7 MB Notification: Performance of SimCode: time 5.11e-07/0.01021, allocations: 0 / 334.4 MB, free: 6.434 MB / 298.7 MB Notification: Performance of Templates: time 0.002474/0.01268, allocations: 2.218 MB / 336.7 MB, free: 4.215 MB / 298.7 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.195684606209397]