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.001336/0.001336, allocations: 101.5 kB / 21.22 MB, free: 0.6211 MB / 14.72 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.001295/0.001295, allocations: 190.7 kB / 24.49 MB, free: 3.934 MB / 14.72 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 1.34/1.34, allocations: 225.7 MB / 253.3 MB, free: 12.82 MB / 206.1 MB " [Timeout remaining time 178] 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Utilities.Examples.readRealParameterModel,fileNamePrefix="Modelica_4_0_0_Modelica_Utilities_Examples_readRealParameterModel",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001425/0.001425, allocations: 47.92 kB / 371.1 MB, free: 9.699 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2324/0.2338, allocations: 52.19 MB / 423.3 MB, free: 14.54 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.002289/0.2361, allocations: 1.199 MB / 424.5 MB, free: 13.33 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003267/0.2394, allocations: 1.966 MB / 426.5 MB, free: 11.36 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.526e-05/0.2394, allocations: 4 kB / 426.5 MB, free: 11.35 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 1.549e-05/0.2394, allocations: 0 / 426.5 MB, free: 11.35 MB / 334.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.001159/0.2406, allocations: 438.6 kB / 426.9 MB, free: 10.92 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 2.565e-05/0.2406, allocations: 3.938 kB / 426.9 MB, free: 10.92 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 5.281e-05/0.2407, allocations: 11.98 kB / 426.9 MB, free: 10.91 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.819e-05/0.2407, allocations: 0 / 426.9 MB, free: 10.91 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.3e-05/0.2407, allocations: 15.86 kB / 427 MB, free: 10.89 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.036e-05/0.2408, allocations: 4 kB / 427 MB, free: 10.89 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.023e-05/0.2408, allocations: 0 / 427 MB, free: 10.89 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006712/0.2415, allocations: 463.5 kB / 427.4 MB, free: 10.43 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 1.502e-05/0.2415, allocations: 11.98 kB / 427.4 MB, free: 10.42 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 2.189e-05/0.2415, allocations: 3.938 kB / 427.4 MB, free: 10.42 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004749/0.242, allocations: 333.4 kB / 427.8 MB, free: 10.09 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.795e-06/0.242, allocations: 8 kB / 427.8 MB, free: 10.09 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.242, allocations: 0 / 427.8 MB, free: 10.09 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.496e-06/0.242, allocations: 0 / 427.8 MB, free: 10.09 MB / 334.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.0004127/0.2424, allocations: 329.5 kB / 428.1 MB, free: 9.734 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.592e-05/0.2425, allocations: 12.02 kB / 428.1 MB, free: 9.723 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.524e-05/0.2425, allocations: 75.47 kB / 428.2 MB, free: 9.648 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.536e-05/0.2426, allocations: 117.9 kB / 428.3 MB, free: 9.523 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.72e-05/0.2426, allocations: 80.22 kB / 428.4 MB, free: 9.445 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001685/0.2428, allocations: 193.8 kB / 428.6 MB, free: 9.23 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.097e-05/0.2429, allocations: 154.7 kB / 428.7 MB, free: 9.078 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.913e-05/0.2429, allocations: 150.6 kB / 428.9 MB, free: 8.93 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.008e-05/0.243, allocations: 109 kB / 429 MB, free: 8.816 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.43e-05/0.243, allocations: 75.28 kB / 429 MB, free: 8.742 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.364e-05/0.2431, allocations: 150.6 kB / 429.2 MB, free: 8.594 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.809e-05/0.2432, allocations: 150.6 kB / 429.3 MB, free: 8.445 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.296e-05/0.2433, allocations: 154.5 kB / 429.5 MB, free: 8.293 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000308/0.2436, allocations: 417 kB / 429.9 MB, free: 7.844 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001059/0.2437, allocations: 173.1 kB / 430.1 MB, free: 7.664 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.216e-05/0.2437, allocations: 92.14 kB / 430.1 MB, free: 7.57 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.262e-05/0.2437, allocations: 75.28 kB / 430.2 MB, free: 7.496 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001389/0.2439, allocations: 47.34 kB / 430.3 MB, free: 7.438 MB / 334.1 MB Notification: Performance of pre-optimization done (n=1): time 2.244e-06/0.2439, allocations: 0 / 430.3 MB, free: 7.438 MB / 334.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001296/0.244, allocations: 37.69 kB / 430.3 MB, free: 7.395 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.038e-05/0.2441, allocations: 51.41 kB / 430.3 MB, free: 7.332 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.644e-05/0.2442, allocations: 101.8 kB / 430.4 MB, free: 7.223 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.4e-05/0.2442, allocations: 29.7 kB / 430.5 MB, free: 7.188 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.54e-05/0.2442, allocations: 84.14 kB / 430.6 MB, free: 7.102 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.15e-05/0.2442, allocations: 4.125 kB / 430.6 MB, free: 7.098 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.725e-05/0.2443, allocations: 17.64 kB / 430.6 MB, free: 7.074 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001474/0.2444, allocations: 314.8 kB / 430.9 MB, free: 6.758 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.326e-06/0.2444, allocations: 0 / 430.9 MB, free: 6.758 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.128e-06/0.2444, allocations: 0 / 430.9 MB, free: 6.758 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.795e-05/0.2444, allocations: 16.8 kB / 430.9 MB, free: 6.738 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.262e-06/0.2444, allocations: 0 / 430.9 MB, free: 6.738 MB / 334.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.146e-05/0.2445, allocations: 29.7 kB / 430.9 MB, free: 6.703 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.555e-05/0.2445, allocations: 11.98 kB / 430.9 MB, free: 6.691 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.597e-06/0.2445, allocations: 4.094 kB / 430.9 MB, free: 6.688 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.249e-05/0.2445, allocations: 0 / 430.9 MB, free: 6.688 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.961e-05/0.2445, allocations: 0 / 430.9 MB, free: 6.688 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.572e-06/0.2446, allocations: 3.938 kB / 431 MB, free: 6.684 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.717e-05/0.2446, allocations: 4 kB / 431 MB, free: 6.68 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.698e-06/0.2446, allocations: 0 / 431 MB, free: 6.68 MB / 334.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 8.114e-05/0.2447, allocations: 113.8 kB / 431.1 MB, free: 6.559 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.126e-05/0.2447, allocations: 3.953 kB / 431.1 MB, free: 6.555 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.132e-05/0.2447, allocations: 7.156 kB / 431.1 MB, free: 6.547 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-06/0.2447, allocations: 0 / 431.1 MB, free: 6.547 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/0.2447, allocations: 7.984 kB / 431.1 MB, free: 6.539 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.354e-06/0.2447, allocations: 0 / 431.1 MB, free: 6.539 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001181/0.2448, allocations: 132.6 kB / 431.2 MB, free: 6.367 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.51e-07/0.2448, allocations: 0 / 431.2 MB, free: 6.367 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.996e-06/0.2448, allocations: 0 / 431.2 MB, free: 6.367 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.102e-06/0.2448, allocations: 0 / 431.2 MB, free: 6.367 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.879e-06/0.2448, allocations: 0 / 431.2 MB, free: 6.367 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.02e-07/0.2448, allocations: 0 / 431.2 MB, free: 6.367 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/0.2448, allocations: 3.984 kB / 431.2 MB, free: 6.363 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.784e-05/0.2449, allocations: 61.08 kB / 431.3 MB, free: 6.285 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.076e-06/0.2449, allocations: 0 / 431.3 MB, free: 6.285 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.306e-05/0.2449, allocations: 11.97 kB / 431.3 MB, free: 6.273 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.245e-05/0.2449, allocations: 0 / 431.3 MB, free: 6.273 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.372e-05/0.245, allocations: 4.172 kB / 431.3 MB, free: 6.27 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.533e-06/0.245, allocations: 3.938 kB / 431.3 MB, free: 6.266 MB / 334.1 MB Notification: Performance of sorting global known variables: time 4.658e-05/0.245, allocations: 87.27 kB / 431.4 MB, free: 6.18 MB / 334.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.245, allocations: 0 / 431.4 MB, free: 6.18 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003851/0.2454, allocations: 127.6 kB / 431.5 MB, free: 6.055 MB / 334.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.001378/0.2468, allocations: 0.9899 MB / 432.5 MB, free: 5.125 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 6.763e-05/0.2468, allocations: 11.94 kB / 432.5 MB, free: 5.113 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.2468, allocations: 0 / 432.5 MB, free: 5.113 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 5.891e-06/0.2468, allocations: 0 / 432.5 MB, free: 5.113 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000127/0.247, allocations: 10.88 kB / 432.5 MB, free: 5.105 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001073/0.248, allocations: 1.158 MB / 433.7 MB, free: 3.867 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.575e-05/0.2481, allocations: 63.2 kB / 433.7 MB, free: 3.785 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 2.486e-05/0.2481, allocations: 4 kB / 433.7 MB, free: 3.781 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.298e-05/0.2481, allocations: 19.42 kB / 433.8 MB, free: 3.762 MB / 334.1 MB Notification: Performance of SimCode: time 2.4e-07/0.2481, allocations: 0 / 433.8 MB, free: 3.762 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02622/0.2744, allocations: 4.11 MB / 437.9 MB, free: 15.79 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.48/10.76, allocations: 8.609 kB / 437.9 MB, free: 15.79 MB / 350.1 MB " [Timeout remaining time 649] (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 --stepSize=0.000201919 --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) [Timeout 52.5] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.053672228939831]