Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.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.001895/0.001895, allocations: 107.5 kB / 20.43 MB, free: 1.066 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.002142/0.002142, allocations: 188.3 kB / 23.71 MB, free: 4.188 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.635/1.635, allocations: 225.7 MB / 252.5 MB, free: 12.86 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.Utilities.Examples.readRealParameterModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|J|phi_rel0|w_rel0",fileNamePrefix="Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel") translateModel(Modelica.Utilities.Examples.readRealParameterModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|J|phi_rel0|w_rel0",fileNamePrefix="Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001683/0.001683, allocations: 43.94 kB / 370.9 MB, free: 9.254 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2608/0.2625, allocations: 52.17 MB / 423 MB, free: 14.53 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.002273/0.2648, allocations: 1.207 MB / 424.2 MB, free: 13.31 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003207/0.268, allocations: 1.974 MB / 426.2 MB, free: 11.33 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.16e-05/0.268, allocations: 3.938 kB / 426.2 MB, free: 11.32 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 2.006e-05/0.268, allocations: 3.938 kB / 426.2 MB, free: 11.32 MB / 334.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Utilities/Examples.mo:279:3-372:24:writable] Warning: Pure function 'Modelica.Utilities.Examples.readRealParameter' contains a call to impure function 'Modelica.Utilities.Streams.readLine'. Notification: Performance of NFTyping.typeBindings: time 0.00122/0.2693, allocations: 434.7 kB / 426.6 MB, free: 10.89 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 2.156e-05/0.2693, allocations: 0 / 426.6 MB, free: 10.89 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 5.001e-05/0.2693, allocations: 15.92 kB / 426.7 MB, free: 10.88 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.572e-05/0.2694, allocations: 0 / 426.7 MB, free: 10.88 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.142e-05/0.2694, allocations: 7.984 kB / 426.7 MB, free: 10.87 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.692e-05/0.2695, allocations: 4 kB / 426.7 MB, free: 10.87 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.236e-06/0.2695, allocations: 3.938 kB / 426.7 MB, free: 10.86 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007245/0.2702, allocations: 447.5 kB / 427.1 MB, free: 10.43 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 1.26e-05/0.2702, allocations: 0 / 427.1 MB, free: 10.43 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 2.206e-05/0.2702, allocations: 7.984 kB / 427.1 MB, free: 10.42 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005156/0.2707, allocations: 337.4 kB / 427.4 MB, free: 10.09 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.2707, allocations: 0 / 427.4 MB, free: 10.09 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.2707, allocations: 0 / 427.4 MB, free: 10.09 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.089e-06/0.2707, allocations: 0 / 427.4 MB, free: 10.09 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: 0 * Number of variables: 0 Notification: Performance of Generate backend data structure: time 0.0004677/0.2712, allocations: 337.5 kB / 427.8 MB, free: 9.734 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.511e-05/0.2713, allocations: 16.03 kB / 427.8 MB, free: 9.719 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.141e-05/0.2713, allocations: 76.22 kB / 427.9 MB, free: 9.645 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001814/0.2715, allocations: 185.8 kB / 428 MB, free: 9.438 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.218e-05/0.2716, allocations: 154.9 kB / 428.2 MB, free: 9.285 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.811e-05/0.2716, allocations: 154.7 kB / 428.4 MB, free: 9.133 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.798e-05/0.2717, allocations: 108.9 kB / 428.5 MB, free: 9.02 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.41e-05/0.2718, allocations: 83.27 kB / 428.5 MB, free: 8.938 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.69e-05/0.2718, allocations: 150.6 kB / 428.7 MB, free: 8.789 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.528e-05/0.2719, allocations: 154.5 kB / 428.8 MB, free: 8.637 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.716e-05/0.272, allocations: 150.6 kB / 429 MB, free: 8.488 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000299/0.2723, allocations: 397.6 kB / 429.4 MB, free: 8.07 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001125/0.2724, allocations: 177.1 kB / 429.5 MB, free: 7.887 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.778e-05/0.2724, allocations: 84.19 kB / 429.6 MB, free: 7.801 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.373e-05/0.2725, allocations: 75.28 kB / 429.7 MB, free: 7.727 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001285/0.2726, allocations: 47.34 kB / 429.7 MB, free: 7.668 MB / 334.1 MB Notification: Performance of pre-optimization done (n=1): time 1.984e-06/0.2726, allocations: 0 / 429.7 MB, free: 7.668 MB / 334.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001379/0.2727, allocations: 45.62 kB / 429.8 MB, free: 7.617 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.399e-05/0.2728, allocations: 55.39 kB / 429.8 MB, free: 7.551 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.775e-05/0.2729, allocations: 97.86 kB / 429.9 MB, free: 7.445 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.467e-05/0.2729, allocations: 29.83 kB / 430 MB, free: 7.41 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.521e-05/0.2729, allocations: 84.14 kB / 430.1 MB, free: 7.324 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.26e-05/0.2729, allocations: 0 / 430.1 MB, free: 7.324 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.601e-05/0.273, allocations: 9.719 kB / 430.1 MB, free: 7.309 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001468/0.2731, allocations: 322.8 kB / 430.4 MB, free: 6.984 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.485e-06/0.2731, allocations: 0 / 430.4 MB, free: 6.984 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.599e-06/0.2731, allocations: 0 / 430.4 MB, free: 6.984 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.341e-05/0.2732, allocations: 8.859 kB / 430.4 MB, free: 6.973 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.416e-06/0.2732, allocations: 4 kB / 430.4 MB, free: 6.969 MB / 334.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.966e-05/0.2732, allocations: 37.58 kB / 430.4 MB, free: 6.926 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.454e-05/0.2732, allocations: 12.09 kB / 430.4 MB, free: 6.914 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.986e-06/0.2732, allocations: 0 / 430.4 MB, free: 6.914 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.472e-05/0.2732, allocations: 0 / 430.4 MB, free: 6.914 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.167e-05/0.2733, allocations: 3.984 kB / 430.4 MB, free: 6.91 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.987e-06/0.2733, allocations: 0 / 430.4 MB, free: 6.91 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.456e-05/0.2733, allocations: 0 / 430.4 MB, free: 6.91 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.559e-06/0.2733, allocations: 0 / 430.4 MB, free: 6.91 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 1 * 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 8.092e-05/0.2734, allocations: 113.8 kB / 430.6 MB, free: 6.789 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.792e-05/0.2734, allocations: 7.891 kB / 430.6 MB, free: 6.781 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.408e-05/0.2734, allocations: 7.156 kB / 430.6 MB, free: 6.773 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.084e-06/0.2734, allocations: 7.938 kB / 430.6 MB, free: 6.766 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.156e-06/0.2734, allocations: 0 / 430.6 MB, free: 6.766 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.174e-06/0.2734, allocations: 0 / 430.6 MB, free: 6.766 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.58e-05/0.2735, allocations: 101.3 kB / 430.7 MB, free: 6.637 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.81e-07/0.2735, allocations: 0 / 430.7 MB, free: 6.637 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.986e-06/0.2735, allocations: 0 / 430.7 MB, free: 6.637 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.627e-06/0.2735, allocations: 3.938 kB / 430.7 MB, free: 6.633 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.689e-06/0.2735, allocations: 0 / 430.7 MB, free: 6.633 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.52e-07/0.2735, allocations: 0 / 430.7 MB, free: 6.633 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.11e-07/0.2735, allocations: 0 / 430.7 MB, free: 6.633 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.93e-05/0.2736, allocations: 65.06 kB / 430.7 MB, free: 6.551 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.162e-06/0.2736, allocations: 11.91 kB / 430.8 MB, free: 6.539 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.234e-05/0.2736, allocations: 4 kB / 430.8 MB, free: 6.535 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.16e-05/0.2736, allocations: 0 / 430.8 MB, free: 6.535 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.356e-05/0.2737, allocations: 0 / 430.8 MB, free: 6.535 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.613e-06/0.2737, allocations: 0 / 430.8 MB, free: 6.535 MB / 334.1 MB Notification: Performance of sorting global known variables: time 4.898e-05/0.2737, allocations: 87.27 kB / 430.8 MB, free: 6.449 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2737, allocations: 0 / 430.8 MB, free: 6.449 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003924/0.2741, allocations: 131.6 kB / 431 MB, free: 6.32 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: 1 ($whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 1 * 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 Backend phase and start with SimCode phase: time 0.001179/0.2753, allocations: 0.4928 MB / 431.5 MB, free: 5.91 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 7.544e-05/0.2754, allocations: 4 kB / 431.5 MB, free: 5.906 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.2754, allocations: 0 / 431.5 MB, free: 5.906 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 5.4e-06/0.2754, allocations: 3.938 kB / 431.5 MB, free: 5.902 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001412/0.2755, allocations: 9.375 kB / 431.5 MB, free: 5.895 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002706/0.2758, allocations: 114.8 kB / 431.6 MB, free: 5.758 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.471e-05/0.2758, allocations: 63.16 kB / 431.7 MB, free: 5.676 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 2.727e-05/0.2759, allocations: 11.98 kB / 431.7 MB, free: 5.664 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.313e-05/0.2759, allocations: 15.42 kB / 431.7 MB, free: 5.648 MB / 334.1 MB Notification: Performance of SimCode: time 3.1e-07/0.2759, allocations: 0 / 431.7 MB, free: 5.648 MB / 334.1 MB Notification: Performance of Templates: time 0.007124/0.283, allocations: 2.771 MB / 434.5 MB, free: 2.875 MB / 334.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.pipe ; mkfifo Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.pipe >> ../files/Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.sim & ./Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Utilities/Examples/readRealParameterModel/readRealParameterModel.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.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.865931738168001]