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.001397/0.001397, allocations: 107.5 kB / 20.44 MB, free: 1.188 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.001864/0.001864, allocations: 195.6 kB / 23.71 MB, free: 4.406 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.383/1.383, allocations: 225.7 MB / 252.5 MB, free: 12.8 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="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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00157/0.00157, allocations: 51.92 kB / 370.4 MB, free: 9.715 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2577/0.2593, allocations: 52.19 MB / 422.5 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.002265/0.2615, allocations: 1.188 MB / 423.7 MB, free: 13.2 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003319/0.2649, allocations: 1.97 MB / 425.7 MB, free: 11.22 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.095e-05/0.2649, allocations: 0 / 425.7 MB, free: 11.22 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 2.085e-05/0.2649, allocations: 7.938 kB / 425.7 MB, free: 11.21 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.001387/0.2663, allocations: 434.7 kB / 426.1 MB, free: 10.79 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 2.613e-05/0.2663, allocations: 0 / 426.1 MB, free: 10.79 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 6.281e-05/0.2664, allocations: 15.92 kB / 426.2 MB, free: 10.77 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.964e-05/0.2664, allocations: 4 kB / 426.2 MB, free: 10.77 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.81e-05/0.2665, allocations: 7.922 kB / 426.2 MB, free: 10.76 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001036/0.2666, allocations: 4 kB / 426.2 MB, free: 10.75 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.177e-06/0.2666, allocations: 0 / 426.2 MB, free: 10.75 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000809/0.2674, allocations: 443.5 kB / 426.6 MB, free: 10.32 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 1.247e-05/0.2674, allocations: 4 kB / 426.6 MB, free: 10.32 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 2.713e-05/0.2674, allocations: 15.86 kB / 426.6 MB, free: 10.3 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005849/0.268, allocations: 340.9 kB / 427 MB, free: 9.969 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.059e-06/0.268, allocations: 0 / 427 MB, free: 9.969 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.445e-06/0.268, allocations: 0 / 427 MB, free: 9.969 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.606e-06/0.268, allocations: 0 / 427 MB, free: 9.969 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.0005525/0.2686, allocations: 333.5 kB / 427.3 MB, free: 9.613 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.617e-05/0.2686, allocations: 8.031 kB / 427.3 MB, free: 9.605 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.712e-05/0.2687, allocations: 110 kB / 427.4 MB, free: 9.488 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.696e-05/0.2688, allocations: 80.22 kB / 427.5 MB, free: 9.41 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001815/0.269, allocations: 193.8 kB / 427.7 MB, free: 9.195 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.058e-05/0.269, allocations: 154.9 kB / 427.8 MB, free: 9.043 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.966e-05/0.2691, allocations: 158.5 kB / 428 MB, free: 8.887 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.935e-05/0.2692, allocations: 101 kB / 428.1 MB, free: 8.781 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.203e-05/0.2692, allocations: 83.22 kB / 428.2 MB, free: 8.699 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.574e-05/0.2693, allocations: 150.6 kB / 428.3 MB, free: 8.551 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.777e-05/0.2694, allocations: 150.6 kB / 428.4 MB, free: 8.402 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.336e-05/0.2694, allocations: 150.6 kB / 428.6 MB, free: 8.254 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003032/0.2697, allocations: 417 kB / 429 MB, free: 7.805 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.947e-05/0.2698, allocations: 177.1 kB / 429.2 MB, free: 7.621 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.596e-05/0.2699, allocations: 92.11 kB / 429.3 MB, free: 7.527 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.443e-05/0.2699, allocations: 75.28 kB / 429.3 MB, free: 7.453 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001628/0.2701, allocations: 43.42 kB / 429.4 MB, free: 7.398 MB / 334.1 MB Notification: Performance of pre-optimization done (n=1): time 2.074e-06/0.2701, allocations: 0 / 429.4 MB, free: 7.398 MB / 334.1 MB Notification: Performance of matching and sorting (n=1): time 0.000136/0.2702, allocations: 41.62 kB / 429.4 MB, free: 7.352 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.966e-05/0.2703, allocations: 59.34 kB / 429.5 MB, free: 7.281 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.685e-05/0.2703, allocations: 93.86 kB / 429.6 MB, free: 7.18 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.695e-05/0.2704, allocations: 25.7 kB / 429.6 MB, free: 7.148 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.702e-05/0.2704, allocations: 92.12 kB / 429.7 MB, free: 7.055 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.212e-05/0.2704, allocations: 0 / 429.7 MB, free: 7.055 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.499e-05/0.2704, allocations: 9.844 kB / 429.7 MB, free: 7.039 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001347/0.2706, allocations: 318.8 kB / 430 MB, free: 6.719 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.747e-06/0.2706, allocations: 0 / 430 MB, free: 6.719 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.709e-06/0.2706, allocations: 0 / 430 MB, free: 6.719 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.549e-05/0.2706, allocations: 12.86 kB / 430 MB, free: 6.703 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.957e-06/0.2706, allocations: 3.938 kB / 430 MB, free: 6.699 MB / 334.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.493e-05/0.2707, allocations: 37.62 kB / 430.1 MB, free: 6.656 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.609e-05/0.2707, allocations: 10.81 kB / 430.1 MB, free: 6.648 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.757e-06/0.2707, allocations: 0 / 430.1 MB, free: 6.648 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.146e-05/0.2707, allocations: 0 / 430.1 MB, free: 6.648 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.866e-05/0.2707, allocations: 4.094 kB / 430.1 MB, free: 6.645 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.947e-06/0.2707, allocations: 0 / 430.1 MB, free: 6.645 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.517e-05/0.2707, allocations: 0 / 430.1 MB, free: 6.645 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.74e-06/0.2708, allocations: 3.938 kB / 430.1 MB, free: 6.641 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 0.000104/0.2709, allocations: 113.8 kB / 430.2 MB, free: 6.52 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.381e-05/0.2709, allocations: 3.953 kB / 430.2 MB, free: 6.516 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.396e-05/0.2709, allocations: 11.14 kB / 430.2 MB, free: 6.504 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.435e-06/0.2709, allocations: 4 kB / 430.2 MB, free: 6.5 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.458e-06/0.2709, allocations: 0 / 430.2 MB, free: 6.5 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.647e-06/0.2709, allocations: 0 / 430.2 MB, free: 6.5 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001519/0.2711, allocations: 124.7 kB / 430.3 MB, free: 6.336 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.2711, allocations: 0 / 430.3 MB, free: 6.336 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.896e-06/0.2711, allocations: 0 / 430.3 MB, free: 6.336 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.412e-06/0.2711, allocations: 0 / 430.3 MB, free: 6.336 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.875e-06/0.2711, allocations: 3.984 kB / 430.3 MB, free: 6.332 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.637e-06/0.2711, allocations: 4 kB / 430.3 MB, free: 6.328 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.91e-07/0.2711, allocations: 0 / 430.3 MB, free: 6.328 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.027e-05/0.2712, allocations: 65.02 kB / 430.4 MB, free: 6.246 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.777e-06/0.2712, allocations: 192 / 430.4 MB, free: 6.246 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.35e-05/0.2712, allocations: 0 / 430.4 MB, free: 6.246 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.644e-05/0.2712, allocations: 11.97 kB / 430.4 MB, free: 6.234 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.102e-05/0.2712, allocations: 7.969 kB / 430.4 MB, free: 6.227 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.643e-06/0.2712, allocations: 0 / 430.4 MB, free: 6.227 MB / 334.1 MB Notification: Performance of sorting global known variables: time 4.845e-05/0.2713, allocations: 83.28 kB / 430.5 MB, free: 6.145 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2713, allocations: 0 / 430.5 MB, free: 6.145 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004331/0.2717, allocations: 127.6 kB / 430.6 MB, free: 6.02 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.001554/0.2733, allocations: 1 MB / 431.6 MB, free: 5.082 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 6.635e-05/0.2733, allocations: 7.938 kB / 431.6 MB, free: 5.074 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.185e-06/0.2733, allocations: 4 kB / 431.6 MB, free: 5.07 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 5.3e-06/0.2733, allocations: 0 / 431.6 MB, free: 5.07 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001443/0.2735, allocations: 4 kB / 431.6 MB, free: 5.066 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001125/0.2746, allocations: 1.158 MB / 432.8 MB, free: 3.828 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.287e-05/0.2747, allocations: 63.2 kB / 432.9 MB, free: 3.746 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 2.706e-05/0.2747, allocations: 7.938 kB / 432.9 MB, free: 3.738 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.34e-05/0.2747, allocations: 15.42 kB / 432.9 MB, free: 3.723 MB / 334.1 MB Notification: Performance of SimCode: time 3.1e-07/0.2747, allocations: 0 / 432.9 MB, free: 3.723 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03302/0.3077, allocations: 4.456 MB / 437.3 MB, free: 15.39 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.58/10.89, allocations: 8.906 kB / 437.3 MB, free: 15.39 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.19653356494382]