Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.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.0008902/0.0008902, allocations: 79.69 kB / 20.67 MB, free: 3.891 MB / 18.57 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.001567/0.001567, allocations: 170 kB / 23.95 MB, free: 0.6133 MB / 18.57 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 0.9411/0.9411, allocations: 177.1 MB / 204.3 MB, free: 5.719 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2532/0.2532, allocations: 32.79 MB / 293.5 MB, free: 1.215 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) 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(ModelicaTest.Utilities.TestReadFile,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Utilities_TestReadFile",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestReadFile,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Utilities_TestReadFile",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.994e-06/1.994e-06, allocations: 0 / 439.5 MB, free: 4.289 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.406e-05/2.605e-05, allocations: 7.547 kB / 439.6 MB, free: 4.281 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.001079/0.001105, allocations: 489 kB / 440 MB, free: 3.805 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008342/0.00194, allocations: 0.8766 MB / 440.9 MB, free: 2.926 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.356e-05/0.001963, allocations: 0 / 440.9 MB, free: 2.926 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 1.609e-05/0.001979, allocations: 4 kB / 440.9 MB, free: 2.922 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002005/0.00218, allocations: 11.92 kB / 440.9 MB, free: 2.91 MB / 410.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Utilities.mo:323:3-363:15:writable] Warning: Pure function 'ModelicaTest.Utilities.ReadFile' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.0005107/0.00269, allocations: 56.38 kB / 441 MB, free: 2.859 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 5.677e-05/0.002747, allocations: 4 kB / 441 MB, free: 2.855 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.412e-05/0.002781, allocations: 4 kB / 441 MB, free: 2.852 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.111e-05/0.002812, allocations: 3.984 kB / 441 MB, free: 2.848 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.354e-05/0.002856, allocations: 3.984 kB / 441 MB, free: 2.844 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 8.907e-06/0.002865, allocations: 4 kB / 441 MB, free: 2.84 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001018/0.002967, allocations: 51.89 kB / 441 MB, free: 2.789 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 8.285e-06/0.002975, allocations: 0 / 441 MB, free: 2.789 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 1.886e-05/0.002994, allocations: 0 / 441 MB, free: 2.789 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001427/0.003136, allocations: 63.8 kB / 441.1 MB, free: 2.727 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.236e-06/0.00314, allocations: 4 kB / 441.1 MB, free: 2.723 MB / 410.7 MB Notification: Performance of FrontEnd: time 9.12e-07/0.003141, allocations: 0 / 441.1 MB, free: 2.723 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.799e-06/0.003145, allocations: 0 / 441.1 MB, free: 2.723 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0003684/0.003514, allocations: 280 kB / 441.4 MB, free: 2.41 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.756e-05/0.003551, allocations: 8.031 kB / 441.4 MB, free: 2.402 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.497e-05/0.003576, allocations: 30.75 kB / 441.4 MB, free: 2.363 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.251e-05/0.003599, allocations: 4.938 kB / 441.4 MB, free: 2.359 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.604e-05/0.003675, allocations: 105.7 kB / 441.5 MB, free: 2.23 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.979e-06/0.003685, allocations: 384 / 441.5 MB, free: 2.23 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.183e-06/0.003692, allocations: 4.375 kB / 441.5 MB, free: 2.227 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.3e-05/0.003775, allocations: 63.94 kB / 441.6 MB, free: 2.152 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.602e-06/0.003782, allocations: 192 / 441.6 MB, free: 2.152 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.474e-06/0.003789, allocations: 384 / 441.6 MB, free: 2.152 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.751e-06/0.003795, allocations: 8.062 kB / 441.6 MB, free: 2.145 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.219e-05/0.003817, allocations: 33.7 kB / 441.6 MB, free: 2.105 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.722e-05/0.003914, allocations: 112.8 kB / 441.8 MB, free: 1.953 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.42e-05/0.003959, allocations: 52.23 kB / 441.8 MB, free: 1.887 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.946e-05/0.003998, allocations: 34.55 kB / 441.8 MB, free: 1.844 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.506e-06/0.004007, allocations: 4.062 kB / 441.8 MB, free: 1.84 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.791e-05/0.004044, allocations: 64.27 kB / 441.9 MB, free: 1.762 MB / 410.7 MB Notification: Performance of pre-optimization done (n=1): time 1.252e-06/0.004046, allocations: 0 / 441.9 MB, free: 1.762 MB / 410.7 MB Notification: Performance of matching and sorting (n=1): time 0.000186/0.004232, allocations: 114.8 kB / 442 MB, free: 1.625 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.038e-05/0.004272, allocations: 85.05 kB / 442.1 MB, free: 1.523 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.286e-05/0.004325, allocations: 93.86 kB / 442.2 MB, free: 1.422 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 8.616e-06/0.004333, allocations: 29.64 kB / 442.2 MB, free: 1.387 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.89e-05/0.004352, allocations: 84.08 kB / 442.3 MB, free: 1.301 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.354e-05/0.004366, allocations: 0 / 442.3 MB, free: 1.301 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.243e-05/0.004388, allocations: 13.72 kB / 442.3 MB, free: 1.281 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 7.346e-05/0.004462, allocations: 311.1 kB / 442.6 MB, free: 0.9688 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.845e-05/0.00448, allocations: 37.69 kB / 442.7 MB, free: 0.9258 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.294e-05/0.004493, allocations: 29.7 kB / 442.7 MB, free: 0.8906 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.227e-05/0.004525, allocations: 60.27 kB / 442.7 MB, free: 0.8164 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.784e-06/0.004527, allocations: 0 / 442.7 MB, free: 0.8164 MB / 410.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.427e-05/0.004582, allocations: 93.09 kB / 442.8 MB, free: 0.707 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.485e-05/0.004606, allocations: 29.7 kB / 442.9 MB, free: 0.6719 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.589e-06/0.004611, allocations: 4 kB / 442.9 MB, free: 0.668 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.177e-05/0.004623, allocations: 0 / 442.9 MB, free: 0.668 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.863e-06/0.004625, allocations: 3.938 kB / 442.9 MB, free: 0.6641 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.019e-06/0.00463, allocations: 8.031 kB / 442.9 MB, free: 0.6562 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.635e-05/0.004646, allocations: 7.938 kB / 442.9 MB, free: 0.6484 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.452e-06/0.004652, allocations: 0 / 442.9 MB, free: 0.6484 MB / 410.7 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 (result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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 6.108e-05/0.004714, allocations: 136.2 kB / 443 MB, free: 0.5 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.857e-06/0.004717, allocations: 0 / 443 MB, free: 0.5 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.006e-05/0.004727, allocations: 6.984 kB / 443 MB, free: 500 kB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.145e-06/0.00473, allocations: 4 kB / 443 MB, free: 496 kB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.781e-06/0.004735, allocations: 3.938 kB / 443 MB, free: 492 kB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.355e-06/0.004738, allocations: 0 / 443 MB, free: 492 kB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.39e-05/0.004792, allocations: 112.8 kB / 443.1 MB, free: 336 kB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.81e-07/0.004792, allocations: 4 kB / 443.1 MB, free: 332 kB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.41e-07/0.004793, allocations: 0 / 443.1 MB, free: 332 kB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.41e-07/0.004793, allocations: 4 kB / 443.2 MB, free: 328 kB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.372e-06/0.0048, allocations: 0 / 443.2 MB, free: 328 kB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.81e-07/0.0048, allocations: 0 / 443.2 MB, free: 328 kB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.115e-06/0.004803, allocations: 7.922 kB / 443.2 MB, free: 320 kB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.367e-05/0.004867, allocations: 112.5 kB / 443.3 MB, free: 176 kB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.639e-06/0.004871, allocations: 11.88 kB / 443.3 MB, free: 164 kB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.416e-06/0.00488, allocations: 4 kB / 443.3 MB, free: 160 kB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.462e-06/0.004886, allocations: 3.938 kB / 443.3 MB, free: 156 kB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.216e-05/0.004898, allocations: 3.969 kB / 443.3 MB, free: 152 kB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.364e-06/0.004901, allocations: 8 kB / 443.3 MB, free: 144 kB / 410.7 MB Notification: Performance of sorting global known variables: time 2.181e-05/0.004923, allocations: 83.22 kB / 443.4 MB, free: 60 kB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.004923, allocations: 0 / 443.4 MB, free: 60 kB / 410.7 MB Notification: Performance of remove unused functions: time 0.0001481/0.005071, allocations: 15.94 kB / 443.4 MB, free: 44 kB / 410.7 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 (result) * Number of discrete states: 1 (result) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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.1886/0.1937, allocations: 0.7457 MB / 444.1 MB, free: 45.83 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 8.119e-05/0.1938, allocations: 118.1 kB / 444.3 MB, free: 45.7 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.1938, allocations: 0 / 444.3 MB, free: 45.7 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 1.33e-05/0.1938, allocations: 80.08 kB / 444.3 MB, free: 45.61 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001011/0.1939, allocations: 8 kB / 444.3 MB, free: 45.61 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002321/0.1941, allocations: 149.4 kB / 444.5 MB, free: 45.45 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.252e-05/0.1941, allocations: 58.09 kB / 444.5 MB, free: 45.38 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 7.003e-06/0.1941, allocations: 1.781 kB / 444.5 MB, free: 45.38 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.724e-05/0.1942, allocations: 11.38 kB / 444.6 MB, free: 45.38 MB / 410.7 MB Notification: Performance of SimCode: time 8.01e-07/0.1942, allocations: 0 / 444.6 MB, free: 45.38 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0144/0.2086, allocations: 2.163 MB / 446.7 MB, free: 44.47 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.768/6.977, allocations: 9.016 kB / 446.7 MB, free: 44.47 MB / 410.7 MB " [Timeout remaining time 653] (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile_res.csv --start-time 0 --stop-time 0 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0 ModelicaTest_4_0_0_ModelicaTest_Utilities_TestReadFile.fmu > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestReadFile/TestReadFile.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Failed to open simulation result ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile_res.csv: Error: Error opening file: ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile_res.csv " [Timeout remaining time 660] "" Variables in the reference:time,result Variables in the result: [Calling sys.exit(0), Time elapsed: 9.103982026688755]