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.001077/0.001077, allocations: 80.41 kB / 22.21 MB, free: 2.289 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.001088/0.001088, allocations: 174.2 kB / 25.61 MB, free: 8.586 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 1.021/1.021, allocations: 177.1 MB / 206 MB, free: 4.465 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.603e-06/1.603e-06, allocations: 0 / 274.1 MB, free: 4.445 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.788e-05/1.949e-05, allocations: 2.312 kB / 274.1 MB, free: 4.441 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.002057/0.002076, allocations: 1.51 MB / 275.7 MB, free: 2.938 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006124/0.002688, allocations: 284.5 kB / 275.9 MB, free: 2.66 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001008/0.002789, allocations: 3.938 kB / 275.9 MB, free: 2.656 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001466/0.002936, allocations: 27.67 kB / 276 MB, free: 2.629 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 3.66e-05/0.002972, allocations: 16.44 kB / 276 MB, free: 2.613 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003883/0.003361, allocations: 124.2 kB / 276.1 MB, free: 2.492 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002501/0.003611, allocations: 268.1 kB / 276.4 MB, free: 2.23 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000222/0.003833, allocations: 141.9 kB / 276.5 MB, free: 2.09 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001162/0.003949, allocations: 131.8 kB / 276.6 MB, free: 1.961 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001147/0.004064, allocations: 67.78 kB / 276.7 MB, free: 1.895 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.824e-05/0.004092, allocations: 20 kB / 276.7 MB, free: 1.875 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.974e-05/0.004152, allocations: 35.97 kB / 276.8 MB, free: 1.84 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.893e-05/0.004201, allocations: 51.83 kB / 276.8 MB, free: 1.789 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 5.333e-05/0.004254, allocations: 61.84 kB / 276.9 MB, free: 1.73 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002217/0.004476, allocations: 179.2 kB / 277 MB, free: 1.555 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.145e-06/0.004479, allocations: 3.984 kB / 277 MB, free: 1.551 MB / 250.7 MB Notification: Performance of FrontEnd: time 9.42e-07/0.00448, allocations: 0 / 277 MB, free: 1.551 MB / 250.7 MB Notification: Performance of Transformations before backend: time 5.07e-06/0.004485, allocations: 0 / 277 MB, free: 1.551 MB / 250.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.0005287/0.005014, allocations: 0.5076 MB / 277.6 MB, free: 1.008 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.364e-05/0.005047, allocations: 8.688 kB / 277.6 MB, free: 1 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001839/0.005231, allocations: 48.83 kB / 277.6 MB, free: 0.9531 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001886/0.00542, allocations: 176.3 kB / 277.8 MB, free: 0.7539 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.526e-05/0.005445, allocations: 16.88 kB / 277.8 MB, free: 0.7383 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.469e-05/0.00547, allocations: 28.38 kB / 277.8 MB, free: 0.7109 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002124/0.005682, allocations: 197.6 kB / 278 MB, free: 0.4961 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.099e-05/0.005693, allocations: 4.188 kB / 278 MB, free: 0.4922 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.319e-05/0.005706, allocations: 4.375 kB / 278 MB, free: 500 kB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.268e-06/0.005715, allocations: 4.375 kB / 278 MB, free: 496 kB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.492e-05/0.0058, allocations: 75.36 kB / 278.1 MB, free: 424 kB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006537/0.006454, allocations: 0.6466 MB / 278.7 MB, free: 15.73 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001587/0.006613, allocations: 127.3 kB / 278.9 MB, free: 15.6 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.656e-05/0.006659, allocations: 47.59 kB / 278.9 MB, free: 15.55 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.713e-05/0.006676, allocations: 4 kB / 278.9 MB, free: 15.54 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001045/0.006781, allocations: 100.9 kB / 279 MB, free: 15.43 MB / 266.7 MB Notification: Performance of pre-optimization done (n=24): time 1.553e-06/0.006783, allocations: 0 / 279 MB, free: 15.43 MB / 266.7 MB Notification: Performance of matching and sorting (n=24): time 0.0002264/0.007009, allocations: 168.2 kB / 279.2 MB, free: 15.26 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.529e-05/0.007044, allocations: 59.34 kB / 279.2 MB, free: 15.19 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001035/0.007148, allocations: 209.7 kB / 279.5 MB, free: 14.97 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.25e-05/0.00717, allocations: 37.7 kB / 279.5 MB, free: 14.93 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.888e-05/0.007249, allocations: 183.5 kB / 279.7 MB, free: 14.74 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.326e-05/0.007292, allocations: 75.44 kB / 279.7 MB, free: 14.66 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.556e-05/0.007368, allocations: 79.62 kB / 279.8 MB, free: 14.57 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000124/0.007492, allocations: 0.4962 MB / 280.3 MB, free: 14.07 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.627e-05/0.007528, allocations: 32.62 kB / 280.3 MB, free: 14.04 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.424e-05/0.007603, allocations: 118.7 kB / 280.5 MB, free: 13.89 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001219/0.007724, allocations: 153.3 kB / 280.6 MB, free: 13.7 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.007727, allocations: 0 / 280.6 MB, free: 13.7 MB / 266.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0001895/0.007916, allocations: 201.9 kB / 280.8 MB, free: 13.5 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.325e-05/0.00793, allocations: 6.031 kB / 280.8 MB, free: 13.5 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.16e-06/0.007935, allocations: 4 kB / 280.8 MB, free: 13.49 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.688e-06/0.007945, allocations: 4 kB / 280.8 MB, free: 13.49 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.982e-05/0.008024, allocations: 36.08 kB / 280.9 MB, free: 13.45 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.642e-06/0.008031, allocations: 11.98 kB / 280.9 MB, free: 13.44 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.015e-05/0.008091, allocations: 23.84 kB / 280.9 MB, free: 13.42 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.176e-05/0.008103, allocations: 15.98 kB / 280.9 MB, free: 13.4 MB / 266.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,transition1.condition,transition2.condition,stateGraphRoot.suspend,stateGraphRoot.resume) * 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.0001106/0.008213, allocations: 184.4 kB / 281.1 MB, free: 13.21 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.225e-05/0.008236, allocations: 23.91 kB / 281.1 MB, free: 13.19 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.239e-05/0.008268, allocations: 16.94 kB / 281.1 MB, free: 13.17 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.663e-06/0.00827, allocations: 4 kB / 281.1 MB, free: 13.16 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.482e-06/0.008276, allocations: 7.938 kB / 281.1 MB, free: 13.16 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.51e-06/0.008282, allocations: 3.984 kB / 281.1 MB, free: 13.15 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003704/0.008652, allocations: 457.3 kB / 281.6 MB, free: 12.68 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.008654, allocations: 0 / 281.6 MB, free: 12.68 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.812e-05/0.008692, allocations: 23.92 kB / 281.6 MB, free: 12.65 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.977e-06/0.008696, allocations: 3.938 kB / 281.6 MB, free: 12.65 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.382e-06/0.008702, allocations: 0 / 281.6 MB, free: 12.65 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.154e-06/0.008704, allocations: 7.938 kB / 281.6 MB, free: 12.64 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.008706, allocations: 0 / 281.6 MB, free: 12.64 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001782/0.008884, allocations: 300.2 kB / 281.9 MB, free: 12.33 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.4e-05/0.008898, allocations: 19.83 kB / 281.9 MB, free: 12.31 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.571e-05/0.008914, allocations: 3.938 kB / 281.9 MB, free: 12.3 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.064e-05/0.008954, allocations: 12 kB / 282 MB, free: 12.29 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.878e-05/0.009003, allocations: 27.81 kB / 282 MB, free: 12.27 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.193e-06/0.00901, allocations: 4 kB / 282 MB, free: 12.26 MB / 266.7 MB Notification: Performance of sorting global known variables: time 4.194e-05/0.009052, allocations: 135.2 kB / 282.1 MB, free: 12.13 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.009052, allocations: 0 / 282.1 MB, free: 12.13 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001895/0.009242, allocations: 47.89 kB / 282.2 MB, free: 12.08 MB / 266.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 8.073e-05/0.009322, allocations: 99.25 kB / 282.3 MB, free: 11.98 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001587/0.009481, allocations: 127.8 kB / 282.4 MB, free: 11.85 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.473e-06/0.009483, allocations: 4.062 kB / 282.4 MB, free: 11.84 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 6.179e-05/0.009544, allocations: 70.58 kB / 282.5 MB, free: 11.77 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001881/0.009732, allocations: 19.98 kB / 282.5 MB, free: 11.75 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003743/0.01011, allocations: 319.1 kB / 282.8 MB, free: 11.41 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.288e-05/0.01016, allocations: 79.84 kB / 282.9 MB, free: 11.32 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.467e-05/0.01021, allocations: 25.94 kB / 282.9 MB, free: 11.29 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.79e-05/0.0103, allocations: 98.19 kB / 283 MB, free: 11.2 MB / 266.7 MB Notification: Performance of SimCode: time 7.31e-07/0.0103, allocations: 0 / 283 MB, free: 11.2 MB / 266.7 MB Notification: Performance of Templates: time 0.003487/0.01379, allocations: 1.917 MB / 284.9 MB, free: 9.312 MB / 266.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=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.848403208889067]