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.001641/0.001641, allocations: 78.64 kB / 20.68 MB, free: 1.039 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.001451/0.001451, allocations: 153.8 kB / 23.94 MB, free: 4.176 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.437/1.437, allocations: 173.3 MB / 200.4 MB, free: 12.86 MB / 190.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 1.883e-06/1.883e-06, allocations: 0 / 318.9 MB, free: 3.578 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.676e-05/2.864e-05, allocations: 2.281 kB / 318.9 MB, free: 3.574 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.002048/0.002077, allocations: 1.179 MB / 320.1 MB, free: 2.75 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002818/0.004895, allocations: 1.992 MB / 322.1 MB, free: 1.438 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.226e-05/0.004917, allocations: 1.219 kB / 322.1 MB, free: 1.438 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 1.585e-05/0.004933, allocations: 4 kB / 322.1 MB, free: 1.434 MB / 286.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.001289/0.006222, allocations: 440.8 kB / 322.5 MB, free: 1.246 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 2.758e-05/0.006249, allocations: 9.969 kB / 322.5 MB, free: 1.238 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 4.769e-05/0.006297, allocations: 8.938 kB / 322.5 MB, free: 1.234 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.01e-05/0.006337, allocations: 2.391 kB / 322.5 MB, free: 1.234 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.365e-05/0.006371, allocations: 4.344 kB / 322.5 MB, free: 1.234 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002086/0.00658, allocations: 5.016 kB / 322.5 MB, free: 1.234 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.376e-05/0.006593, allocations: 0 / 322.5 MB, free: 1.234 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006699/0.007263, allocations: 451.5 kB / 323 MB, free: 1.102 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 1.321e-05/0.007276, allocations: 2.156 kB / 323 MB, free: 1.102 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 2.026e-05/0.007297, allocations: 6.094 kB / 323 MB, free: 1.098 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000556/0.007853, allocations: 422.6 kB / 323.4 MB, free: 0.9453 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.855e-06/0.007856, allocations: 0 / 323.4 MB, free: 0.9453 MB / 286.1 MB Notification: Performance of FrontEnd: time 8.61e-07/0.007856, allocations: 3.938 kB / 323.4 MB, free: 0.9414 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.348e-06/0.007861, allocations: 0 / 323.4 MB, free: 0.9414 MB / 286.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.0003708/0.008232, allocations: 334.3 kB / 323.7 MB, free: 0.6289 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.369e-05/0.008265, allocations: 13.89 kB / 323.7 MB, free: 0.625 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.957e-05/0.008315, allocations: 78.34 kB / 323.8 MB, free: 0.5508 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.992e-05/0.008415, allocations: 191.3 kB / 324 MB, free: 352 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.227e-05/0.008437, allocations: 150.9 kB / 324.1 MB, free: 200 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.772e-05/0.008455, allocations: 153 kB / 324.3 MB, free: 48 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.739e-05/0.008542, allocations: 106.9 kB / 324.4 MB, free: 15.94 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.877e-05/0.008581, allocations: 79.22 kB / 324.5 MB, free: 15.86 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.811e-05/0.008659, allocations: 152.7 kB / 324.6 MB, free: 15.71 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.461e-05/0.008724, allocations: 150.6 kB / 324.8 MB, free: 15.56 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.504e-05/0.008799, allocations: 159.9 kB / 324.9 MB, free: 15.41 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003049/0.009104, allocations: 395.8 kB / 325.3 MB, free: 15 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001074/0.009211, allocations: 175 kB / 325.5 MB, free: 14.82 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.11e-05/0.009262, allocations: 84.14 kB / 325.6 MB, free: 14.73 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.882e-05/0.009301, allocations: 76.66 kB / 325.6 MB, free: 14.66 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000154/0.009455, allocations: 55.7 kB / 325.7 MB, free: 14.6 MB / 302.1 MB Notification: Performance of pre-optimization done (n=1): time 1.843e-06/0.009457, allocations: 0 / 325.7 MB, free: 14.6 MB / 302.1 MB Notification: Performance of matching and sorting (n=1): time 0.000128/0.009585, allocations: 36.88 kB / 325.7 MB, free: 14.56 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.326e-05/0.009638, allocations: 51.41 kB / 325.8 MB, free: 14.5 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00011/0.009748, allocations: 103.6 kB / 325.9 MB, free: 14.4 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.856e-05/0.009767, allocations: 25.7 kB / 325.9 MB, free: 14.37 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.232e-05/0.009819, allocations: 86.03 kB / 326 MB, free: 14.28 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.32e-05/0.009832, allocations: 0 / 326 MB, free: 14.28 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.983e-05/0.009862, allocations: 13.03 kB / 326 MB, free: 14.27 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001611/0.01002, allocations: 313.5 kB / 326.3 MB, free: 13.95 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.396e-06/0.01003, allocations: 4.125 kB / 326.3 MB, free: 13.95 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.062e-06/0.01004, allocations: 6.156 kB / 326.3 MB, free: 13.95 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.498e-05/0.01006, allocations: 11.61 kB / 326.3 MB, free: 13.93 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.562e-06/0.01006, allocations: 0 / 326.3 MB, free: 13.93 MB / 302.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.821e-05/0.01012, allocations: 32.56 kB / 326.4 MB, free: 13.9 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.436e-05/0.01014, allocations: 6.062 kB / 326.4 MB, free: 13.9 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.231e-06/0.01014, allocations: 7.875 kB / 326.4 MB, free: 13.89 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.722e-05/0.01016, allocations: 5.875 kB / 326.4 MB, free: 13.89 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.03e-05/0.01018, allocations: 0 / 326.4 MB, free: 13.89 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.843e-06/0.01019, allocations: 4.594 kB / 326.4 MB, free: 13.89 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.586e-05/0.0102, allocations: 5.375 kB / 326.4 MB, free: 13.88 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.799e-06/0.01021, allocations: 0 / 326.4 MB, free: 13.88 MB / 302.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.467e-05/0.0103, allocations: 113.6 kB / 326.5 MB, free: 13.77 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.325e-05/0.01032, allocations: 6.078 kB / 326.5 MB, free: 13.76 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.948e-05/0.01035, allocations: 9.078 kB / 326.5 MB, free: 13.75 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.023e-06/0.01035, allocations: 3.938 kB / 326.5 MB, free: 13.75 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.01035, allocations: 0.75 kB / 326.5 MB, free: 13.75 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.855e-06/0.01035, allocations: 1.375 kB / 326.5 MB, free: 13.75 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001041/0.01046, allocations: 101.9 kB / 326.6 MB, free: 13.62 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.01046, allocations: 0.5625 kB / 326.6 MB, free: 13.62 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.337e-06/0.01046, allocations: 4 kB / 326.6 MB, free: 13.62 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.364e-06/0.01047, allocations: 1.891 kB / 326.6 MB, free: 13.62 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.701e-06/0.01047, allocations: 0 / 326.6 MB, free: 13.62 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.767e-06/0.01048, allocations: 3.938 kB / 326.6 MB, free: 13.61 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.334e-06/0.01048, allocations: 2.031 kB / 326.6 MB, free: 13.61 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.511e-05/0.01056, allocations: 58.17 kB / 326.7 MB, free: 13.55 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.43e-06/0.01057, allocations: 2.078 kB / 326.7 MB, free: 13.55 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.236e-05/0.01058, allocations: 0 / 326.7 MB, free: 13.55 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.64e-05/0.0106, allocations: 5.875 kB / 326.7 MB, free: 13.54 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.149e-05/0.01061, allocations: 0.6562 kB / 326.7 MB, free: 13.54 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.635e-06/0.01061, allocations: 9.344 kB / 326.7 MB, free: 13.54 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.294e-05/0.01067, allocations: 80.81 kB / 326.8 MB, free: 13.46 MB / 302.1 MB Notification: Performance of sort global known variables: time 7e-08/0.01067, allocations: 0 / 326.8 MB, free: 13.46 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004561/0.01113, allocations: 134 kB / 326.9 MB, free: 13.42 MB / 302.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.001283/0.01241, allocations: 0.5105 MB / 327.4 MB, free: 13.22 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 6.362e-05/0.01248, allocations: 4.078 kB / 327.4 MB, free: 13.22 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.01248, allocations: 1.062 kB / 327.4 MB, free: 13.22 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 6.352e-06/0.01248, allocations: 1.797 kB / 327.4 MB, free: 13.22 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001344/0.01262, allocations: 6.938 kB / 327.4 MB, free: 13.21 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002468/0.01287, allocations: 109 kB / 327.5 MB, free: 13.1 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.921e-05/0.01293, allocations: 62.48 kB / 327.6 MB, free: 13.02 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 2.624e-05/0.01295, allocations: 9.141 kB / 327.6 MB, free: 13.02 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.515e-05/0.01298, allocations: 13.92 kB / 327.6 MB, free: 13.02 MB / 302.1 MB Notification: Performance of SimCode: time 3.21e-07/0.01298, allocations: 0 / 327.6 MB, free: 13.02 MB / 302.1 MB Notification: Performance of Templates: time 0.006985/0.01996, allocations: 2.82 MB / 330.5 MB, free: 12.49 MB / 302.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.435741122812033]