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: "" <> buildModelFMU(Modelica.Utilities.Examples.readRealParameterModel,fileNamePrefix="Modelica_4_0_0_Modelica_Utilities_Examples_readRealParameterModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Utilities.Examples.readRealParameterModel,fileNamePrefix="Modelica_4_0_0_Modelica_Utilities_Examples_readRealParameterModel",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001147/0.001147, allocations: 105.3 kB / 17.06 MB, free: 6.016 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.001231/0.001232, allocations: 196 kB / 18 MB, free: 5.094 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.35/1.35, allocations: 222.9 MB / 241.7 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001097/0.001097, allocations: 47.92 kB / 350.8 MB, free: 3.801 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2468/0.2479, allocations: 49.44 MB / 400.2 MB, free: 8.426 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.001989/0.2499, allocations: 1.196 MB / 401.4 MB, free: 7.477 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002536/0.2525, allocations: 1.958 MB / 403.4 MB, free: 5.664 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.05e-05/0.2525, allocations: 0 / 403.4 MB, free: 5.664 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 1.668e-05/0.2525, allocations: 0 / 403.4 MB, free: 5.664 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.0009783/0.2535, allocations: 438.6 kB / 403.8 MB, free: 5.234 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 1.935e-05/0.2535, allocations: 0 / 403.8 MB, free: 5.234 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 5.391e-05/0.2536, allocations: 11.94 kB / 403.8 MB, free: 5.223 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.005e-05/0.2536, allocations: 0 / 403.8 MB, free: 5.223 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.031e-05/0.2537, allocations: 11.92 kB / 403.8 MB, free: 5.211 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.744e-05/0.2537, allocations: 6.5 kB / 403.8 MB, free: 5.207 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.945e-06/0.2538, allocations: 0 / 403.8 MB, free: 5.207 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005751/0.2543, allocations: 483.5 kB / 404.3 MB, free: 4.734 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.277e-06/0.2544, allocations: 0 / 404.3 MB, free: 4.734 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 1.92e-05/0.2544, allocations: 7.938 kB / 404.3 MB, free: 4.727 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003971/0.2548, allocations: 339.4 kB / 404.6 MB, free: 4.395 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.216e-06/0.2548, allocations: 0 / 404.6 MB, free: 4.395 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.2548, allocations: 0 / 404.6 MB, free: 4.395 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.308e-06/0.2548, allocations: 0 / 404.6 MB, free: 4.395 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.0003726/0.2552, allocations: 403.5 kB / 405 MB, free: 3.953 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.185e-05/0.2552, allocations: 12.03 kB / 405 MB, free: 3.941 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.159e-05/0.2553, allocations: 106 kB / 405.1 MB, free: 3.828 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.836e-05/0.2553, allocations: 80.12 kB / 405.2 MB, free: 3.75 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001405/0.2555, allocations: 253.3 kB / 405.5 MB, free: 3.465 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.659e-05/0.2555, allocations: 150.9 kB / 405.6 MB, free: 3.316 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.273e-05/0.2556, allocations: 154.5 kB / 405.8 MB, free: 3.164 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 4.988e-05/0.2556, allocations: 104.9 kB / 405.9 MB, free: 3.055 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.186e-05/0.2557, allocations: 75.28 kB / 405.9 MB, free: 2.98 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.379e-05/0.2557, allocations: 154.6 kB / 406.1 MB, free: 2.828 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.822e-05/0.2558, allocations: 154.6 kB / 406.2 MB, free: 2.676 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.035e-05/0.2558, allocations: 154.6 kB / 406.4 MB, free: 2.523 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002241/0.256, allocations: 445.9 kB / 406.8 MB, free: 2.039 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.527e-05/0.2561, allocations: 177 kB / 407 MB, free: 1.855 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.642e-05/0.2561, allocations: 84.14 kB / 407.1 MB, free: 1.77 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.246e-05/0.2562, allocations: 79.27 kB / 407.2 MB, free: 1.691 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.825e-05/0.2563, allocations: 43.41 kB / 407.2 MB, free: 1.637 MB / 318.1 MB Notification: Performance of pre-optimization done (n=1): time 2.094e-06/0.2563, allocations: 0 / 407.2 MB, free: 1.637 MB / 318.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001027/0.2564, allocations: 37.64 kB / 407.2 MB, free: 1.594 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.958e-05/0.2564, allocations: 63.41 kB / 407.3 MB, free: 1.52 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.914e-05/0.2565, allocations: 101.8 kB / 407.4 MB, free: 1.41 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.089e-05/0.2565, allocations: 29.7 kB / 407.4 MB, free: 1.375 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.694e-05/0.2565, allocations: 80.14 kB / 407.5 MB, free: 1.293 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.318e-06/0.2565, allocations: 0 / 407.5 MB, free: 1.293 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.383e-05/0.2566, allocations: 13.72 kB / 407.5 MB, free: 1.273 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.115e-05/0.2567, allocations: 314.8 kB / 407.8 MB, free: 0.957 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.676e-06/0.2567, allocations: 4 kB / 407.8 MB, free: 0.9531 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.27e-06/0.2567, allocations: 4 kB / 407.8 MB, free: 0.9492 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.693e-05/0.2567, allocations: 8.859 kB / 407.8 MB, free: 0.9375 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.2567, allocations: 3.938 kB / 407.8 MB, free: 0.9336 MB / 318.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.979e-05/0.2568, allocations: 41.55 kB / 407.9 MB, free: 0.8867 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.051e-05/0.2568, allocations: 4 kB / 407.9 MB, free: 0.8828 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.337e-06/0.2568, allocations: 0 / 407.9 MB, free: 0.8828 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.027e-06/0.2568, allocations: 0 / 407.9 MB, free: 0.8828 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.544e-05/0.2568, allocations: 0 / 407.9 MB, free: 0.8828 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.767e-06/0.2568, allocations: 0 / 407.9 MB, free: 0.8828 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.804e-05/0.2569, allocations: 8.094 kB / 407.9 MB, free: 0.875 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.512e-06/0.2569, allocations: 7.984 kB / 407.9 MB, free: 0.8672 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 5.867e-05/0.2569, allocations: 109.8 kB / 408 MB, free: 0.75 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.075e-05/0.257, allocations: 4 kB / 408 MB, free: 0.7461 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.891e-05/0.257, allocations: 7.125 kB / 408 MB, free: 0.7383 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.673e-06/0.257, allocations: 0 / 408 MB, free: 0.7383 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.025e-06/0.257, allocations: 0 / 408 MB, free: 0.7383 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.773e-06/0.257, allocations: 0 / 408 MB, free: 0.7383 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.859e-05/0.2571, allocations: 153.6 kB / 408.2 MB, free: 0.5391 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.02e-07/0.2571, allocations: 0 / 408.2 MB, free: 0.5391 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.266e-06/0.2571, allocations: 4 kB / 408.2 MB, free: 0.5352 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.292e-06/0.2571, allocations: 0 / 408.2 MB, free: 0.5352 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.117e-06/0.2571, allocations: 0 / 408.2 MB, free: 0.5352 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.22e-07/0.2571, allocations: 0 / 408.2 MB, free: 0.5352 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.2571, allocations: 0 / 408.2 MB, free: 0.5352 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.448e-05/0.2572, allocations: 69 kB / 408.2 MB, free: 460 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.486e-05/0.2573, allocations: 77.11 kB / 408.3 MB, free: 364 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.578e-06/0.2573, allocations: 4.031 kB / 408.3 MB, free: 360 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.252e-05/0.2573, allocations: 0 / 408.3 MB, free: 360 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.091e-05/0.2573, allocations: 7.938 kB / 408.3 MB, free: 352 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.563e-06/0.2573, allocations: 0 / 408.3 MB, free: 352 kB / 318.1 MB Notification: Performance of sorting global known variables: time 3.493e-05/0.2573, allocations: 87.27 kB / 408.4 MB, free: 264 kB / 318.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2574, allocations: 0 / 408.4 MB, free: 264 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003301/0.2577, allocations: 128 kB / 408.5 MB, free: 136 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.001019/0.2587, allocations: 0.9838 MB / 409.5 MB, free: 15.2 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 5.369e-05/0.2588, allocations: 11.98 kB / 409.5 MB, free: 15.19 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.2588, allocations: 0 / 409.5 MB, free: 15.19 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.439e-06/0.2588, allocations: 0 / 409.5 MB, free: 15.19 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000121/0.2589, allocations: 4 kB / 409.5 MB, free: 15.18 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008596/0.2598, allocations: 1.15 MB / 410.7 MB, free: 13.95 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002048/0.26, allocations: 0.6766 MB / 411.4 MB, free: 13.25 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 2.549e-05/0.26, allocations: 11.98 kB / 411.4 MB, free: 13.23 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.62e-05/0.2601, allocations: 19.42 kB / 411.4 MB, free: 13.21 MB / 334.1 MB Notification: Performance of SimCode: time 2.31e-07/0.2601, allocations: 0 / 411.4 MB, free: 13.21 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01993/0.28, allocations: 3.924 MB / 415.3 MB, free: 9.379 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.395/7.675, allocations: 10.61 kB / 415.3 MB, free: 9.371 MB / 334.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Utilities_Examples_readRealParameterModel_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Utilities_Examples_readRealParameterModel.fmu > Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Utilities/Examples/readRealParameterModel/readRealParameterModel.csv","/var/lib/jenkins1/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