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.002153/0.002153, allocations: 111.1 kB / 20.44 MB, free: 1.176 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.002523/0.002523, allocations: 203.6 kB / 23.73 MB, free: 4.379 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.451/1.451, allocations: 230.6 MB / 257.5 MB, free: 7.797 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.001588/0.001588, allocations: 39.94 kB / 377.7 MB, free: 3.09 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3162/0.3178, allocations: 53.37 MB / 431 MB, free: 6.672 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.002663/0.3205, allocations: 1.215 MB / 432.3 MB, free: 5.453 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003716/0.3242, allocations: 2.092 MB / 434.4 MB, free: 3.352 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.824e-05/0.3242, allocations: 0 / 434.4 MB, free: 3.352 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 1.641e-05/0.3243, allocations: 0 / 434.4 MB, free: 3.352 MB / 334.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.001336/0.3256, allocations: 474.5 kB / 434.8 MB, free: 2.887 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 2.704e-05/0.3256, allocations: 15.92 kB / 434.8 MB, free: 2.871 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 4.585e-05/0.3257, allocations: 4 kB / 434.8 MB, free: 2.867 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.911e-05/0.3257, allocations: 4 kB / 434.8 MB, free: 2.863 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.587e-05/0.3257, allocations: 7.938 kB / 434.8 MB, free: 2.855 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003737/0.3261, allocations: 11.92 kB / 434.9 MB, free: 2.844 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.161e-05/0.3261, allocations: 0 / 434.9 MB, free: 2.844 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008356/0.3269, allocations: 0.4995 MB / 435.4 MB, free: 2.344 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 1.558e-05/0.327, allocations: 3.984 kB / 435.4 MB, free: 2.34 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 2.047e-05/0.327, allocations: 4 kB / 435.4 MB, free: 2.336 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005912/0.3276, allocations: 379.5 kB / 435.7 MB, free: 1.969 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.788e-06/0.3276, allocations: 0 / 435.7 MB, free: 1.969 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.3276, allocations: 0 / 435.7 MB, free: 1.969 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.732e-06/0.3276, allocations: 0 / 435.7 MB, free: 1.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.0005503/0.3281, allocations: 345.4 kB / 436.1 MB, free: 1.602 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.633e-05/0.3282, allocations: 12.03 kB / 436.1 MB, free: 1.59 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.815e-05/0.3283, allocations: 110 kB / 436.2 MB, free: 1.473 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001313/0.3284, allocations: 84.17 kB / 436.3 MB, free: 1.391 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000223/0.3286, allocations: 185.8 kB / 436.5 MB, free: 1.184 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.796e-05/0.3287, allocations: 154.9 kB / 436.6 MB, free: 1.031 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.347e-05/0.3288, allocations: 154.5 kB / 436.8 MB, free: 0.8789 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.503e-05/0.3289, allocations: 101 kB / 436.9 MB, free: 0.7734 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.888e-05/0.329, allocations: 75.28 kB / 436.9 MB, free: 0.6992 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.986e-05/0.3291, allocations: 150.6 kB / 437.1 MB, free: 0.5508 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.594e-05/0.3292, allocations: 158.6 kB / 437.2 MB, free: 404 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.381e-05/0.3292, allocations: 162.5 kB / 437.4 MB, free: 240 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003933/0.3296, allocations: 417 kB / 437.8 MB, free: 15.79 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001252/0.3298, allocations: 169.1 kB / 438 MB, free: 15.61 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.168e-05/0.3298, allocations: 80.14 kB / 438 MB, free: 15.53 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.537e-05/0.3299, allocations: 79.28 kB / 438.1 MB, free: 15.45 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002203/0.3301, allocations: 47.34 kB / 438.2 MB, free: 15.39 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 2.915e-06/0.3301, allocations: 0 / 438.2 MB, free: 15.39 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001591/0.3303, allocations: 33.7 kB / 438.2 MB, free: 15.35 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.28e-05/0.3303, allocations: 51.53 kB / 438.2 MB, free: 15.29 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001506/0.3305, allocations: 117.8 kB / 438.4 MB, free: 15.16 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.455e-05/0.3305, allocations: 29.64 kB / 438.4 MB, free: 15.13 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.134e-05/0.3305, allocations: 80.14 kB / 438.5 MB, free: 15.05 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.185e-05/0.3306, allocations: 7.953 kB / 438.5 MB, free: 15.04 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.174e-05/0.3306, allocations: 13.66 kB / 438.5 MB, free: 15.02 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002016/0.3308, allocations: 314.8 kB / 438.8 MB, free: 14.7 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.49e-05/0.3308, allocations: 8 kB / 438.8 MB, free: 14.7 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.862e-06/0.3308, allocations: 4 kB / 438.8 MB, free: 14.69 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.203e-05/0.3309, allocations: 8.859 kB / 438.8 MB, free: 14.68 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.2e-06/0.3309, allocations: 8 kB / 438.8 MB, free: 14.67 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.088e-05/0.3309, allocations: 29.7 kB / 438.9 MB, free: 14.64 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.83e-05/0.3309, allocations: 4 kB / 438.9 MB, free: 14.63 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.751e-06/0.3309, allocations: 0 / 438.9 MB, free: 14.63 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.973e-05/0.331, allocations: 4 kB / 438.9 MB, free: 14.63 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.703e-05/0.331, allocations: 0 / 438.9 MB, free: 14.63 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.164e-05/0.331, allocations: 7.922 kB / 438.9 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.79e-05/0.331, allocations: 0 / 438.9 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.103e-06/0.331, allocations: 0 / 438.9 MB, free: 14.62 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 0.0001149/0.3311, allocations: 117.7 kB / 439 MB, free: 14.5 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.326e-05/0.3312, allocations: 8.031 kB / 439 MB, free: 14.49 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.208e-05/0.3312, allocations: 7.109 kB / 439 MB, free: 14.48 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.006e-06/0.3312, allocations: 0 / 439 MB, free: 14.48 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.3312, allocations: 0 / 439 MB, free: 14.48 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.915e-06/0.3312, allocations: 0 / 439 MB, free: 14.48 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001504/0.3314, allocations: 128.7 kB / 439.1 MB, free: 14.31 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.3314, allocations: 0 / 439.1 MB, free: 14.31 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.056e-06/0.3314, allocations: 0 / 439.1 MB, free: 14.31 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.453e-06/0.3314, allocations: 4 kB / 439.1 MB, free: 14.31 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.582e-06/0.3314, allocations: 0 / 439.1 MB, free: 14.31 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.323e-06/0.3314, allocations: 0 / 439.1 MB, free: 14.31 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.3314, allocations: 4 kB / 439.1 MB, free: 14.3 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.822e-05/0.3315, allocations: 65.06 kB / 439.2 MB, free: 14.22 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.208e-06/0.3315, allocations: 0 / 439.2 MB, free: 14.22 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.661e-05/0.3315, allocations: 3.938 kB / 439.2 MB, free: 14.22 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.295e-05/0.3315, allocations: 0 / 439.2 MB, free: 14.22 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.413e-05/0.3315, allocations: 4 kB / 439.2 MB, free: 14.21 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.653e-06/0.3315, allocations: 3.938 kB / 439.2 MB, free: 14.21 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.341e-05/0.3316, allocations: 87.27 kB / 439.3 MB, free: 14.12 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3316, allocations: 0 / 439.3 MB, free: 14.12 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006504/0.3322, allocations: 147.5 kB / 439.4 MB, free: 13.98 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.001779/0.334, allocations: 1.003 MB / 440.4 MB, free: 13.03 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 8.264e-05/0.3341, allocations: 7.938 kB / 440.5 MB, free: 13.02 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.3341, allocations: 0 / 440.5 MB, free: 13.02 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 5.23e-06/0.3341, allocations: 4.062 kB / 440.5 MB, free: 13.02 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001663/0.3343, allocations: 4 kB / 440.5 MB, free: 13.02 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001307/0.3356, allocations: 1.154 MB / 441.6 MB, free: 11.78 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.068e-05/0.3356, allocations: 59.34 kB / 441.7 MB, free: 11.7 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.095e-05/0.3357, allocations: 11.98 kB / 441.7 MB, free: 11.69 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.514e-05/0.3357, allocations: 15.38 kB / 441.7 MB, free: 11.68 MB / 350.1 MB Notification: Performance of SimCode: time 4.01e-07/0.3357, allocations: 128 / 441.7 MB, free: 11.68 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03966/0.3754, allocations: 4.896 MB / 446.6 MB, free: 6.906 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.5/11.87, allocations: 11.55 kB / 446.6 MB, free: 6.898 MB / 350.1 MB " [Timeout remaining time 648] (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 & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Utilities.Examples.readRealParameterModel_res.csv --start-time 0 --stop-time 1.01 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000201919 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.csv","/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: 14.475318045995664]