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.001432/0.001432, allocations: 106.6 kB / 17.06 MB, free: 5.969 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.001447/0.001447, allocations: 197.3 kB / 18.01 MB, free: 5.051 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.418/1.418, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001393/0.001393, allocations: 51.92 kB / 350.8 MB, free: 3.785 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2708/0.2722, 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.002765/0.275, allocations: 1.192 MB / 401.4 MB, free: 7.477 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004137/0.2792, allocations: 1.964 MB / 403.4 MB, free: 5.676 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.976e-05/0.2793, allocations: 3.938 kB / 403.4 MB, free: 5.672 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 2.286e-05/0.2793, allocations: 0 / 403.4 MB, free: 5.672 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.001363/0.2807, allocations: 430.7 kB / 403.8 MB, free: 5.25 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 2.763e-05/0.2808, allocations: 7.984 kB / 403.8 MB, free: 5.242 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 5.916e-05/0.2808, allocations: 7.938 kB / 403.8 MB, free: 5.234 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.796e-05/0.2809, allocations: 4 kB / 403.8 MB, free: 5.23 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.71e-05/0.2809, allocations: 3.938 kB / 403.8 MB, free: 5.227 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001103/0.281, allocations: 11.98 kB / 403.8 MB, free: 5.215 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.686e-05/0.281, allocations: 4 kB / 403.8 MB, free: 5.211 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008069/0.2819, allocations: 475.4 kB / 404.3 MB, free: 4.746 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 1.471e-05/0.2819, allocations: 4 kB / 404.3 MB, free: 4.742 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 2.709e-05/0.2819, allocations: 7.922 kB / 404.3 MB, free: 4.734 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005704/0.2825, allocations: 341.8 kB / 404.6 MB, free: 4.406 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.254e-06/0.2825, allocations: 0 / 404.6 MB, free: 4.406 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.382e-06/0.2825, allocations: 0 / 404.6 MB, free: 4.406 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.762e-06/0.2825, allocations: 0 / 404.6 MB, free: 4.406 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.0006142/0.2832, allocations: 410.6 kB / 405 MB, free: 3.957 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.841e-05/0.2832, allocations: 12.03 kB / 405 MB, free: 3.945 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.862e-05/0.2833, allocations: 114 kB / 405.2 MB, free: 3.824 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.944e-05/0.2834, allocations: 76.22 kB / 405.2 MB, free: 3.75 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000223/0.2836, allocations: 247.6 kB / 405.5 MB, free: 3.469 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.567e-05/0.2837, allocations: 154.9 kB / 405.6 MB, free: 3.316 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.181e-05/0.2838, allocations: 154.5 kB / 405.8 MB, free: 3.164 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001003/0.2839, allocations: 105 kB / 405.9 MB, free: 3.055 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.848e-05/0.2839, allocations: 75.28 kB / 405.9 MB, free: 2.98 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.445e-05/0.284, allocations: 150.6 kB / 406.1 MB, free: 2.832 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.581e-05/0.2841, allocations: 150.6 kB / 406.2 MB, free: 2.684 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.838e-05/0.2842, allocations: 154.5 kB / 406.4 MB, free: 2.531 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000363/0.2846, allocations: 453.9 kB / 406.8 MB, free: 2.039 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001318/0.2847, allocations: 173.1 kB / 407 MB, free: 1.859 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.536e-05/0.2848, allocations: 80.14 kB / 407.1 MB, free: 1.777 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.804e-05/0.2848, allocations: 75.28 kB / 407.2 MB, free: 1.703 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002274/0.2851, allocations: 55.34 kB / 407.2 MB, free: 1.637 MB / 318.1 MB Notification: Performance of pre-optimization done (n=1): time 3.286e-06/0.2851, allocations: 0 / 407.2 MB, free: 1.637 MB / 318.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001801/0.2853, allocations: 29.7 kB / 407.2 MB, free: 1.602 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.488e-05/0.2853, allocations: 55.34 kB / 407.3 MB, free: 1.535 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001468/0.2855, allocations: 109.8 kB / 407.4 MB, free: 1.418 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.105e-05/0.2855, allocations: 25.7 kB / 407.4 MB, free: 1.387 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.684e-05/0.2856, allocations: 84.14 kB / 407.5 MB, free: 1.301 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.964e-05/0.2856, allocations: 0 / 407.5 MB, free: 1.301 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.865e-05/0.2857, allocations: 21.78 kB / 407.5 MB, free: 1.273 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002188/0.2859, allocations: 314.8 kB / 407.8 MB, free: 0.957 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.12e-05/0.2859, allocations: 0 / 407.8 MB, free: 0.957 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.093e-06/0.2859, allocations: 3.984 kB / 407.8 MB, free: 0.9531 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.726e-05/0.2859, allocations: 12.86 kB / 407.9 MB, free: 0.9375 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.456e-06/0.286, allocations: 3.938 kB / 407.9 MB, free: 0.9336 MB / 318.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.884e-05/0.286, allocations: 29.7 kB / 407.9 MB, free: 0.8984 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.764e-05/0.286, allocations: 8.094 kB / 407.9 MB, free: 0.8906 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.89e-06/0.2861, allocations: 4 kB / 407.9 MB, free: 0.8867 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.518e-05/0.2861, allocations: 0 / 407.9 MB, free: 0.8867 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.821e-05/0.2861, allocations: 0 / 407.9 MB, free: 0.8867 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.128e-05/0.2861, allocations: 0 / 407.9 MB, free: 0.8867 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.809e-05/0.2861, allocations: 3.938 kB / 407.9 MB, free: 0.8828 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.504e-06/0.2862, allocations: 0 / 407.9 MB, free: 0.8828 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 0.0001092/0.2863, allocations: 117.8 kB / 408 MB, free: 0.7578 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.174e-05/0.2863, allocations: 3.953 kB / 408 MB, free: 0.7539 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.475e-05/0.2863, allocations: 7.125 kB / 408 MB, free: 0.7461 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.655e-05/0.2864, allocations: 8 kB / 408 MB, free: 0.7383 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/0.2864, allocations: 0 / 408 MB, free: 0.7383 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.446e-06/0.2864, allocations: 0 / 408 MB, free: 0.7383 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001733/0.2866, allocations: 153.6 kB / 408.2 MB, free: 0.5391 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.52e-07/0.2866, allocations: 0 / 408.2 MB, free: 0.5391 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.953e-06/0.2866, allocations: 4 kB / 408.2 MB, free: 0.5352 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.172e-06/0.2866, allocations: 0 / 408.2 MB, free: 0.5352 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.484e-06/0.2866, allocations: 0 / 408.2 MB, free: 0.5352 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.71e-07/0.2866, allocations: 0 / 408.2 MB, free: 0.5352 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.2866, allocations: 0 / 408.2 MB, free: 0.5352 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001216/0.2867, allocations: 69.06 kB / 408.3 MB, free: 460 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.174e-05/0.2868, allocations: 77.11 kB / 408.3 MB, free: 364 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.892e-05/0.2868, allocations: 0 / 408.3 MB, free: 364 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.453e-05/0.2868, allocations: 3.938 kB / 408.3 MB, free: 360 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.257e-05/0.2869, allocations: 3.938 kB / 408.3 MB, free: 356 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.094e-06/0.2869, allocations: 0 / 408.3 MB, free: 356 kB / 318.1 MB Notification: Performance of sorting global known variables: time 9.034e-05/0.287, allocations: 91.27 kB / 408.4 MB, free: 264 kB / 318.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.287, allocations: 32 / 408.4 MB, free: 264 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004642/0.2874, allocations: 127.6 kB / 408.6 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.00158/0.289, allocations: 0.9795 MB / 409.5 MB, free: 15.2 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 8.418e-05/0.2891, allocations: 11.92 kB / 409.5 MB, free: 15.19 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.07e-06/0.2891, allocations: 4 kB / 409.5 MB, free: 15.18 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 5.2e-06/0.2892, allocations: 0 / 409.5 MB, free: 15.18 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001499/0.2893, allocations: 4 kB / 409.6 MB, free: 15.18 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00118/0.2905, allocations: 1.154 MB / 410.7 MB, free: 13.95 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003495/0.2909, allocations: 0.6766 MB / 411.4 MB, free: 13.24 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.302e-05/0.2909, allocations: 12.05 kB / 411.4 MB, free: 13.23 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.102e-05/0.291, allocations: 15.42 kB / 411.4 MB, free: 13.21 MB / 334.1 MB Notification: Performance of SimCode: time 3.41e-07/0.291, allocations: 0 / 411.4 MB, free: 13.21 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02788/0.3189, allocations: 3.924 MB / 415.3 MB, free: 9.375 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.118/8.437, allocations: 7.797 kB / 415.3 MB, free: 9.367 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