Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Utilities.Examples.readRealParameterModel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001266/0.001266, allocations: 124.4 kB / 17.79 MB, free: 5.266 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001409/0.001409, allocations: 199.3 kB / 20.74 MB, free: 2.32 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.417/1.417, allocations: 230.6 MB / 254.1 MB, free: 15.11 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Utilities.Examples.readRealParameterModel,fileNamePrefix="Modelica_4_1_0_Modelica_Utilities_Examples_readRealParameterModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Utilities.Examples.readRealParameterModel,fileNamePrefix="Modelica_4_1_0_Modelica_Utilities_Examples_readRealParameterModel",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001619/0.001619, allocations: 51.92 kB / 373 MB, free: 10.27 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09958/0.1012, allocations: 53.32 MB / 426.3 MB, free: 4.848 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.002342/0.1035, allocations: 1.21 MB / 427.5 MB, free: 3.629 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003247/0.1068, allocations: 2.094 MB / 429.6 MB, free: 1.523 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.037e-05/0.1068, allocations: 0 / 429.6 MB, free: 1.523 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.907e-05/0.1068, allocations: 0 / 429.6 MB, free: 1.523 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/Utilities/Examples.mo:279:3-378: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.001256/0.1081, allocations: 481.2 kB / 430.1 MB, free: 1.055 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 2.721e-05/0.1081, allocations: 7.984 kB / 430.1 MB, free: 1.047 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.066e-05/0.1082, allocations: 11.94 kB / 430.1 MB, free: 1.035 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.505e-05/0.1082, allocations: 3.938 kB / 430.1 MB, free: 1.031 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.846e-05/0.1082, allocations: 4 kB / 430.1 MB, free: 1.027 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.201e-05/0.1083, allocations: 7.984 kB / 430.1 MB, free: 1.02 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.848e-06/0.1083, allocations: 0 / 430.1 MB, free: 1.02 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007875/0.1091, allocations: 0.519 MB / 430.6 MB, free: 0.5 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.138e-05/0.1091, allocations: 0 / 430.6 MB, free: 0.5 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.425e-05/0.1091, allocations: 11.94 kB / 430.6 MB, free: 500 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005378/0.1097, allocations: 379.1 kB / 431 MB, free: 120 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.982e-06/0.1097, allocations: 3.984 kB / 431 MB, free: 116 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.1097, allocations: 0 / 431 MB, free: 116 kB / 350.1 MB Notification: Performance of Transformations before backend: time 4.919e-06/0.1097, allocations: 0 / 431 MB, free: 116 kB / 350.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.1735/0.2832, allocations: 422.7 kB / 431.4 MB, free: 10.94 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.874e-05/0.2832, allocations: 10.78 kB / 431.4 MB, free: 10.94 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.523e-05/0.2833, allocations: 106.8 kB / 431.5 MB, free: 10.82 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.411e-05/0.2833, allocations: 82.86 kB / 431.6 MB, free: 10.75 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001067/0.2834, allocations: 243.9 kB / 431.8 MB, free: 10.48 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.226e-05/0.2834, allocations: 155.6 kB / 432 MB, free: 10.33 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.583e-05/0.2835, allocations: 151.2 kB / 432.1 MB, free: 10.18 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 3.954e-05/0.2835, allocations: 103.9 kB / 432.2 MB, free: 10.07 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.492e-05/0.2835, allocations: 80.06 kB / 432.3 MB, free: 9.996 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.308e-05/0.2835, allocations: 156.3 kB / 432.5 MB, free: 9.848 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.676e-05/0.2835, allocations: 150.6 kB / 432.6 MB, free: 9.699 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.121e-05/0.2836, allocations: 152.2 kB / 432.8 MB, free: 9.551 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002014/0.2838, allocations: 450.3 kB / 433.2 MB, free: 9.074 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.074e-05/0.2838, allocations: 167.5 kB / 433.4 MB, free: 8.902 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.857e-05/0.2838, allocations: 81.41 kB / 433.4 MB, free: 8.82 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.552e-05/0.2839, allocations: 77.12 kB / 433.5 MB, free: 8.746 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001777/0.284, allocations: 54.72 kB / 433.6 MB, free: 8.695 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 2.084e-06/0.284, allocations: 1.219 kB / 433.6 MB, free: 8.695 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001336/0.2842, allocations: 36 kB / 433.6 MB, free: 8.664 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.634e-05/0.2842, allocations: 52.81 kB / 433.7 MB, free: 8.602 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.803e-05/0.2843, allocations: 104.9 kB / 433.8 MB, free: 8.504 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.101e-06/0.2843, allocations: 25.7 kB / 433.8 MB, free: 8.473 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.979e-05/0.2843, allocations: 84.52 kB / 433.9 MB, free: 8.391 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.535e-05/0.2843, allocations: 5.656 kB / 433.9 MB, free: 8.387 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.584e-05/0.2843, allocations: 16.77 kB / 433.9 MB, free: 8.371 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.398e-05/0.2844, allocations: 312.3 kB / 434.2 MB, free: 8.059 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.536e-06/0.2844, allocations: 0.7812 kB / 434.2 MB, free: 8.059 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.59e-06/0.2844, allocations: 1.422 kB / 434.2 MB, free: 8.059 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.034e-05/0.2844, allocations: 9.047 kB / 434.2 MB, free: 8.051 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.2844, allocations: 2.906 kB / 434.2 MB, free: 8.051 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.884e-05/0.2845, allocations: 44.12 kB / 434.3 MB, free: 8.02 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.683e-05/0.2845, allocations: 9.25 kB / 434.3 MB, free: 8.016 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.891e-06/0.2845, allocations: 1.125 kB / 434.3 MB, free: 8.016 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.553e-05/0.2845, allocations: 0.5156 kB / 434.3 MB, free: 8.016 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.279e-05/0.2845, allocations: 1.688 kB / 434.3 MB, free: 8.016 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.501e-06/0.2845, allocations: 1.891 kB / 434.3 MB, free: 8.016 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.826e-05/0.2846, allocations: 2.125 kB / 434.3 MB, free: 8.016 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.081e-06/0.2846, allocations: 0.5625 kB / 434.3 MB, free: 8.016 MB / 350.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 4.834e-05/0.2846, allocations: 110.7 kB / 434.4 MB, free: 7.902 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.132e-05/0.2846, allocations: 8.438 kB / 434.4 MB, free: 7.898 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.521e-05/0.2846, allocations: 5.359 kB / 434.4 MB, free: 7.891 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.673e-06/0.2846, allocations: 0.9688 kB / 434.4 MB, free: 7.891 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.857e-06/0.2847, allocations: 0 / 434.4 MB, free: 7.891 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.846e-06/0.2847, allocations: 4.344 kB / 434.4 MB, free: 7.891 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.066e-05/0.2847, allocations: 154.8 kB / 434.6 MB, free: 7.703 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.32e-07/0.2847, allocations: 0 / 434.6 MB, free: 7.703 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.177e-06/0.2847, allocations: 0.5156 kB / 434.6 MB, free: 7.703 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.044e-06/0.2847, allocations: 4.625 kB / 434.6 MB, free: 7.699 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.182e-06/0.2847, allocations: 4.688 kB / 434.6 MB, free: 7.699 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.92e-07/0.2847, allocations: 0 / 434.6 MB, free: 7.699 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.62e-07/0.2847, allocations: 5 kB / 434.6 MB, free: 7.699 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.5e-05/0.2848, allocations: 56.73 kB / 434.6 MB, free: 7.637 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.773e-05/0.2848, allocations: 82.58 kB / 434.7 MB, free: 7.539 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.393e-05/0.2848, allocations: 1.297 kB / 434.7 MB, free: 7.539 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.483e-05/0.2849, allocations: 2.188 kB / 434.7 MB, free: 7.539 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.061e-05/0.2849, allocations: 1.781 kB / 434.7 MB, free: 7.539 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.643e-06/0.2849, allocations: 3.062 kB / 434.7 MB, free: 7.539 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.997e-05/0.2849, allocations: 85.7 kB / 434.8 MB, free: 7.461 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2849, allocations: 1.281 kB / 434.8 MB, free: 7.461 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005683/0.2855, allocations: 147.4 kB / 434.9 MB, free: 7.449 MB / 350.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.001297/0.2868, allocations: 0.9814 MB / 435.9 MB, free: 6.797 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 7.383e-05/0.2868, allocations: 8.156 kB / 435.9 MB, free: 6.797 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.2868, allocations: 0 / 435.9 MB, free: 6.797 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 6.693e-06/0.2868, allocations: 6.906 kB / 435.9 MB, free: 6.797 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001322/0.287, allocations: 2.812 kB / 435.9 MB, free: 6.797 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007404/0.2877, allocations: 1.161 MB / 437.1 MB, free: 5.695 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.303e-05/0.2878, allocations: 0.6765 MB / 437.8 MB, free: 5 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.185e-05/0.2878, allocations: 11.05 kB / 437.8 MB, free: 4.996 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.965e-05/0.2879, allocations: 15.09 kB / 437.8 MB, free: 4.988 MB / 350.1 MB Notification: Performance of SimCode: time 2.91e-07/0.2879, allocations: 0 / 437.8 MB, free: 4.988 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03092/0.3188, allocations: 4.351 MB / 442.2 MB, free: 4.324 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.85/8.169, allocations: 6.641 kB / 442.2 MB, free: 4.32 MB / 350.1 MB " [Timeout remaining time 652] (rm -f Modelica_4.1.0_Modelica.Utilities.Examples.readRealParameterModel.pipe ; mkfifo Modelica_4.1.0_Modelica.Utilities.Examples.readRealParameterModel.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Utilities.Examples.readRealParameterModel.pipe >> ../files/Modelica_4.1.0_Modelica.Utilities.Examples.readRealParameterModel.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Utilities.Examples.readRealParameterModel_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Utilities_Examples_readRealParameterModel_fmu --startTime=0 --stopTime=1.01 --stepSize=0.000201919 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Utilities_Examples_readRealParameterModel.fmu > Modelica_4.1.0_Modelica.Utilities.Examples.readRealParameterModel.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Utilities.Examples.readRealParameterModel_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Utilities/Examples/readRealParameterModel/readRealParameterModel.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 10.468094488140196]