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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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=5000,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=5000,variableFilter="time|J|phi_rel0|w_rel0",fileNamePrefix="Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001109/0.001109, allocations: 109 kB / 17.06 MB, free: 6.02 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001136/0.001136, allocations: 191 kB / 18 MB, free: 5.102 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.378/1.378, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009949/0.0009949, allocations: 43.94 kB / 351.3 MB, free: 3.277 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2411/0.2421, allocations: 49.44 MB / 400.7 MB, free: 8.723 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.001953/0.2441, allocations: 1.192 MB / 401.9 MB, free: 7.656 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002741/0.2468, allocations: 1.96 MB / 403.8 MB, free: 5.688 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.105e-05/0.2469, allocations: 0 / 403.8 MB, free: 5.688 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 1.473e-05/0.2469, allocations: 0 / 403.8 MB, free: 5.688 MB / 318.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.001106/0.248, allocations: 438.6 kB / 404.3 MB, free: 5.258 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 1.976e-05/0.248, allocations: 0 / 404.3 MB, free: 5.258 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 4.172e-05/0.2481, allocations: 11.94 kB / 404.3 MB, free: 5.246 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.352e-05/0.2481, allocations: 0 / 404.3 MB, free: 5.246 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.992e-05/0.2482, allocations: 11.92 kB / 404.3 MB, free: 5.234 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008014/0.2562, allocations: 11.92 kB / 404.3 MB, free: 5.223 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.21e-05/0.2562, allocations: 0 / 404.3 MB, free: 5.223 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009549/0.2572, allocations: 471.5 kB / 404.8 MB, free: 4.762 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 1.376e-05/0.2572, allocations: 7.969 kB / 404.8 MB, free: 4.754 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 2.674e-05/0.2572, allocations: 11.94 kB / 404.8 MB, free: 4.742 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005109/0.2577, allocations: 334.6 kB / 405.1 MB, free: 4.422 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.2578, allocations: 0 / 405.1 MB, free: 4.422 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.2578, allocations: 0 / 405.1 MB, free: 4.422 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.458e-06/0.2578, allocations: 4 kB / 405.1 MB, free: 4.418 MB / 318.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.0004179/0.2582, allocations: 414.6 kB / 405.5 MB, free: 3.965 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.422e-05/0.2582, allocations: 8.031 kB / 405.5 MB, free: 3.957 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.43e-05/0.2583, allocations: 80.22 kB / 405.6 MB, free: 3.879 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001526/0.2585, allocations: 251.6 kB / 405.9 MB, free: 3.594 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.081e-05/0.2585, allocations: 150.9 kB / 406 MB, free: 3.445 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.357e-05/0.2586, allocations: 158.7 kB / 406.2 MB, free: 3.289 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.14e-05/0.2587, allocations: 108.9 kB / 406.3 MB, free: 3.176 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.331e-05/0.2587, allocations: 75.28 kB / 406.3 MB, free: 3.102 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.34e-05/0.2587, allocations: 154.5 kB / 406.5 MB, free: 2.949 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.174e-05/0.2588, allocations: 150.6 kB / 406.6 MB, free: 2.801 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.262e-05/0.2588, allocations: 158.5 kB / 406.8 MB, free: 2.645 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002575/0.2591, allocations: 449.9 kB / 407.2 MB, free: 2.156 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.678e-05/0.2592, allocations: 169.1 kB / 407.4 MB, free: 1.98 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.947e-05/0.2592, allocations: 84.08 kB / 407.5 MB, free: 1.895 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.265e-05/0.2593, allocations: 75.28 kB / 407.6 MB, free: 1.82 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001436/0.2594, allocations: 51.34 kB / 407.6 MB, free: 1.758 MB / 318.1 MB Notification: Performance of pre-optimization done (n=1): time 2.665e-06/0.2594, allocations: 0 / 407.6 MB, free: 1.758 MB / 318.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001328/0.2596, allocations: 37.7 kB / 407.6 MB, free: 1.715 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.797e-05/0.2596, allocations: 51.41 kB / 407.7 MB, free: 1.652 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.951e-05/0.2597, allocations: 101.8 kB / 407.8 MB, free: 1.543 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.915e-05/0.2597, allocations: 25.7 kB / 407.8 MB, free: 1.512 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.349e-05/0.2598, allocations: 88.27 kB / 407.9 MB, free: 1.422 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.175e-05/0.2598, allocations: 4 kB / 407.9 MB, free: 1.418 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.665e-05/0.2598, allocations: 9.719 kB / 407.9 MB, free: 1.402 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.713e-05/0.2599, allocations: 310.8 kB / 408.2 MB, free: 1.09 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.225e-05/0.2599, allocations: 11.92 kB / 408.2 MB, free: 1.078 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.869e-06/0.2599, allocations: 0 / 408.2 MB, free: 1.078 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.017e-05/0.26, allocations: 8.859 kB / 408.2 MB, free: 1.066 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.342e-06/0.26, allocations: 4 kB / 408.2 MB, free: 1.062 MB / 318.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.672e-05/0.26, allocations: 37.7 kB / 408.3 MB, free: 1.02 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.275e-05/0.2601, allocations: 4 kB / 408.3 MB, free: 1.016 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.297e-06/0.2601, allocations: 0 / 408.3 MB, free: 1.016 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.288e-05/0.2601, allocations: 0 / 408.3 MB, free: 1.016 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.776e-05/0.2601, allocations: 4 kB / 408.3 MB, free: 1.012 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.797e-06/0.2601, allocations: 0 / 408.3 MB, free: 1.012 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.623e-05/0.2601, allocations: 0 / 408.3 MB, free: 1.012 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.672e-06/0.2601, allocations: 0 / 408.3 MB, free: 1.012 MB / 318.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 6.492e-05/0.2602, allocations: 117.7 kB / 408.4 MB, free: 0.8867 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.286e-05/0.2602, allocations: 11.98 kB / 408.4 MB, free: 0.875 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.113e-05/0.2603, allocations: 7.125 kB / 408.4 MB, free: 0.8672 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.154e-06/0.2603, allocations: 0 / 408.4 MB, free: 0.8672 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.2603, allocations: 4 kB / 408.4 MB, free: 0.8633 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.953e-06/0.2603, allocations: 0 / 408.4 MB, free: 0.8633 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000108/0.2604, allocations: 153.6 kB / 408.6 MB, free: 0.6641 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.11e-07/0.2604, allocations: 0 / 408.6 MB, free: 0.6641 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.296e-06/0.2604, allocations: 0 / 408.6 MB, free: 0.6641 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.293e-06/0.2604, allocations: 0 / 408.6 MB, free: 0.6641 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.889e-06/0.2604, allocations: 0 / 408.6 MB, free: 0.6641 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.548e-06/0.2604, allocations: 7.938 kB / 408.6 MB, free: 0.6562 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.2605, allocations: 4 kB / 408.6 MB, free: 0.6523 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.75e-05/0.2605, allocations: 61.06 kB / 408.6 MB, free: 0.5742 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.782e-05/0.2606, allocations: 77.11 kB / 408.7 MB, free: 492 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.295e-05/0.2606, allocations: 4 kB / 408.7 MB, free: 488 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.18e-05/0.2606, allocations: 0 / 408.7 MB, free: 488 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.419e-05/0.2606, allocations: 3.938 kB / 408.7 MB, free: 484 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.783e-06/0.2606, allocations: 3.938 kB / 408.7 MB, free: 480 kB / 318.1 MB Notification: Performance of sorting global known variables: time 3.647e-05/0.2607, allocations: 91.3 kB / 408.8 MB, free: 388 kB / 318.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2607, allocations: 0 / 408.8 MB, free: 388 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003956/0.2611, allocations: 127.6 kB / 408.9 MB, free: 260 kB / 318.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.0009123/0.262, allocations: 490.5 kB / 409.4 MB, free: 15.84 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 7.102e-05/0.2621, allocations: 8 kB / 409.4 MB, free: 15.83 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.2621, allocations: 0 / 409.4 MB, free: 15.83 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 6.061e-06/0.2621, allocations: 0 / 409.4 MB, free: 15.83 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001351/0.2622, allocations: 18.31 kB / 409.5 MB, free: 15.81 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002167/0.2625, allocations: 114.6 kB / 409.6 MB, free: 15.68 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002085/0.2627, allocations: 0.6766 MB / 410.2 MB, free: 14.98 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 2.529e-05/0.2627, allocations: 7.984 kB / 410.2 MB, free: 14.97 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.049e-05/0.2627, allocations: 15.42 kB / 410.3 MB, free: 14.95 MB / 334.1 MB Notification: Performance of SimCode: time 2.2e-07/0.2627, allocations: 0 / 410.3 MB, free: 14.95 MB / 334.1 MB Notification: Performance of Templates: time 0.005623/0.2684, allocations: 2.761 MB / 413 MB, free: 12.19 MB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.makefile (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) 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) Reference file matches