Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Utilities.Examples.readRealParameterModel.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.001071/0.001071, allocations: 85.95 kB / 23 MB, free: 1.504 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.0009865/0.0009865, allocations: 171.6 kB / 26.39 MB, free: 7.988 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.03/1.03, allocations: 158.6 MB / 188.3 MB, free: 2.82 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.Utilities.Examples.readRealParameterModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|J|phi_rel0|w_rel0",fileNamePrefix="Modelica_3.2.3_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_3.2.3_Modelica.Utilities.Examples.readRealParameterModel") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.773e-06/1.773e-06, allocations: 3.938 kB / 252.2 MB, free: 7.297 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.819e-05/2.997e-05, allocations: 6.25 kB / 252.2 MB, free: 7.289 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.002552/0.002582, allocations: 1.21 MB / 253.4 MB, free: 6.066 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.002997/0.005579, allocations: 2.094 MB / 255.5 MB, free: 3.961 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.223e-05/0.005611, allocations: 4 kB / 255.5 MB, free: 3.957 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 2.33e-05/0.005634, allocations: 0 / 255.5 MB, free: 3.957 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001494/0.007129, allocations: 446.4 kB / 256 MB, free: 3.52 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 2.309e-05/0.007152, allocations: 0 / 256 MB, free: 3.52 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 4.273e-05/0.007194, allocations: 11.92 kB / 256 MB, free: 3.508 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.771e-05/0.007232, allocations: 0 / 256 MB, free: 3.508 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.937e-05/0.007261, allocations: 4 kB / 256 MB, free: 3.504 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.805e-05/0.00731, allocations: 11.92 kB / 256 MB, free: 3.492 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 1.079e-05/0.00732, allocations: 0 / 256 MB, free: 3.492 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000577/0.007897, allocations: 447.3 kB / 256.4 MB, free: 3.051 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 1.435e-05/0.007912, allocations: 7.984 kB / 256.4 MB, free: 3.043 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 2.187e-05/0.007934, allocations: 7.922 kB / 256.4 MB, free: 3.035 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004801/0.008414, allocations: 419 kB / 256.9 MB, free: 2.625 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.471e-06/0.008419, allocations: 0 / 256.9 MB, free: 2.625 MB / 234.7 MB Notification: Performance of FrontEnd: time 2.164e-06/0.008421, allocations: 0 / 256.9 MB, free: 2.625 MB / 234.7 MB Notification: Performance of Transformations before backend: time 6.953e-06/0.008428, allocations: 0 / 256.9 MB, free: 2.625 MB / 234.7 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.0004878/0.008916, allocations: 435.8 kB / 257.3 MB, free: 2.164 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.389e-05/0.00895, allocations: 11.98 kB / 257.3 MB, free: 2.152 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.263e-05/0.009003, allocations: 132.1 kB / 257.4 MB, free: 2.023 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001037/0.009106, allocations: 231.8 kB / 257.6 MB, free: 1.77 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.984e-05/0.009156, allocations: 242.8 kB / 257.9 MB, free: 1.531 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.827e-05/0.009204, allocations: 242.7 kB / 258.1 MB, free: 1.293 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.527e-05/0.00926, allocations: 149.5 kB / 258.3 MB, free: 1.141 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.811e-05/0.009288, allocations: 123.1 kB / 258.4 MB, free: 1.02 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.045e-05/0.009348, allocations: 242.4 kB / 258.6 MB, free: 0.7812 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.555e-05/0.009394, allocations: 238.4 kB / 258.9 MB, free: 0.5469 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001826/0.009576, allocations: 238.4 kB / 259.1 MB, free: 320 kB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002256/0.009802, allocations: 0.553 MB / 259.6 MB, free: 15.73 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.822e-05/0.00988, allocations: 265.4 kB / 259.9 MB, free: 15.46 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.302e-05/0.009913, allocations: 134.9 kB / 260 MB, free: 15.32 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.595e-05/0.009949, allocations: 119.2 kB / 260.2 MB, free: 15.21 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.167e-05/0.01004, allocations: 61.05 kB / 260.2 MB, free: 15.13 MB / 250.7 MB Notification: Performance of pre-optimization done (n=1): time 1.754e-06/0.01004, allocations: 0 / 260.2 MB, free: 15.13 MB / 250.7 MB Notification: Performance of matching and sorting (n=1): time 9.751e-05/0.01014, allocations: 37.58 kB / 260.2 MB, free: 15.09 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.621e-05/0.01017, allocations: 51.41 kB / 260.3 MB, free: 15.03 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.458e-05/0.01023, allocations: 165.9 kB / 260.5 MB, free: 14.85 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 7.123e-06/0.01024, allocations: 25.7 kB / 260.5 MB, free: 14.82 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.913e-05/0.01027, allocations: 126.9 kB / 260.6 MB, free: 14.69 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.399e-05/0.01028, allocations: 7.891 kB / 260.6 MB, free: 14.68 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.236e-05/0.0103, allocations: 23.36 kB / 260.6 MB, free: 14.65 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 9.794e-05/0.0104, allocations: 496.2 kB / 261.1 MB, free: 14.15 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.459e-06/0.01041, allocations: 0 / 261.1 MB, free: 14.15 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.24e-06/0.01041, allocations: 8 kB / 261.1 MB, free: 14.14 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.832e-05/0.01043, allocations: 11.62 kB / 261.1 MB, free: 14.13 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.432e-06/0.01043, allocations: 0 / 261.1 MB, free: 14.13 MB / 250.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 3.494e-05/0.01047, allocations: 37.69 kB / 261.2 MB, free: 14.09 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.079e-05/0.01048, allocations: 4 kB / 261.2 MB, free: 14.08 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.328e-06/0.01048, allocations: 0 / 261.2 MB, free: 14.08 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.636e-06/0.01049, allocations: 3.938 kB / 261.2 MB, free: 14.08 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.616e-05/0.01051, allocations: 96 / 261.2 MB, free: 14.08 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.923e-06/0.01051, allocations: 4 kB / 261.2 MB, free: 14.07 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.331e-05/0.01052, allocations: 4 kB / 261.2 MB, free: 14.07 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.118e-06/0.01053, allocations: 0 / 261.2 MB, free: 14.07 MB / 250.7 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 5.849e-05/0.01058, allocations: 152.6 kB / 261.3 MB, free: 13.91 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.749e-06/0.01059, allocations: 0 / 261.3 MB, free: 13.91 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.752e-05/0.01062, allocations: 11.14 kB / 261.4 MB, free: 13.9 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.315e-06/0.01062, allocations: 3.938 kB / 261.4 MB, free: 13.89 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.373e-06/0.01062, allocations: 0 / 261.4 MB, free: 13.89 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.424e-06/0.01062, allocations: 0 / 261.4 MB, free: 13.89 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.285e-05/0.01069, allocations: 97.27 kB / 261.5 MB, free: 13.77 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.01e-07/0.0107, allocations: 4 kB / 261.5 MB, free: 13.77 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.235e-06/0.0107, allocations: 3.938 kB / 261.5 MB, free: 13.77 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.42e-07/0.0107, allocations: 0 / 261.5 MB, free: 13.77 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.467e-06/0.0107, allocations: 0 / 261.5 MB, free: 13.77 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.61e-07/0.0107, allocations: 0 / 261.5 MB, free: 13.77 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-06/0.0107, allocations: 7.984 kB / 261.5 MB, free: 13.76 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.527e-05/0.01075, allocations: 68.39 kB / 261.5 MB, free: 13.67 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.629e-06/0.01075, allocations: 4 kB / 261.5 MB, free: 13.66 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.592e-06/0.01076, allocations: 0 / 261.5 MB, free: 13.66 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.391e-06/0.01077, allocations: 0 / 261.5 MB, free: 13.66 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.556e-06/0.01078, allocations: 8.016 kB / 261.5 MB, free: 13.66 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.677e-06/0.01078, allocations: 3.938 kB / 261.6 MB, free: 13.65 MB / 250.7 MB Notification: Performance of sorting global known variables: time 3.243e-05/0.01081, allocations: 127.2 kB / 261.7 MB, free: 13.53 MB / 250.7 MB Notification: Performance of sort global known variables: time 9e-08/0.01081, allocations: 0 / 261.7 MB, free: 13.53 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002874/0.0111, allocations: 135.5 kB / 261.8 MB, free: 13.39 MB / 250.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: 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.0007343/0.01183, allocations: 0.5126 MB / 262.3 MB, free: 12.92 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 5.899e-05/0.01189, allocations: 19.61 kB / 262.3 MB, free: 12.9 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.01189, allocations: 4.062 kB / 262.3 MB, free: 12.89 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 7.615e-06/0.0119, allocations: 11.69 kB / 262.4 MB, free: 12.88 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001004/0.012, allocations: 11.89 kB / 262.4 MB, free: 12.87 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000301/0.0123, allocations: 113.5 kB / 262.5 MB, free: 12.73 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.627e-05/0.01233, allocations: 63.28 kB / 262.5 MB, free: 12.65 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 1.96e-05/0.01235, allocations: 7.984 kB / 262.5 MB, free: 12.64 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000304/0.01265, allocations: 74.27 kB / 262.6 MB, free: 12.57 MB / 250.7 MB Notification: Performance of SimCode: time 4.31e-07/0.01265, allocations: 0 / 262.6 MB, free: 12.57 MB / 250.7 MB Notification: Performance of Templates: time 0.004539/0.01719, allocations: 3.447 MB / 266.1 MB, free: 9.117 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Utilities.Examples.readRealParameterModel.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Utilities.Examples.readRealParameterModel.pipe ; mkfifo Modelica_3.2.3_Modelica.Utilities.Examples.readRealParameterModel.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Utilities.Examples.readRealParameterModel.pipe >> ../files/Modelica_3.2.3_Modelica.Utilities.Examples.readRealParameterModel.sim & ./Modelica_3.2.3_Modelica.Utilities.Examples.readRealParameterModel -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Utilities.Examples.readRealParameterModel.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Utilities.Examples.readRealParameterModel_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Utilities/Examples/readRealParameterModel/readRealParameterModel.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.981445239856839]