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.0008763/0.0008763, allocations: 77.36 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001131/0.002007, allocations: 445.8 kB / 10.44 MB, free: 256 kB / 10.45 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.0006416/0.0006416, allocations: 148.9 kB / 11.34 MB, free: 2.836 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009471/0.001589, allocations: 475.6 kB / 11.8 MB, free: 2.367 MB / 13.93 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 0.8655/0.8655, allocations: 173.4 MB / 186 MB, free: 7.527 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1496/1.015, allocations: 52.48 MB / 238.5 MB, free: 7.641 MB / 234.7 MB " [Timeout remaining time 179] 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 1.192e-06/1.192e-06, allocations: 0 / 239.7 MB, free: 6.41 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 9.809e-06/1.1e-05, allocations: 2.312 kB / 239.7 MB, free: 6.406 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.001705/0.001716, allocations: 1.276 MB / 241 MB, free: 5.137 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.005202/0.006919, allocations: 2.105 MB / 243.1 MB, free: 3.027 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.835e-05/0.006937, allocations: 2.969 kB / 243.1 MB, free: 3.027 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 6.733e-06/0.006944, allocations: 0 / 243.1 MB, free: 3.027 MB / 234.7 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.0007677/0.007711, allocations: 398.2 kB / 243.5 MB, free: 2.637 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 1.8e-05/0.007729, allocations: 3.938 kB / 243.5 MB, free: 2.633 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 4.025e-05/0.00777, allocations: 7.938 kB / 243.5 MB, free: 2.625 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.429e-05/0.007804, allocations: 7.984 kB / 243.5 MB, free: 2.617 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.534e-05/0.007849, allocations: 4 kB / 243.5 MB, free: 2.613 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00354/0.01139, allocations: 7.938 kB / 243.5 MB, free: 2.605 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 8.907e-06/0.0114, allocations: 0.7812 kB / 243.5 MB, free: 2.605 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006287/0.01203, allocations: 0.4888 MB / 244 MB, free: 2.117 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 1.384e-05/0.01204, allocations: 4 kB / 244 MB, free: 2.113 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 1.324e-05/0.01205, allocations: 3.938 kB / 244 MB, free: 2.109 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004068/0.01246, allocations: 356.1 kB / 244.4 MB, free: 1.762 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.167e-06/0.01247, allocations: 4 kB / 244.4 MB, free: 1.758 MB / 234.7 MB Notification: Performance of FrontEnd: time 4.81e-07/0.01247, allocations: 0 / 244.4 MB, free: 1.758 MB / 234.7 MB Notification: Performance of Transformations before backend: time 6.963e-06/0.01248, allocations: 0.9062 kB / 244.4 MB, free: 1.758 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.0003438/0.01282, allocations: 347.8 kB / 244.7 MB, free: 1.395 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.816e-05/0.01285, allocations: 9.812 kB / 244.7 MB, free: 1.387 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.995e-05/0.01289, allocations: 76.22 kB / 244.8 MB, free: 1.312 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001007/0.01299, allocations: 193 kB / 245 MB, free: 1.098 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.928e-05/0.01303, allocations: 154.9 kB / 245.1 MB, free: 0.9453 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.692e-05/0.01307, allocations: 154.9 kB / 245.3 MB, free: 0.793 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 4.271e-05/0.01311, allocations: 102.2 kB / 245.4 MB, free: 0.6875 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.992e-05/0.01313, allocations: 79.22 kB / 245.5 MB, free: 0.6094 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.778e-05/0.01317, allocations: 151.2 kB / 245.6 MB, free: 472 kB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.558e-05/0.0132, allocations: 150.6 kB / 245.8 MB, free: 320 kB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.389e-05/0.01324, allocations: 156.5 kB / 245.9 MB, free: 164 kB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001745/0.01341, allocations: 353.2 kB / 246.2 MB, free: 15.8 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.34e-05/0.01347, allocations: 173.1 kB / 246.4 MB, free: 15.62 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.193e-05/0.0135, allocations: 80.14 kB / 246.5 MB, free: 15.54 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.812e-05/0.01351, allocations: 75.28 kB / 246.6 MB, free: 15.46 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.043e-05/0.01359, allocations: 52.83 kB / 246.6 MB, free: 15.4 MB / 250.7 MB Notification: Performance of pre-optimization done (n=1): time 1.623e-06/0.0136, allocations: 0 / 246.6 MB, free: 15.4 MB / 250.7 MB Notification: Performance of matching and sorting (n=1): time 8.217e-05/0.01368, allocations: 38.25 kB / 246.7 MB, free: 15.36 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.837e-05/0.01371, allocations: 55.34 kB / 246.7 MB, free: 15.29 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.595e-05/0.01376, allocations: 107.3 kB / 246.8 MB, free: 15.17 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 9.077e-06/0.01377, allocations: 26.2 kB / 246.8 MB, free: 15.14 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.141e-05/0.01379, allocations: 84.14 kB / 246.9 MB, free: 15.05 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.49e-05/0.01381, allocations: 1.719 kB / 246.9 MB, free: 15.05 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.535e-05/0.01383, allocations: 17.7 kB / 246.9 MB, free: 15.03 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 7.42e-05/0.01391, allocations: 322.8 kB / 247.3 MB, free: 14.71 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.346e-06/0.01391, allocations: 0 / 247.3 MB, free: 14.71 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.096e-06/0.01391, allocations: 1.125 kB / 247.3 MB, free: 14.71 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.116e-05/0.01393, allocations: 12.8 kB / 247.3 MB, free: 14.69 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.474e-06/0.01394, allocations: 5.031 kB / 247.3 MB, free: 14.69 MB / 250.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 3.353e-05/0.01397, allocations: 33.69 kB / 247.3 MB, free: 14.65 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.158e-05/0.01398, allocations: 9 kB / 247.3 MB, free: 14.64 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.908e-06/0.01399, allocations: 0 / 247.3 MB, free: 14.64 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.337e-06/0.014, allocations: 0 / 247.3 MB, free: 14.64 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.515e-05/0.01401, allocations: 4.688 kB / 247.3 MB, free: 14.64 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.394e-06/0.01401, allocations: 0 / 247.3 MB, free: 14.64 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.513e-05/0.01403, allocations: 0.6875 kB / 247.3 MB, free: 14.64 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.839e-06/0.01403, allocations: 0 / 247.3 MB, free: 14.64 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.59e-05/0.01409, allocations: 110.6 kB / 247.4 MB, free: 14.52 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.728e-06/0.01409, allocations: 0.625 kB / 247.4 MB, free: 14.52 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.935e-05/0.01411, allocations: 7.141 kB / 247.4 MB, free: 14.51 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.264e-06/0.01412, allocations: 6.562 kB / 247.4 MB, free: 14.5 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.265e-06/0.01412, allocations: 3.938 kB / 247.5 MB, free: 14.5 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.204e-06/0.01412, allocations: 3.938 kB / 247.5 MB, free: 14.5 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003065/0.01718, allocations: 57.91 kB / 247.5 MB, free: 14.42 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.02e-07/0.01719, allocations: 4 kB / 247.5 MB, free: 14.42 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.495e-06/0.01719, allocations: 0 / 247.5 MB, free: 14.42 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.468e-06/0.01719, allocations: 0 / 247.5 MB, free: 14.42 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.424e-06/0.0172, allocations: 4.953 kB / 247.5 MB, free: 14.41 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.216e-06/0.0172, allocations: 0 / 247.5 MB, free: 14.41 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.01e-07/0.0172, allocations: 0 / 247.5 MB, free: 14.41 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/0.0172, allocations: 4.438 kB / 247.5 MB, free: 14.41 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.18e-05/0.01724, allocations: 57.92 kB / 247.6 MB, free: 14.34 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.013e-06/0.01725, allocations: 1.688 kB / 247.6 MB, free: 14.34 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.033e-05/0.01726, allocations: 7.984 kB / 247.6 MB, free: 14.33 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.732e-06/0.01727, allocations: 0 / 247.6 MB, free: 14.33 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.223e-06/0.01727, allocations: 0 / 247.6 MB, free: 14.33 MB / 250.7 MB Notification: Performance of sorting global known variables: time 1.362e-05/0.01728, allocations: 16.78 kB / 247.6 MB, free: 14.31 MB / 250.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01728, allocations: 256 / 247.6 MB, free: 14.31 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002997/0.01758, allocations: 139.5 kB / 247.7 MB, free: 14.17 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.001017/0.0186, allocations: 0.6207 MB / 248.4 MB, free: 13.69 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 4.104e-05/0.01864, allocations: 8.859 kB / 248.4 MB, free: 13.68 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 4.308e-06/0.01864, allocations: 4 kB / 248.4 MB, free: 13.68 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 7.995e-06/0.01865, allocations: 8.844 kB / 248.4 MB, free: 13.66 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 6.012e-05/0.01871, allocations: 7.984 kB / 248.4 MB, free: 13.66 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006478/0.01936, allocations: 121 kB / 248.5 MB, free: 13.51 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.93e-05/0.01939, allocations: 51.36 kB / 248.6 MB, free: 13.44 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 2.444e-05/0.01941, allocations: 15.92 kB / 248.6 MB, free: 13.43 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.789e-05/0.01944, allocations: 51.38 kB / 248.6 MB, free: 13.38 MB / 250.7 MB Notification: Performance of SimCode: time 5.01e-07/0.01944, allocations: 0 / 248.6 MB, free: 13.38 MB / 250.7 MB Notification: Performance of Templates: time 0.01122/0.03066, allocations: 3.43 MB / 252.1 MB, free: 9.945 MB / 250.7 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=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.5932581685483456]