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.0008087/0.0008087, allocations: 84 kB / 21.43 MB, free: 3.137 MB / 18.57 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.003236/0.003236, allocations: 141.6 kB / 24.68 MB, free: 8.891 MB / 18.57 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.8561/0.8561, allocations: 173.4 MB / 201.2 MB, free: 9.465 MB / 186.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 3.677e-06/3.677e-06, allocations: 7.938 kB / 319.6 MB, free: 5.934 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.923e-05/3.291e-05, allocations: 2.281 kB / 319.6 MB, free: 5.93 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.001871/0.001904, allocations: 1.176 MB / 320.8 MB, free: 4.738 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002026/0.00393, allocations: 1.993 MB / 322.8 MB, free: 2.738 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.149e-05/0.003952, allocations: 0 / 322.8 MB, free: 2.738 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 1.666e-05/0.003969, allocations: 0 / 322.8 MB, free: 2.738 MB / 282.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.0008184/0.004787, allocations: 450.3 kB / 323.3 MB, free: 2.297 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 1.991e-05/0.004807, allocations: 7.922 kB / 323.3 MB, free: 2.289 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 4.532e-05/0.004852, allocations: 7.938 kB / 323.3 MB, free: 2.281 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.452e-05/0.004887, allocations: 4 kB / 323.3 MB, free: 2.277 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.963e-05/0.004916, allocations: 3.984 kB / 323.3 MB, free: 2.273 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003652/0.008568, allocations: 7.938 kB / 323.3 MB, free: 2.266 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 1.295e-05/0.008581, allocations: 0 / 323.3 MB, free: 2.266 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005125/0.009094, allocations: 451.3 kB / 323.7 MB, free: 1.824 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 1.242e-05/0.009106, allocations: 0 / 323.7 MB, free: 1.824 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 1.827e-05/0.009124, allocations: 7.938 kB / 323.7 MB, free: 1.816 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004038/0.009528, allocations: 423.1 kB / 324.2 MB, free: 1.402 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.207e-06/0.009532, allocations: 0 / 324.2 MB, free: 1.402 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.433e-06/0.009534, allocations: 0 / 324.2 MB, free: 1.402 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.248e-06/0.009538, allocations: 0 / 324.2 MB, free: 1.402 MB / 282.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.0003305/0.009869, allocations: 340.8 kB / 324.5 MB, free: 1.043 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.481e-05/0.009903, allocations: 8.922 kB / 324.5 MB, free: 1.035 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.632e-05/0.00996, allocations: 80.22 kB / 324.6 MB, free: 0.957 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001056/0.01007, allocations: 185 kB / 324.8 MB, free: 0.75 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.642e-05/0.0101, allocations: 154.9 kB / 324.9 MB, free: 0.5977 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.149e-05/0.01013, allocations: 150.9 kB / 325 MB, free: 460 kB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.078e-05/0.01018, allocations: 113.5 kB / 325.2 MB, free: 340 kB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.027e-05/0.0102, allocations: 83.22 kB / 325.2 MB, free: 256 kB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.042e-05/0.01024, allocations: 154.6 kB / 325.4 MB, free: 100 kB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.289e-05/0.01029, allocations: 150.6 kB / 325.5 MB, free: 15.95 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.669e-05/0.01032, allocations: 150.6 kB / 325.7 MB, free: 15.8 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001745/0.0105, allocations: 397.6 kB / 326.1 MB, free: 15.38 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.27e-05/0.01056, allocations: 177.1 kB / 326.2 MB, free: 15.2 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.437e-05/0.01059, allocations: 84.14 kB / 326.3 MB, free: 15.11 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.976e-05/0.01061, allocations: 75.28 kB / 326.4 MB, free: 15.04 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001352/0.01074, allocations: 39.42 kB / 326.4 MB, free: 14.99 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 1.873e-06/0.01074, allocations: 4 kB / 326.4 MB, free: 14.98 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001116/0.01085, allocations: 45.56 kB / 326.5 MB, free: 14.93 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.948e-05/0.01088, allocations: 55.41 kB / 326.5 MB, free: 14.87 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.609e-05/0.01095, allocations: 97.84 kB / 326.6 MB, free: 14.76 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.126e-05/0.01096, allocations: 29.7 kB / 326.7 MB, free: 14.73 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.543e-05/0.01099, allocations: 80.14 kB / 326.7 MB, free: 14.64 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.156e-05/0.011, allocations: 7.938 kB / 326.8 MB, free: 14.64 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.998e-05/0.01102, allocations: 9.719 kB / 326.8 MB, free: 14.62 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.182e-05/0.01109, allocations: 310.8 kB / 327.1 MB, free: 14.31 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.528e-06/0.0111, allocations: 8 kB / 327.1 MB, free: 14.3 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.038e-06/0.0111, allocations: 4.125 kB / 327.1 MB, free: 14.3 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.796e-05/0.01112, allocations: 8.859 kB / 327.1 MB, free: 14.29 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.01112, allocations: 0 / 327.1 MB, free: 14.29 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 3.32e-05/0.01116, allocations: 41.56 kB / 327.1 MB, free: 14.24 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.085e-05/0.01117, allocations: 4 kB / 327.1 MB, free: 14.23 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.3e-06/0.01117, allocations: 3.938 kB / 327.1 MB, free: 14.23 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.327e-06/0.01118, allocations: 4 kB / 327.1 MB, free: 14.23 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.849e-05/0.0112, allocations: 0 / 327.1 MB, free: 14.23 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.699e-06/0.01121, allocations: 3.984 kB / 327.1 MB, free: 14.22 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.47e-05/0.01122, allocations: 4.094 kB / 327.1 MB, free: 14.22 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.709e-06/0.01122, allocations: 0 / 327.1 MB, free: 14.22 MB / 298.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 5e-05/0.01127, allocations: 109.8 kB / 327.3 MB, free: 14.1 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.791e-06/0.01128, allocations: 7.953 kB / 327.3 MB, free: 14.09 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.558e-05/0.01131, allocations: 11.08 kB / 327.3 MB, free: 14.08 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-06/0.01131, allocations: 0 / 327.3 MB, free: 14.08 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.426e-06/0.01131, allocations: 0 / 327.3 MB, free: 14.08 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.264e-06/0.01131, allocations: 4 kB / 327.3 MB, free: 14.07 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.459e-05/0.01138, allocations: 93.33 kB / 327.4 MB, free: 13.95 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.01138, allocations: 0 / 327.4 MB, free: 13.95 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.683e-06/0.01138, allocations: 4 kB / 327.4 MB, free: 13.95 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.743e-06/0.01138, allocations: 7.984 kB / 327.4 MB, free: 13.94 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.761e-06/0.01139, allocations: 0 / 327.4 MB, free: 13.94 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.214e-06/0.01139, allocations: 7.938 kB / 327.4 MB, free: 13.93 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.31e-07/0.01139, allocations: 0 / 327.4 MB, free: 13.93 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.273e-05/0.01143, allocations: 61.08 kB / 327.4 MB, free: 13.86 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.278e-06/0.01144, allocations: 0 / 327.4 MB, free: 13.86 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.917e-06/0.01145, allocations: 3.984 kB / 327.5 MB, free: 13.85 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.031e-06/0.01145, allocations: 3.938 kB / 327.5 MB, free: 13.85 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.081e-05/0.01146, allocations: 4 kB / 327.5 MB, free: 13.84 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.593e-06/0.01147, allocations: 0 / 327.5 MB, free: 13.84 MB / 298.7 MB Notification: Performance of sorting global known variables: time 2.756e-05/0.01149, allocations: 91.48 kB / 327.5 MB, free: 13.75 MB / 298.7 MB Notification: Performance of sort global known variables: time 4e-08/0.01149, allocations: 0 / 327.5 MB, free: 13.75 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002374/0.01173, allocations: 131.5 kB / 327.7 MB, free: 13.62 MB / 298.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.0006691/0.0124, allocations: 0.5175 MB / 328.2 MB, free: 13.19 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 5.741e-05/0.01246, allocations: 8 kB / 328.2 MB, free: 13.18 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.422e-06/0.01246, allocations: 0 / 328.2 MB, free: 13.18 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.638e-06/0.01246, allocations: 3.938 kB / 328.2 MB, free: 13.18 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001021/0.01256, allocations: 6.812 kB / 328.2 MB, free: 13.17 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002102/0.01278, allocations: 130.6 kB / 328.3 MB, free: 13.01 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.421e-05/0.01281, allocations: 59.48 kB / 328.4 MB, free: 12.93 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.555e-05/0.01282, allocations: 16.48 kB / 328.4 MB, free: 12.92 MB / 298.7 MB Notification: Performance of SimCode: time 3.41e-07/0.01283, allocations: 0 / 328.4 MB, free: 12.92 MB / 298.7 MB Notification: Performance of Templates: time 0.003218/0.01604, allocations: 3.139 MB / 331.6 MB, free: 9.777 MB / 298.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=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.621391506865621]