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.001235/0.001235, allocations: 123.2 kB / 17.79 MB, free: 5.246 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.002016/0.002016, allocations: 186.9 kB / 20.73 MB, free: 2.316 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.385/1.385, allocations: 225.6 MB / 249.1 MB, free: 3.617 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.001444/0.001444, allocations: 47.92 kB / 365.6 MB, free: 0.8945 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09698/0.09843, allocations: 52.14 MB / 417.7 MB, free: 12.66 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.002327/0.1008, allocations: 1.192 MB / 418.9 MB, free: 11.46 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003217/0.104, allocations: 1.987 MB / 420.9 MB, free: 9.461 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.585e-05/0.104, allocations: 0 / 420.9 MB, free: 9.461 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.291e-05/0.104, allocations: 0 / 420.9 MB, free: 9.461 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.001229/0.1053, allocations: 433 kB / 421.3 MB, free: 9.039 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 2.355e-05/0.1053, allocations: 8 kB / 421.3 MB, free: 9.031 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.03e-05/0.1053, allocations: 11.92 kB / 421.4 MB, free: 9.02 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.188e-05/0.1054, allocations: 4 kB / 421.4 MB, free: 9.016 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.763e-05/0.1054, allocations: 0 / 421.4 MB, free: 9.016 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001024/0.1055, allocations: 14.27 kB / 421.4 MB, free: 9.004 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.187e-06/0.1055, allocations: 0 / 421.4 MB, free: 9.004 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007149/0.1062, allocations: 479.4 kB / 421.8 MB, free: 8.535 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.211e-05/0.1062, allocations: 4 kB / 421.9 MB, free: 8.531 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.744e-05/0.1062, allocations: 7.969 kB / 421.9 MB, free: 8.523 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004809/0.1067, allocations: 339.2 kB / 422.2 MB, free: 8.191 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.958e-06/0.1067, allocations: 4 kB / 422.2 MB, free: 8.188 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.1067, allocations: 0 / 422.2 MB, free: 8.188 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.609e-06/0.1067, allocations: 0 / 422.2 MB, free: 8.188 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.0004695/0.1072, allocations: 410.6 kB / 422.6 MB, free: 7.738 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.694e-05/0.1072, allocations: 8.031 kB / 422.6 MB, free: 7.73 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.524e-05/0.1073, allocations: 110 kB / 422.7 MB, free: 7.613 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.649e-05/0.1074, allocations: 80.22 kB / 422.8 MB, free: 7.535 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001874/0.1076, allocations: 255.5 kB / 423 MB, free: 7.246 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.251e-05/0.1076, allocations: 154.9 kB / 423.2 MB, free: 7.094 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.135e-05/0.1077, allocations: 154.5 kB / 423.3 MB, free: 6.941 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.875e-05/0.1078, allocations: 101 kB / 423.4 MB, free: 6.836 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.333e-05/0.1078, allocations: 79.22 kB / 423.5 MB, free: 6.758 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.446e-05/0.1079, allocations: 150.6 kB / 423.7 MB, free: 6.609 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.242e-05/0.108, allocations: 154.6 kB / 423.8 MB, free: 6.457 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.448e-05/0.108, allocations: 158.5 kB / 424 MB, free: 6.301 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000326/0.1084, allocations: 445.9 kB / 424.4 MB, free: 5.816 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001057/0.1085, allocations: 173.1 kB / 424.6 MB, free: 5.637 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.04e-05/0.1085, allocations: 84.14 kB / 424.7 MB, free: 5.551 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.919e-05/0.1085, allocations: 79.28 kB / 424.7 MB, free: 5.473 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001732/0.1087, allocations: 47.34 kB / 424.8 MB, free: 5.414 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 2.244e-06/0.1087, allocations: 0 / 424.8 MB, free: 5.414 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001328/0.1089, allocations: 29.7 kB / 424.8 MB, free: 5.379 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.222e-05/0.1089, allocations: 55.41 kB / 424.9 MB, free: 5.312 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.124e-05/0.109, allocations: 106 kB / 425 MB, free: 5.199 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.315e-05/0.109, allocations: 25.7 kB / 425 MB, free: 5.168 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.285e-05/0.1091, allocations: 84.14 kB / 425.1 MB, free: 5.082 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.144e-05/0.1091, allocations: 0 / 425.1 MB, free: 5.082 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.853e-05/0.1091, allocations: 13.72 kB / 425.1 MB, free: 5.062 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001371/0.1092, allocations: 314.8 kB / 425.4 MB, free: 4.746 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.924e-06/0.1092, allocations: 0 / 425.4 MB, free: 4.746 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.164e-06/0.1093, allocations: 3.938 kB / 425.4 MB, free: 4.742 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.631e-05/0.1093, allocations: 20.97 kB / 425.4 MB, free: 4.719 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.456e-06/0.1093, allocations: 3.938 kB / 425.4 MB, free: 4.715 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.109e-05/0.1093, allocations: 33.64 kB / 425.5 MB, free: 4.676 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.369e-05/0.1094, allocations: 8 kB / 425.5 MB, free: 4.668 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.847e-06/0.1094, allocations: 0 / 425.5 MB, free: 4.668 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.225e-05/0.1094, allocations: 0 / 425.5 MB, free: 4.668 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.751e-05/0.1094, allocations: 0 / 425.5 MB, free: 4.668 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.122e-06/0.1094, allocations: 3.984 kB / 425.5 MB, free: 4.664 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.613e-05/0.1094, allocations: 0 / 425.5 MB, free: 4.664 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.359e-06/0.1094, allocations: 4.031 kB / 425.5 MB, free: 4.66 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.291e-05/0.1095, allocations: 122.4 kB / 425.6 MB, free: 4.531 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.066e-05/0.1095, allocations: 3.953 kB / 425.6 MB, free: 4.527 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.563e-05/0.1095, allocations: 11.06 kB / 425.6 MB, free: 4.516 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.097e-06/0.1095, allocations: 4 kB / 425.6 MB, free: 4.512 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.286e-06/0.1095, allocations: 0 / 425.6 MB, free: 4.512 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.874e-06/0.1095, allocations: 0 / 425.6 MB, free: 4.512 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00015/0.1097, allocations: 149.6 kB / 425.8 MB, free: 4.316 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.82e-07/0.1097, allocations: 0 / 425.8 MB, free: 4.316 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.976e-06/0.1097, allocations: 4 kB / 425.8 MB, free: 4.312 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.353e-06/0.1097, allocations: 4 kB / 425.8 MB, free: 4.309 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.719e-06/0.1097, allocations: 0 / 425.8 MB, free: 4.309 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.52e-07/0.1097, allocations: 0 / 425.8 MB, free: 4.309 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.81e-07/0.1097, allocations: 3.938 kB / 425.8 MB, free: 4.305 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.302e-05/0.1098, allocations: 65.06 kB / 425.8 MB, free: 4.223 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.928e-05/0.1098, allocations: 77.3 kB / 425.9 MB, free: 4.129 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.143e-05/0.1098, allocations: 0 / 425.9 MB, free: 4.129 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.445e-05/0.1099, allocations: 8.016 kB / 425.9 MB, free: 4.121 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.068e-05/0.1099, allocations: 3.984 kB / 425.9 MB, free: 4.117 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.633e-06/0.1099, allocations: 0 / 425.9 MB, free: 4.117 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.609e-05/0.1099, allocations: 91.22 kB / 426 MB, free: 4.027 MB / 350.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.1099, allocations: 0 / 426 MB, free: 4.027 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004207/0.1103, allocations: 123.6 kB / 426.1 MB, free: 3.906 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.001358/0.1117, allocations: 0.9793 MB / 427.1 MB, free: 2.977 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 7.742e-05/0.1118, allocations: 12 kB / 427.1 MB, free: 2.965 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.1118, allocations: 0 / 427.1 MB, free: 2.965 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.404e-06/0.1118, allocations: 3.938 kB / 427.1 MB, free: 2.961 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001344/0.1119, allocations: 11.88 kB / 427.1 MB, free: 2.949 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001111/0.113, allocations: 1.15 MB / 428.3 MB, free: 1.719 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003144/0.1133, allocations: 0.6766 MB / 429 MB, free: 1.016 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.737e-05/0.1134, allocations: 7.984 kB / 429 MB, free: 1.008 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.168e-05/0.1134, allocations: 19.42 kB / 429 MB, free: 0.9883 MB / 350.1 MB Notification: Performance of SimCode: time 3.31e-07/0.1134, allocations: 0 / 429 MB, free: 0.9883 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0282/0.1416, allocations: 3.937 MB / 432.9 MB, free: 13.14 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.798/7.939, allocations: 11.86 kB / 432.9 MB, free: 13.13 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_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Utilities/Examples/readRealParameterModel/readRealParameterModel.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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.206304419320077]