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.001631/0.001631, allocations: 112 kB / 20.43 MB, free: 1.449 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.001784/0.001784, allocations: 187.8 kB / 23.72 MB, free: 4.68 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.476/1.476, allocations: 225.6 MB / 252.5 MB, free: 13.02 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.001715/0.001715, allocations: 47.92 kB / 370.9 MB, free: 9.395 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.2735/0.2752, allocations: 52.18 MB / 423.1 MB, free: 14.71 MB / 334.1 MB
Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.002454/0.2777, allocations: 1.203 MB / 424.3 MB, free: 13.5 MB / 334.1 MB
Notification: Performance of NFInst.instExpressions: time 0.003531/0.2812, allocations: 2.067 MB / 426.4 MB, free: 11.43 MB / 334.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 2.207e-05/0.2812, allocations: 0 / 426.4 MB, free: 11.43 MB / 334.1 MB
Notification: Performance of NFTyping.typeComponents: time 2.057e-05/0.2812, allocations: 0 / 426.4 MB, free: 11.43 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.001299/0.2825, allocations: 434.7 kB / 426.8 MB, free: 11 MB / 334.1 MB
Notification: Performance of NFTyping.typeClassSections: time 2.943e-05/0.2826, allocations: 11.88 kB / 426.8 MB, free: 10.99 MB / 334.1 MB
Notification: Performance of NFFlatten.flatten: time 6.3e-05/0.2826, allocations: 15.97 kB / 426.8 MB, free: 10.97 MB / 334.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 5.006e-05/0.2827, allocations: 0 / 426.8 MB, free: 10.97 MB / 334.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 2.516e-05/0.2827, allocations: 7.938 kB / 426.8 MB, free: 10.96 MB / 334.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0002643/0.283, allocations: 4 kB / 426.8 MB, free: 10.96 MB / 334.1 MB
Notification: Performance of NFPackage.collectConstants: time 1.066e-05/0.283, allocations: 0 / 426.8 MB, free: 10.96 MB / 334.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.0008318/0.2838, allocations: 483.5 kB / 427.3 MB, free: 10.49 MB / 334.1 MB
Notification: Performance of NFScalarize.scalarize: time 1.954e-05/0.2838, allocations: 7.938 kB / 427.3 MB, free: 10.48 MB / 334.1 MB
Notification: Performance of NFVerifyModel.verify: time 3.16e-05/0.2839, allocations: 0 / 427.3 MB, free: 10.48 MB / 334.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0005959/0.2845, allocations: 344.4 kB / 427.6 MB, free: 10.15 MB / 334.1 MB
Notification: Performance of FrontEnd - DAE generated: time 4.668e-06/0.2845, allocations: 0 / 427.6 MB, free: 10.15 MB / 334.1 MB
Notification: Performance of FrontEnd: time 1.733e-06/0.2845, allocations: 4 kB / 427.6 MB, free: 10.14 MB / 334.1 MB
Notification: Performance of Transformations before backend: time 8.015e-06/0.2845, allocations: 0 / 427.6 MB, free: 10.14 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.0005318/0.285, allocations: 337.5 kB / 428 MB, free: 9.785 MB / 334.1 MB
Notification: Performance of prepare preOptimizeDAE: time 4.756e-05/0.2851, allocations: 12.03 kB / 428 MB, free: 9.773 MB / 334.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 8.199e-05/0.2851, allocations: 76.22 kB / 428.1 MB, free: 9.699 MB / 334.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002019/0.2853, allocations: 193.7 kB / 428.3 MB, free: 9.484 MB / 334.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.626e-05/0.2854, allocations: 154.9 kB / 428.4 MB, free: 9.332 MB / 334.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 8.009e-05/0.2855, allocations: 162.6 kB / 428.6 MB, free: 9.172 MB / 334.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 8.96e-05/0.2856, allocations: 101 kB / 428.7 MB, free: 9.066 MB / 334.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 3.805e-05/0.2856, allocations: 75.28 kB / 428.7 MB, free: 8.992 MB / 334.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.802e-05/0.2857, allocations: 154.5 kB / 428.9 MB, free: 8.84 MB / 334.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.345e-05/0.2858, allocations: 150.6 kB / 429 MB, free: 8.691 MB / 334.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 8.92e-05/0.2859, allocations: 158.6 kB / 429.2 MB, free: 8.535 MB / 334.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004188/0.2863, allocations: 417 kB / 429.6 MB, free: 8.086 MB / 334.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0001064/0.2864, allocations: 169.1 kB / 429.8 MB, free: 7.91 MB / 334.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 9.582e-05/0.2865, allocations: 88.12 kB / 429.8 MB, free: 7.82 MB / 334.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 4.231e-05/0.2866, allocations: 79.22 kB / 429.9 MB, free: 7.742 MB / 334.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00018/0.2867, allocations: 51.41 kB / 430 MB, free: 7.68 MB / 334.1 MB
Notification: Performance of pre-optimization done (n=1): time 2.935e-06/0.2867, allocations: 0 / 430 MB, free: 7.68 MB / 334.1 MB
Notification: Performance of matching and sorting (n=1): time 0.000144/0.2869, allocations: 29.7 kB / 430 MB, free: 7.645 MB / 334.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 5.38e-05/0.2869, allocations: 51.41 kB / 430.1 MB, free: 7.582 MB / 334.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001028/0.287, allocations: 113.8 kB / 430.2 MB, free: 7.461 MB / 334.1 MB
Notification: Performance of collectPreVariables (initialization): time 1.554e-05/0.2871, allocations: 25.7 kB / 430.2 MB, free: 7.43 MB / 334.1 MB
Notification: Performance of collectInitialEqns (initialization): time 5.474e-05/0.2871, allocations: 84.27 kB / 430.3 MB, free: 7.344 MB / 334.1 MB
Notification: Performance of collectInitialBindings (initialization): time 1.374e-05/0.2871, allocations: 0 / 430.3 MB, free: 7.344 MB / 334.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 3.343e-05/0.2872, allocations: 17.72 kB / 430.3 MB, free: 7.32 MB / 334.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001505/0.2873, allocations: 314.8 kB / 430.6 MB, free: 7.004 MB / 334.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 9.187e-06/0.2873, allocations: 0 / 430.6 MB, free: 7.004 MB / 334.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 7.344e-06/0.2873, allocations: 4 kB / 430.6 MB, free: 7 MB / 334.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 2.023e-05/0.2873, allocations: 4.859 kB / 430.6 MB, free: 6.992 MB / 334.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.2873, allocations: 4.062 kB / 430.6 MB, free: 6.988 MB / 334.1 MB
Notification: Performance of matching and sorting (n=1) (initialization): time 6.422e-05/0.2874, allocations: 41.64 kB / 430.6 MB, free: 6.941 MB / 334.1 MB
Notification: Performance of prepare postOptimizeDAE: time 1.304e-05/0.2874, allocations: 4 kB / 430.7 MB, free: 6.938 MB / 334.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.202e-06/0.2874, allocations: 7.938 kB / 430.7 MB, free: 6.93 MB / 334.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 1.254e-05/0.2874, allocations: 0 / 430.7 MB, free: 6.93 MB / 334.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.365e-05/0.2875, allocations: 0 / 430.7 MB, free: 6.93 MB / 334.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.13e-06/0.2875, allocations: 0 / 430.7 MB, free: 6.93 MB / 334.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.592e-05/0.2875, allocations: 0 / 430.7 MB, free: 6.93 MB / 334.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.003e-06/0.2875, allocations: 7.984 kB / 430.7 MB, free: 6.922 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 9.162e-05/0.2876, allocations: 113.8 kB / 430.8 MB, free: 6.801 MB / 334.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 1.221e-05/0.2876, allocations: 3.953 kB / 430.8 MB, free: 6.797 MB / 334.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.564e-05/0.2876, allocations: 11.09 kB / 430.8 MB, free: 6.785 MB / 334.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.685e-06/0.2876, allocations: 0 / 430.8 MB, free: 6.785 MB / 334.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.2876, allocations: 0 / 430.8 MB, free: 6.785 MB / 334.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.064e-06/0.2876, allocations: 0 / 430.8 MB, free: 6.785 MB / 334.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001501/0.2878, allocations: 128.7 kB / 430.9 MB, free: 6.617 MB / 334.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.21e-07/0.2878, allocations: 0 / 430.9 MB, free: 6.617 MB / 334.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.557e-06/0.2878, allocations: 0 / 430.9 MB, free: 6.617 MB / 334.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 1.253e-06/0.2878, allocations: 0 / 430.9 MB, free: 6.617 MB / 334.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.971e-06/0.2878, allocations: 3.938 kB / 430.9 MB, free: 6.613 MB / 334.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.22e-07/0.2878, allocations: 4 kB / 430.9 MB, free: 6.609 MB / 334.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.2878, allocations: 0 / 430.9 MB, free: 6.609 MB / 334.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 8.717e-05/0.2879, allocations: 69 kB / 431 MB, free: 6.523 MB / 334.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 4.659e-06/0.2879, allocations: 0 / 431 MB, free: 6.523 MB / 334.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.449e-05/0.2879, allocations: 4 kB / 431 MB, free: 6.52 MB / 334.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.21e-05/0.2879, allocations: 0 / 431 MB, free: 6.52 MB / 334.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 9.428e-06/0.2879, allocations: 0 / 431 MB, free: 6.52 MB / 334.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.793e-06/0.2879, allocations: 4.031 kB / 431 MB, free: 6.516 MB / 334.1 MB
Notification: Performance of sorting global known variables: time 5.109e-05/0.288, allocations: 83.27 kB / 431.1 MB, free: 6.434 MB / 334.1 MB
Notification: Performance of sort global known variables: time 9e-08/0.288, allocations: 0 / 431.1 MB, free: 6.434 MB / 334.1 MB
Notification: Performance of remove unused functions: time 0.0004023/0.2884, allocations: 131.6 kB / 431.2 MB, free: 6.305 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.001139/0.2895, allocations: 489 kB / 431.7 MB, free: 5.895 MB / 334.1 MB
Notification: Performance of simCode: created initialization part: time 7.55e-05/0.2896, allocations: 4 kB / 431.7 MB, free: 5.891 MB / 334.1 MB
Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.2896, allocations: 0 / 431.7 MB, free: 5.891 MB / 334.1 MB
Notification: Performance of simCode: created simulation system equations: time 5.751e-06/0.2896, allocations: 0 / 431.7 MB, free: 5.891 MB / 334.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001506/0.2898, allocations: 19.81 kB / 431.7 MB, free: 5.871 MB / 334.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002739/0.29, allocations: 111 kB / 431.8 MB, free: 5.738 MB / 334.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003199/0.2903, allocations: 0.6766 MB / 432.5 MB, free: 5.035 MB / 334.1 MB
Notification: Performance of simCode: alias equations: time 3.066e-05/0.2904, allocations: 7.984 kB / 432.5 MB, free: 5.027 MB / 334.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 2.471e-05/0.2904, allocations: 15.42 kB / 432.5 MB, free: 5.012 MB / 334.1 MB
Notification: Performance of SimCode: time 2.91e-07/0.2904, allocations: 0 / 432.5 MB, free: 5.012 MB / 334.1 MB
Notification: Performance of Templates: time 0.006981/0.2974, allocations: 2.772 MB / 435.3 MB, free: 2.238 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.630035450682044]