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.001328/0.001328, allocations: 120.1 kB / 17.79 MB, free: 5.25 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.001391/0.001391, allocations: 194.8 kB / 20.73 MB, free: 2.312 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.435/1.435, allocations: 225.6 MB / 249.1 MB, free: 3.594 MB / 190.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.001615/0.001615, allocations: 56 kB / 365.6 MB, free: 0.8633 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09819/0.09981, allocations: 52.14 MB / 417.8 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.00234/0.1021, allocations: 1.186 MB / 418.9 MB, free: 11.43 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003051/0.1052, allocations: 1.979 MB / 420.9 MB, free: 9.441 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.925e-05/0.1052, allocations: 0 / 420.9 MB, free: 9.441 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.387e-05/0.1052, allocations: 4 kB / 420.9 MB, free: 9.438 MB / 350.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.001082/0.1063, allocations: 438 kB / 421.3 MB, free: 9.012 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 1.875e-05/0.1063, allocations: 0 / 421.3 MB, free: 9.012 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.8e-05/0.1064, allocations: 15.94 kB / 421.4 MB, free: 8.996 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.46e-05/0.1064, allocations: 7.984 kB / 421.4 MB, free: 8.988 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.921e-05/0.1064, allocations: 0 / 421.4 MB, free: 8.988 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002427/0.1067, allocations: 15.92 kB / 421.4 MB, free: 8.973 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.574e-06/0.1067, allocations: 0 / 421.4 MB, free: 8.973 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006757/0.1074, allocations: 479.4 kB / 421.9 MB, free: 8.504 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.004e-05/0.1074, allocations: 0 / 421.9 MB, free: 8.504 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.059e-05/0.1074, allocations: 3.984 kB / 421.9 MB, free: 8.5 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000479/0.1079, allocations: 339.2 kB / 422.2 MB, free: 8.168 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.1079, allocations: 3.938 kB / 422.2 MB, free: 8.164 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.1079, allocations: 4 kB / 422.2 MB, free: 8.16 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.83e-06/0.1079, allocations: 0 / 422.2 MB, free: 8.16 MB / 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.0004968/0.1084, allocations: 414.6 kB / 422.6 MB, free: 7.707 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.694e-05/0.1084, allocations: 12.03 kB / 422.6 MB, free: 7.695 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.951e-05/0.1085, allocations: 106 kB / 422.7 MB, free: 7.582 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.22e-05/0.1085, allocations: 80.16 kB / 422.8 MB, free: 7.504 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001903/0.1087, allocations: 251.6 kB / 423 MB, free: 7.219 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.1e-05/0.1088, allocations: 154.9 kB / 423.2 MB, free: 7.066 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.81e-05/0.1089, allocations: 154.5 kB / 423.3 MB, free: 6.914 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.588e-05/0.1089, allocations: 101 kB / 423.4 MB, free: 6.809 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.817e-05/0.109, allocations: 75.28 kB / 423.5 MB, free: 6.734 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.381e-05/0.109, allocations: 150.6 kB / 423.7 MB, free: 6.586 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.409e-05/0.1091, allocations: 150.6 kB / 423.8 MB, free: 6.438 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.716e-05/0.1092, allocations: 162.5 kB / 424 MB, free: 6.277 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003131/0.1095, allocations: 445.9 kB / 424.4 MB, free: 5.793 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.431e-05/0.1096, allocations: 173.1 kB / 424.6 MB, free: 5.613 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.28e-05/0.1096, allocations: 80.14 kB / 424.7 MB, free: 5.531 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.939e-05/0.1097, allocations: 79.28 kB / 424.7 MB, free: 5.453 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001529/0.1098, allocations: 51.34 kB / 424.8 MB, free: 5.391 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 2.064e-06/0.1098, allocations: 0 / 424.8 MB, free: 5.391 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.000126/0.1099, allocations: 29.7 kB / 424.8 MB, free: 5.355 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.407e-05/0.11, allocations: 51.41 kB / 424.9 MB, free: 5.293 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.492e-05/0.1101, allocations: 105.8 kB / 425 MB, free: 5.18 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.414e-05/0.1101, allocations: 29.83 kB / 425 MB, free: 5.145 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.826e-05/0.1101, allocations: 80.14 kB / 425.1 MB, free: 5.062 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.149e-05/0.1102, allocations: 0 / 425.1 MB, free: 5.062 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.82e-05/0.1102, allocations: 17.72 kB / 425.1 MB, free: 5.039 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001385/0.1103, allocations: 310.8 kB / 425.4 MB, free: 4.727 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.705e-06/0.1103, allocations: 0 / 425.4 MB, free: 4.727 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.183e-06/0.1103, allocations: 3.938 kB / 425.4 MB, free: 4.723 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.281e-05/0.1104, allocations: 12.95 kB / 425.4 MB, free: 4.707 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.547e-06/0.1104, allocations: 7.938 kB / 425.4 MB, free: 4.699 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.666e-05/0.1104, allocations: 37.7 kB / 425.5 MB, free: 4.656 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.227e-05/0.1104, allocations: 4 kB / 425.5 MB, free: 4.652 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.536e-06/0.1104, allocations: 3.938 kB / 425.5 MB, free: 4.648 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.153e-05/0.1104, allocations: 0 / 425.5 MB, free: 4.648 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.989e-05/0.1105, allocations: 0 / 425.5 MB, free: 4.648 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.727e-06/0.1105, allocations: 0 / 425.5 MB, free: 4.648 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.596e-05/0.1105, allocations: 0 / 425.5 MB, free: 4.648 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.404e-06/0.1105, allocations: 4 kB / 425.5 MB, free: 4.645 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 9.247e-05/0.1106, allocations: 126.4 kB / 425.6 MB, free: 4.512 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.16e-05/0.1106, allocations: 11.83 kB / 425.6 MB, free: 4.5 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.652e-05/0.1106, allocations: 7.312 kB / 425.6 MB, free: 4.492 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.097e-06/0.1106, allocations: 3.984 kB / 425.6 MB, free: 4.488 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.046e-06/0.1106, allocations: 0 / 425.6 MB, free: 4.488 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.154e-06/0.1106, allocations: 0 / 425.6 MB, free: 4.488 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001445/0.1108, allocations: 161.6 kB / 425.8 MB, free: 4.281 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.02e-07/0.1108, allocations: 0 / 425.8 MB, free: 4.281 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.22e-06/0.1108, allocations: 4 kB / 425.8 MB, free: 4.277 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.423e-06/0.1108, allocations: 0 / 425.8 MB, free: 4.277 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.668e-06/0.1108, allocations: 4 kB / 425.8 MB, free: 4.273 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.52e-07/0.1108, allocations: 0 / 425.8 MB, free: 4.273 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.92e-07/0.1108, allocations: 0 / 425.8 MB, free: 4.273 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.542e-05/0.1109, allocations: 65.06 kB / 425.8 MB, free: 4.191 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.004e-05/0.1109, allocations: 77.11 kB / 425.9 MB, free: 4.098 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.123e-05/0.1109, allocations: 0 / 425.9 MB, free: 4.098 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.276e-05/0.1109, allocations: 0 / 425.9 MB, free: 4.098 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.869e-05/0.111, allocations: 8.031 kB / 425.9 MB, free: 4.09 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.663e-06/0.111, allocations: 0 / 425.9 MB, free: 4.09 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.83e-05/0.111, allocations: 87.2 kB / 426 MB, free: 4.004 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.111, allocations: 0 / 426 MB, free: 4.004 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004314/0.1114, allocations: 131.6 kB / 426.1 MB, free: 3.875 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.001419/0.1129, allocations: 0.9729 MB / 427.1 MB, free: 2.949 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 7.708e-05/0.1129, allocations: 4 kB / 427.1 MB, free: 2.945 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.1129, allocations: 4.062 kB / 427.1 MB, free: 2.941 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.578e-06/0.1129, allocations: 7.922 kB / 427.1 MB, free: 2.934 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001332/0.1131, allocations: 10.41 kB / 427.1 MB, free: 2.926 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00112/0.1142, allocations: 1.146 MB / 428.3 MB, free: 1.699 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003106/0.1145, allocations: 0.6766 MB / 429 MB, free: 0.9961 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.965e-05/0.1145, allocations: 7.984 kB / 429 MB, free: 0.9883 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.39e-05/0.1146, allocations: 19.42 kB / 429 MB, free: 0.9688 MB / 350.1 MB Notification: Performance of SimCode: time 2.91e-07/0.1146, allocations: 0 / 429 MB, free: 0.9688 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03723/0.1518, allocations: 3.942 MB / 432.9 MB, free: 13.11 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.193/8.345, allocations: 10.36 kB / 432.9 MB, free: 13.11 MB / 366.1 MB " [Timeout remaining time 652] (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 & python3 -m fmpy simulate --output-file Modelica_4.0.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_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.csv","/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: 10.828231227118522]