Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.0009984/0.0009984, allocations: 79.7 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.001154/0.001154, allocations: 174.3 kB / 23.95 MB, free: 0.6094 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.9432/0.9432, allocations: 177.1 MB / 204.3 MB, free: 5.73 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2547/0.2547, allocations: 34.25 MB / 294.9 MB, free: 0.6992 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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_1_0_ModelicaTest_Utilities_TestReadFile",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestReadFile,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Utilities_TestReadFile",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.583e-06/1.583e-06, allocations: 0 / 442.1 MB, free: 1.684 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.828e-05/1.986e-05, allocations: 2.281 kB / 442.1 MB, free: 1.68 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.001117/0.001137, allocations: 497.7 kB / 442.6 MB, free: 1.199 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008758/0.002012, allocations: 0.8805 MB / 443.5 MB, free: 324 kB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.38e-05/0.002036, allocations: 0 / 443.5 MB, free: 324 kB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 1.697e-05/0.002053, allocations: 0 / 443.5 MB, free: 324 kB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002033/0.002256, allocations: 15.86 kB / 443.5 MB, free: 308 kB / 410.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/Utilities.mo:322:3-362: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.0004836/0.00274, allocations: 51.12 kB / 443.6 MB, free: 260 kB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 7.303e-05/0.002813, allocations: 3.984 kB / 443.6 MB, free: 256 kB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.009e-05/0.002853, allocations: 0 / 443.6 MB, free: 256 kB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.105e-05/0.002894, allocations: 11.88 kB / 443.6 MB, free: 244 kB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.803e-05/0.002942, allocations: 0 / 443.6 MB, free: 244 kB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 1.047e-05/0.002953, allocations: 0 / 443.6 MB, free: 244 kB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001113/0.003064, allocations: 59.88 kB / 443.6 MB, free: 184 kB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 9.408e-06/0.003073, allocations: 4 kB / 443.6 MB, free: 180 kB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 2.095e-05/0.003094, allocations: 4 kB / 443.7 MB, free: 176 kB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001686/0.003263, allocations: 59.84 kB / 443.7 MB, free: 116 kB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.615e-06/0.003266, allocations: 0 / 443.7 MB, free: 116 kB / 410.7 MB Notification: Performance of FrontEnd: time 1.273e-06/0.003267, allocations: 0 / 443.7 MB, free: 116 kB / 410.7 MB Notification: Performance of Transformations before backend: time 6.111e-06/0.003273, allocations: 0 / 443.7 MB, free: 116 kB / 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.1904/0.1937, allocations: 277.2 kB / 444 MB, free: 44.48 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.25e-05/0.1937, allocations: 8 kB / 444 MB, free: 44.48 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.224e-05/0.1938, allocations: 32.28 kB / 444 MB, free: 44.44 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.86e-05/0.1938, allocations: 3.75 kB / 444 MB, free: 44.44 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.503e-05/0.1939, allocations: 105.1 kB / 444.1 MB, free: 44.32 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.058e-05/0.1939, allocations: 8.438 kB / 444.1 MB, free: 44.32 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.992e-06/0.1939, allocations: 384 / 444.1 MB, free: 44.32 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.625e-05/0.1939, allocations: 59.31 kB / 444.2 MB, free: 44.25 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.933e-06/0.194, allocations: 1.688 kB / 444.2 MB, free: 44.25 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.122e-06/0.194, allocations: 3.125 kB / 444.2 MB, free: 44.25 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.508e-06/0.194, allocations: 4.125 kB / 444.2 MB, free: 44.25 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.652e-05/0.194, allocations: 31.05 kB / 444.2 MB, free: 44.22 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.713e-05/0.1941, allocations: 120.7 kB / 444.4 MB, free: 44.07 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.523e-05/0.1941, allocations: 42.94 kB / 444.4 MB, free: 44.01 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.314e-05/0.1941, allocations: 31.19 kB / 444.4 MB, free: 43.97 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.873e-06/0.1941, allocations: 2.656 kB / 444.4 MB, free: 43.97 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.261e-05/0.1941, allocations: 61.73 kB / 444.5 MB, free: 43.9 MB / 410.7 MB Notification: Performance of pre-optimization done (n=1): time 5.71e-07/0.1941, allocations: 2.625 kB / 444.5 MB, free: 43.9 MB / 410.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001458/0.1943, allocations: 121.2 kB / 444.6 MB, free: 43.78 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.39e-05/0.1943, allocations: 81.05 kB / 444.7 MB, free: 43.68 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.797e-05/0.1943, allocations: 96.53 kB / 444.8 MB, free: 43.58 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 5.981e-06/0.1943, allocations: 29.33 kB / 444.8 MB, free: 43.55 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.366e-06/0.1944, allocations: 80.14 kB / 444.9 MB, free: 43.47 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.511e-05/0.1944, allocations: 0.5625 kB / 444.9 MB, free: 43.47 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.119e-05/0.1944, allocations: 17.56 kB / 444.9 MB, free: 43.45 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.628e-05/0.1944, allocations: 313.7 kB / 445.2 MB, free: 43.14 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.296e-05/0.1944, allocations: 25.7 kB / 445.2 MB, free: 43.11 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.927e-06/0.1944, allocations: 29.3 kB / 445.3 MB, free: 43.08 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.434e-05/0.1945, allocations: 65.05 kB / 445.3 MB, free: 43.01 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.674e-06/0.1945, allocations: 0 / 445.3 MB, free: 43.01 MB / 410.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.073e-05/0.1945, allocations: 94.44 kB / 445.4 MB, free: 42.91 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.321e-05/0.1945, allocations: 32.45 kB / 445.5 MB, free: 42.88 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.608e-06/0.1945, allocations: 0 / 445.5 MB, free: 42.88 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.144e-05/0.1945, allocations: 2.719 kB / 445.5 MB, free: 42.88 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.42e-07/0.1945, allocations: 3.938 kB / 445.5 MB, free: 42.88 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.709e-06/0.1946, allocations: 3.906 kB / 445.5 MB, free: 42.88 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.754e-05/0.1946, allocations: 3.797 kB / 445.5 MB, free: 42.88 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.574e-06/0.1946, allocations: 3.438 kB / 445.5 MB, free: 42.88 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 3.92e-05/0.1946, allocations: 137.4 kB / 445.6 MB, free: 42.73 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.34e-06/0.1946, allocations: 6.156 kB / 445.6 MB, free: 42.73 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.145e-05/0.1946, allocations: 4.172 kB / 445.6 MB, free: 42.73 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.553e-06/0.1946, allocations: 0 / 445.6 MB, free: 42.73 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.977e-06/0.1946, allocations: 3.938 kB / 445.6 MB, free: 42.73 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.215e-06/0.1946, allocations: 2.844 kB / 445.6 MB, free: 42.73 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.158e-05/0.1947, allocations: 116.6 kB / 445.7 MB, free: 42.57 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.1947, allocations: 9.25 kB / 445.7 MB, free: 42.57 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.51e-07/0.1947, allocations: 0 / 445.7 MB, free: 42.57 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.62e-07/0.1947, allocations: 0 / 445.7 MB, free: 42.57 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.412e-06/0.1947, allocations: 1.375 kB / 445.7 MB, free: 42.57 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.032e-06/0.1947, allocations: 7.031 kB / 445.8 MB, free: 42.57 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.1947, allocations: 3.938 kB / 445.8 MB, free: 42.57 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.134e-05/0.1947, allocations: 120.9 kB / 445.9 MB, free: 42.44 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.426e-06/0.1948, allocations: 0.625 kB / 445.9 MB, free: 42.44 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.014e-05/0.1948, allocations: 2.875 kB / 445.9 MB, free: 42.44 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.594e-06/0.1948, allocations: 0 / 445.9 MB, free: 42.44 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.086e-05/0.1948, allocations: 4.562 kB / 445.9 MB, free: 42.44 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.066e-06/0.1948, allocations: 6.156 kB / 445.9 MB, free: 42.44 MB / 410.7 MB Notification: Performance of sorting global known variables: time 1.129e-05/0.1948, allocations: 75.97 kB / 446 MB, free: 42.36 MB / 410.7 MB Notification: Performance of sort global known variables: time 6e-08/0.1948, allocations: 3.812 kB / 446 MB, free: 42.36 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0001597/0.195, allocations: 20.47 kB / 446 MB, free: 42.36 MB / 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.0003812/0.1953, allocations: 0.747 MB / 446.7 MB, free: 41.7 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 7.31e-05/0.1954, allocations: 110.7 kB / 446.8 MB, free: 41.58 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.1954, allocations: 0 / 446.8 MB, free: 41.58 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 1.128e-05/0.1954, allocations: 86.59 kB / 446.9 MB, free: 41.48 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001028/0.1955, allocations: 4.562 kB / 446.9 MB, free: 41.48 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002482/0.1958, allocations: 151.8 kB / 447.1 MB, free: 41.32 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.589e-05/0.1958, allocations: 57.28 kB / 447.1 MB, free: 41.25 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 6.762e-06/0.1958, allocations: 3.938 kB / 447.1 MB, free: 41.25 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.861e-05/0.1958, allocations: 8.5 kB / 447.1 MB, free: 41.25 MB / 410.7 MB Notification: Performance of SimCode: time 7.11e-07/0.1958, allocations: 128 / 447.1 MB, free: 41.25 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01801/0.2138, allocations: 2.157 MB / 449.3 MB, free: 40.31 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.913/7.127, allocations: 7 kB / 449.3 MB, free: 40.3 MB / 410.7 MB " [Timeout remaining time 653] (rm -f ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.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_1_0_ModelicaTest_Utilities_TestReadFile.fmu > ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestReadFile/TestReadFile.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Failed to open simulation result ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile_res.csv: Error: Error opening file: ModelicaTest_4.1.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.196186093613505]