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.001125/0.001125, allocations: 109.1 kB / 17.06 MB, free: 6.023 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.001041/0.001041, allocations: 191 kB / 18 MB, free: 5.105 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.318/1.318, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009844/0.0009844, allocations: 43.94 kB / 351.3 MB, free: 3.289 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2698/0.2708, allocations: 49.44 MB / 400.7 MB, free: 8.734 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.002499/0.2733, allocations: 1.194 MB / 401.9 MB, free: 7.684 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002972/0.2763, allocations: 1.964 MB / 403.9 MB, free: 5.711 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.218e-05/0.2764, allocations: 0 / 403.9 MB, free: 5.711 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 1.384e-05/0.2764, allocations: 3.938 kB / 403.9 MB, free: 5.707 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.001287/0.2777, allocations: 432.9 kB / 404.3 MB, free: 5.285 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 2.824e-05/0.2778, allocations: 3.984 kB / 404.3 MB, free: 5.281 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 5.194e-05/0.2778, allocations: 15.94 kB / 404.3 MB, free: 5.266 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.88e-05/0.2779, allocations: 3.984 kB / 404.3 MB, free: 5.262 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.603e-05/0.2779, allocations: 7.938 kB / 404.3 MB, free: 5.254 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001149/0.278, allocations: 7.984 kB / 404.3 MB, free: 5.246 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.247e-06/0.278, allocations: 0 / 404.3 MB, free: 5.246 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007433/0.2788, allocations: 475.5 kB / 404.8 MB, free: 4.781 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 1.487e-05/0.2788, allocations: 3.938 kB / 404.8 MB, free: 4.777 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 2.066e-05/0.2788, allocations: 7.938 kB / 404.8 MB, free: 4.77 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005264/0.2794, allocations: 339.5 kB / 405.1 MB, free: 4.438 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.2794, allocations: 0 / 405.1 MB, free: 4.438 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.2794, allocations: 0 / 405.1 MB, free: 4.438 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.258e-06/0.2794, allocations: 0 / 405.1 MB, free: 4.438 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.0004109/0.2798, allocations: 399.5 kB / 405.5 MB, free: 4 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.253e-05/0.2799, allocations: 12.03 kB / 405.5 MB, free: 3.988 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.317e-05/0.2799, allocations: 80.2 kB / 405.6 MB, free: 3.91 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001423/0.2801, allocations: 243.6 kB / 405.8 MB, free: 3.633 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.27e-05/0.2801, allocations: 158.9 kB / 406 MB, free: 3.477 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.434e-05/0.2802, allocations: 158.6 kB / 406.2 MB, free: 3.32 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.022e-05/0.2802, allocations: 101 kB / 406.3 MB, free: 3.215 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.323e-05/0.2803, allocations: 75.28 kB / 406.3 MB, free: 3.141 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.611e-05/0.2803, allocations: 150.6 kB / 406.5 MB, free: 2.992 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.58e-05/0.2804, allocations: 158.5 kB / 406.6 MB, free: 2.836 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.419e-05/0.2804, allocations: 154.6 kB / 406.8 MB, free: 2.684 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002678/0.2807, allocations: 442 kB / 407.2 MB, free: 2.203 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.903e-05/0.2808, allocations: 169.1 kB / 407.4 MB, free: 2.027 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.084e-05/0.2808, allocations: 88.08 kB / 407.5 MB, free: 1.938 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.557e-05/0.2809, allocations: 79.28 kB / 407.5 MB, free: 1.859 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001104/0.281, allocations: 47.41 kB / 407.6 MB, free: 1.801 MB / 318.1 MB Notification: Performance of pre-optimization done (n=1): time 2.134e-06/0.281, allocations: 0 / 407.6 MB, free: 1.801 MB / 318.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001205/0.2811, allocations: 41.61 kB / 407.6 MB, free: 1.754 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.4e-05/0.2812, allocations: 51.41 kB / 407.7 MB, free: 1.691 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.223e-05/0.2812, allocations: 109.9 kB / 407.8 MB, free: 1.574 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.567e-06/0.2813, allocations: 29.64 kB / 407.8 MB, free: 1.539 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.987e-05/0.2813, allocations: 80.14 kB / 407.9 MB, free: 1.457 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.034e-05/0.2813, allocations: 0 / 407.9 MB, free: 1.457 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.829e-05/0.2813, allocations: 21.7 kB / 407.9 MB, free: 1.43 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001046/0.2815, allocations: 310.8 kB / 408.2 MB, free: 1.117 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.546e-06/0.2815, allocations: 0 / 408.2 MB, free: 1.117 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.779e-06/0.2815, allocations: 0 / 408.2 MB, free: 1.117 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.363e-05/0.2815, allocations: 12.92 kB / 408.2 MB, free: 1.102 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.2815, allocations: 3.938 kB / 408.2 MB, free: 1.098 MB / 318.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.84e-05/0.2816, allocations: 41.55 kB / 408.3 MB, free: 1.051 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.355e-05/0.2816, allocations: 8 kB / 408.3 MB, free: 1.043 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.119e-06/0.2816, allocations: 3.984 kB / 408.3 MB, free: 1.039 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.12e-05/0.2816, allocations: 0 / 408.3 MB, free: 1.039 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.931e-05/0.2816, allocations: 0 / 408.3 MB, free: 1.039 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.248e-06/0.2817, allocations: 0 / 408.3 MB, free: 1.039 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.465e-05/0.2817, allocations: 0 / 408.3 MB, free: 1.039 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.789e-06/0.2817, allocations: 4.031 kB / 408.3 MB, free: 1.035 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.645e-05/0.2818, allocations: 113.8 kB / 408.4 MB, free: 0.9141 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.368e-06/0.2818, allocations: 0 / 408.4 MB, free: 0.9141 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.325e-05/0.2818, allocations: 3.125 kB / 408.4 MB, free: 0.9102 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.005e-06/0.2818, allocations: 4 kB / 408.4 MB, free: 0.9062 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.577e-06/0.2818, allocations: 0 / 408.4 MB, free: 0.9062 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.17e-05/0.2818, allocations: 7.984 kB / 408.4 MB, free: 0.8984 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001001/0.2819, allocations: 149.6 kB / 408.6 MB, free: 0.7031 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.435e-06/0.282, allocations: 4 kB / 408.6 MB, free: 0.6992 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.427e-06/0.282, allocations: 0 / 408.6 MB, free: 0.6992 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.238e-06/0.282, allocations: 7.984 kB / 408.6 MB, free: 0.6914 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.853e-06/0.282, allocations: 0 / 408.6 MB, free: 0.6914 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.262e-06/0.282, allocations: 3.938 kB / 408.6 MB, free: 0.6875 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.282, allocations: 0 / 408.6 MB, free: 0.6875 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.569e-05/0.2821, allocations: 61.08 kB / 408.6 MB, free: 0.6094 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.709e-05/0.2821, allocations: 77.11 kB / 408.7 MB, free: 0.5156 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.251e-05/0.2821, allocations: 3.984 kB / 408.7 MB, free: 0.5117 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.144e-05/0.2821, allocations: 4.031 kB / 408.7 MB, free: 0.5078 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.388e-05/0.2822, allocations: 0 / 408.7 MB, free: 0.5078 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.156e-06/0.2822, allocations: 7.938 kB / 408.7 MB, free: 0.5 MB / 318.1 MB Notification: Performance of sorting global known variables: time 4.015e-05/0.2822, allocations: 79.28 kB / 408.8 MB, free: 432 kB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2822, allocations: 0 / 408.8 MB, free: 432 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003911/0.2826, allocations: 124 kB / 408.9 MB, free: 308 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.0009105/0.2835, allocations: 488.6 kB / 409.4 MB, free: 15.89 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 5.993e-05/0.2836, allocations: 7.938 kB / 409.4 MB, free: 15.88 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.2836, allocations: 0 / 409.4 MB, free: 15.88 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 8.376e-06/0.2836, allocations: 4 kB / 409.4 MB, free: 15.88 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001368/0.2838, allocations: 12 kB / 409.4 MB, free: 15.87 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002241/0.284, allocations: 102.7 kB / 409.5 MB, free: 15.75 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002137/0.2842, allocations: 0.6805 MB / 410.2 MB, free: 15.04 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 2.698e-05/0.2843, allocations: 11.92 kB / 410.2 MB, free: 15.03 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.74e-05/0.2843, allocations: 11.44 kB / 410.2 MB, free: 15.02 MB / 334.1 MB Notification: Performance of SimCode: time 2.3e-07/0.2843, allocations: 0 / 410.2 MB, free: 15.02 MB / 334.1 MB Notification: Performance of Templates: time 0.00585/0.2901, allocations: 2.778 MB / 413 MB, free: 12.23 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