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.001429/0.001429, allocations: 117.8 kB / 18.49 MB, free: 4.566 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.001373/0.001373, allocations: 190.7 kB / 21.43 MB, free: 1.641 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.342/1.342, allocations: 225.6 MB / 249.8 MB, free: 3.621 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="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.001429/0.001429, allocations: 55.91 kB / 366.3 MB, free: 0.8711 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1013/0.1027, allocations: 52.14 MB / 418.5 MB, free: 12.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.002108/0.1048, allocations: 1.189 MB / 419.6 MB, free: 11.44 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00326/0.1081, allocations: 1.971 MB / 421.6 MB, free: 9.457 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.848e-05/0.1081, allocations: 0 / 421.6 MB, free: 9.457 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.608e-05/0.1081, allocations: 4 kB / 421.6 MB, free: 9.453 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.001215/0.1093, allocations: 446.6 kB / 422.1 MB, free: 9.016 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 2.092e-05/0.1093, allocations: 0 / 422.1 MB, free: 9.016 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.141e-05/0.1094, allocations: 7.938 kB / 422.1 MB, free: 9.008 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.096e-05/0.1094, allocations: 7.984 kB / 422.1 MB, free: 9 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.379e-05/0.1095, allocations: 7.984 kB / 422.1 MB, free: 8.992 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003309/0.1098, allocations: 7.938 kB / 422.1 MB, free: 8.984 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.065e-05/0.1098, allocations: 4 kB / 422.1 MB, free: 8.98 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006838/0.1105, allocations: 475.5 kB / 422.6 MB, free: 8.516 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.228e-05/0.1105, allocations: 7.984 kB / 422.6 MB, free: 8.508 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.243e-05/0.1105, allocations: 3.938 kB / 422.6 MB, free: 8.504 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004767/0.111, allocations: 339.2 kB / 422.9 MB, free: 8.172 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.404e-06/0.111, allocations: 0 / 422.9 MB, free: 8.172 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.92e-07/0.111, allocations: 0 / 422.9 MB, free: 8.172 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.288e-06/0.111, allocations: 0 / 422.9 MB, free: 8.172 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.0005237/0.1115, allocations: 414.6 kB / 423.3 MB, free: 7.719 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.553e-05/0.1116, allocations: 12.03 kB / 423.3 MB, free: 7.707 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.84e-05/0.1116, allocations: 75.47 kB / 423.4 MB, free: 7.633 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.312e-05/0.1117, allocations: 110 kB / 423.5 MB, free: 7.516 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.789e-05/0.1117, allocations: 76.22 kB / 423.6 MB, free: 7.441 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001998/0.1119, allocations: 255.6 kB / 423.8 MB, free: 7.152 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.428e-05/0.112, allocations: 154.7 kB / 424 MB, free: 7 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.235e-05/0.1121, allocations: 154.5 kB / 424.1 MB, free: 6.848 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.606e-05/0.1122, allocations: 101 kB / 424.2 MB, free: 6.742 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.604e-05/0.1122, allocations: 83.27 kB / 424.3 MB, free: 6.66 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.787e-05/0.1123, allocations: 150.6 kB / 424.4 MB, free: 6.512 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.631e-05/0.1123, allocations: 154.6 kB / 424.6 MB, free: 6.359 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.588e-05/0.1124, allocations: 150.6 kB / 424.7 MB, free: 6.211 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003424/0.1128, allocations: 445.9 kB / 425.2 MB, free: 5.727 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001179/0.1129, allocations: 181 kB / 425.4 MB, free: 5.539 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.973e-05/0.1129, allocations: 84.08 kB / 425.4 MB, free: 5.453 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.663e-05/0.113, allocations: 75.28 kB / 425.5 MB, free: 5.379 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001771/0.1131, allocations: 47.41 kB / 425.6 MB, free: 5.32 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.944e-06/0.1131, allocations: 4 kB / 425.6 MB, free: 5.316 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001539/0.1133, allocations: 33.64 kB / 425.6 MB, free: 5.277 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.504e-05/0.1133, allocations: 51.41 kB / 425.6 MB, free: 5.215 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001019/0.1134, allocations: 105.8 kB / 425.7 MB, free: 5.102 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.597e-05/0.1135, allocations: 25.7 kB / 425.8 MB, free: 5.07 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.23e-05/0.1135, allocations: 80.14 kB / 425.9 MB, free: 4.988 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.436e-05/0.1135, allocations: 0 / 425.9 MB, free: 4.988 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.329e-05/0.1136, allocations: 17.72 kB / 425.9 MB, free: 4.965 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001494/0.1137, allocations: 315 kB / 426.2 MB, free: 4.648 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.085e-06/0.1137, allocations: 0 / 426.2 MB, free: 4.648 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.355e-06/0.1137, allocations: 8 kB / 426.2 MB, free: 4.641 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.689e-05/0.1137, allocations: 16.72 kB / 426.2 MB, free: 4.621 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/0.1137, allocations: 0 / 426.2 MB, free: 4.621 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.191e-05/0.1138, allocations: 37.7 kB / 426.2 MB, free: 4.578 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.497e-05/0.1138, allocations: 4 kB / 426.2 MB, free: 4.574 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.508e-06/0.1138, allocations: 4.031 kB / 426.2 MB, free: 4.57 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.3e-05/0.1138, allocations: 4 kB / 426.2 MB, free: 4.566 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.804e-05/0.1139, allocations: 0 / 426.2 MB, free: 4.566 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.927e-06/0.1139, allocations: 0 / 426.2 MB, free: 4.566 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.507e-05/0.1139, allocations: 0 / 426.2 MB, free: 4.566 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.38e-06/0.1139, allocations: 4 kB / 426.3 MB, free: 4.562 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 8.177e-05/0.114, allocations: 118.4 kB / 426.4 MB, free: 4.438 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.15e-05/0.114, allocations: 3.953 kB / 426.4 MB, free: 4.434 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.426e-05/0.114, allocations: 7.125 kB / 426.4 MB, free: 4.426 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.824e-06/0.114, allocations: 0 / 426.4 MB, free: 4.426 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.046e-06/0.114, allocations: 4 kB / 426.4 MB, free: 4.422 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.024e-06/0.114, allocations: 0 / 426.4 MB, free: 4.422 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001437/0.1142, allocations: 157.6 kB / 426.5 MB, free: 4.219 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.72e-07/0.1142, allocations: 0 / 426.5 MB, free: 4.219 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.945e-06/0.1142, allocations: 0 / 426.5 MB, free: 4.219 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.226e-06/0.1142, allocations: 7.938 kB / 426.5 MB, free: 4.211 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.268e-06/0.1142, allocations: 0 / 426.5 MB, free: 4.211 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.72e-07/0.1142, allocations: 0 / 426.5 MB, free: 4.211 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.41e-07/0.1142, allocations: 0 / 426.5 MB, free: 4.211 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.625e-05/0.1142, allocations: 69.06 kB / 426.6 MB, free: 4.125 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.767e-05/0.1143, allocations: 77.11 kB / 426.7 MB, free: 4.031 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.109e-05/0.1143, allocations: 0 / 426.7 MB, free: 4.031 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.209e-05/0.1143, allocations: 0 / 426.7 MB, free: 4.031 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.282e-05/0.1143, allocations: 4 kB / 426.7 MB, free: 4.027 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.643e-06/0.1143, allocations: 3.938 kB / 426.7 MB, free: 4.023 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.564e-05/0.1144, allocations: 83.45 kB / 426.8 MB, free: 3.941 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1144, allocations: 0 / 426.8 MB, free: 3.941 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003984/0.1148, allocations: 131.6 kB / 426.9 MB, free: 3.812 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.001392/0.1162, allocations: 0.976 MB / 427.9 MB, free: 2.883 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 6.937e-05/0.1162, allocations: 4 kB / 427.9 MB, free: 2.879 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.1162, allocations: 0 / 427.9 MB, free: 2.879 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.194e-06/0.1162, allocations: 3.984 kB / 427.9 MB, free: 2.875 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001297/0.1164, allocations: 13.03 kB / 427.9 MB, free: 2.867 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001095/0.1175, allocations: 1.161 MB / 429.1 MB, free: 1.625 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003168/0.1178, allocations: 0.6766 MB / 429.7 MB, free: 0.9219 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.751e-05/0.1178, allocations: 11.98 kB / 429.8 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.291e-05/0.1178, allocations: 19.42 kB / 429.8 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of SimCode: time 2.81e-07/0.1178, allocations: 0 / 429.8 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02286/0.1407, allocations: 3.971 MB / 433.7 MB, free: 13.03 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.651/7.792, allocations: 10.42 kB / 433.8 MB, free: 13.02 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 & /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: 10.103501717967447]