Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009079/0.0009079, allocations: 80.34 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009391/0.0009391, allocations: 156.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9148/0.9148, allocations: 177 MB / 204.1 MB, free: 5.746 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.254/0.254, allocations: 34.24 MB / 294.8 MB, free: 0.7031 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Utilities.TestReadFile,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Utilities_TestReadFile",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestReadFile,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Utilities_TestReadFile",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.683e-06/1.683e-06, allocations: 0 / 442.1 MB, free: 1.613 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.703e-05/1.871e-05, allocations: 9.031 kB / 442.1 MB, free: 1.605 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.0009729/0.0009916, allocations: 493.1 kB / 442.6 MB, free: 1.125 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008281/0.00182, allocations: 0.8805 MB / 443.5 MB, free: 248 kB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.602e-05/0.001846, allocations: 0 / 443.5 MB, free: 248 kB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 1.732e-05/0.001863, allocations: 0 / 443.5 MB, free: 248 kB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002235/0.002086, allocations: 11.94 kB / 443.5 MB, free: 236 kB / 410.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Utilities.mo:333:3-373: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.0004967/0.002583, allocations: 58 kB / 443.6 MB, free: 180 kB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 6.289e-05/0.002646, allocations: 3.984 kB / 443.6 MB, free: 176 kB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.233e-05/0.002688, allocations: 0 / 443.6 MB, free: 176 kB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.524e-05/0.002724, allocations: 4 kB / 443.6 MB, free: 172 kB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.955e-05/0.002763, allocations: 0 / 443.6 MB, free: 172 kB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 9.318e-06/0.002773, allocations: 4 kB / 443.6 MB, free: 168 kB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.946e-05/0.002872, allocations: 55.89 kB / 443.6 MB, free: 112 kB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 7.805e-06/0.00288, allocations: 0 / 443.6 MB, free: 112 kB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 1.986e-05/0.0029, allocations: 7.984 kB / 443.6 MB, free: 104 kB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001408/0.00304, allocations: 59.8 kB / 443.7 MB, free: 44 kB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.603e-06/0.003042, allocations: 0 / 443.7 MB, free: 44 kB / 410.7 MB Notification: Performance of FrontEnd: time 1.032e-06/0.003043, allocations: 0 / 443.7 MB, free: 44 kB / 410.7 MB Notification: Performance of Transformations before backend: time 5.01e-06/0.003048, allocations: 0 / 443.7 MB, free: 44 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.1688/0.1719, allocations: 276.8 kB / 444 MB, free: 44.25 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.752e-05/0.1719, allocations: 8.406 kB / 444 MB, free: 44.25 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 1.89e-05/0.1719, allocations: 38.72 kB / 444 MB, free: 44.21 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.573e-05/0.172, allocations: 1.781 kB / 444 MB, free: 44.21 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.298e-05/0.172, allocations: 109.9 kB / 444.1 MB, free: 44.08 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.526e-06/0.172, allocations: 384 / 444.1 MB, free: 44.08 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.404e-06/0.172, allocations: 2.062 kB / 444.1 MB, free: 44.08 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.666e-05/0.1721, allocations: 59.41 kB / 444.2 MB, free: 44.02 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.831e-06/0.1721, allocations: 192 / 444.2 MB, free: 44.02 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.222e-06/0.1721, allocations: 384 / 444.2 MB, free: 44.02 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.57e-06/0.1721, allocations: 8.719 kB / 444.2 MB, free: 44.02 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.582e-05/0.1721, allocations: 30.02 kB / 444.2 MB, free: 43.98 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.066e-05/0.1722, allocations: 119.7 kB / 444.3 MB, free: 43.83 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.191e-05/0.1722, allocations: 45.59 kB / 444.4 MB, free: 43.78 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.209e-05/0.1723, allocations: 33.19 kB / 444.4 MB, free: 43.74 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.142e-06/0.1723, allocations: 0 / 444.4 MB, free: 43.74 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.962e-05/0.1723, allocations: 64.59 kB / 444.5 MB, free: 43.67 MB / 410.7 MB Notification: Performance of pre-optimization done (n=1): time 5.21e-07/0.1723, allocations: 0 / 444.5 MB, free: 43.67 MB / 410.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001326/0.1724, allocations: 117.8 kB / 444.6 MB, free: 43.54 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.104e-05/0.1724, allocations: 83.73 kB / 444.7 MB, free: 43.45 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.276e-05/0.1725, allocations: 94.27 kB / 444.8 MB, free: 43.35 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.507e-06/0.1725, allocations: 25.7 kB / 444.8 MB, free: 43.32 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.201e-06/0.1725, allocations: 80.14 kB / 444.9 MB, free: 43.23 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.328e-05/0.1725, allocations: 7.062 kB / 444.9 MB, free: 43.23 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.086e-05/0.1725, allocations: 13.5 kB / 444.9 MB, free: 43.22 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.939e-05/0.1725, allocations: 318.2 kB / 445.2 MB, free: 42.91 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.039e-05/0.1726, allocations: 29.14 kB / 445.2 MB, free: 42.88 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.833e-06/0.1726, allocations: 28.45 kB / 445.2 MB, free: 42.84 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.113e-05/0.1726, allocations: 60.3 kB / 445.3 MB, free: 42.77 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.1726, allocations: 5.172 kB / 445.3 MB, free: 42.77 MB / 410.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 3.426e-05/0.1726, allocations: 90.23 kB / 445.4 MB, free: 42.68 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.005e-05/0.1726, allocations: 31.95 kB / 445.4 MB, free: 42.65 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.558e-06/0.1726, allocations: 3.406 kB / 445.4 MB, free: 42.65 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.11e-05/0.1727, allocations: 0 / 445.4 MB, free: 42.65 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.61e-07/0.1727, allocations: 5.531 kB / 445.4 MB, free: 42.64 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.047e-06/0.1727, allocations: 0 / 445.4 MB, free: 42.64 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.383e-05/0.1727, allocations: 5.25 kB / 445.4 MB, free: 42.64 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.5e-06/0.1727, allocations: 3.984 kB / 445.4 MB, free: 42.64 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.434e-05/0.1727, allocations: 137.1 kB / 445.6 MB, free: 42.5 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.018e-06/0.1727, allocations: 4.281 kB / 445.6 MB, free: 42.5 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.575e-06/0.1727, allocations: 6.812 kB / 445.6 MB, free: 42.5 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.41e-07/0.1727, allocations: 0 / 445.6 MB, free: 42.5 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.098e-06/0.1727, allocations: 6.688 kB / 445.6 MB, free: 42.49 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.914e-06/0.1727, allocations: 0.8438 kB / 445.6 MB, free: 42.49 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 3.213e-05/0.1728, allocations: 120.9 kB / 445.7 MB, free: 42.34 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.51e-07/0.1728, allocations: 0 / 445.7 MB, free: 42.34 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.72e-07/0.1728, allocations: 3.75 kB / 445.7 MB, free: 42.34 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.11e-07/0.1728, allocations: 0 / 445.7 MB, free: 42.34 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.06e-06/0.1728, allocations: 0 / 445.7 MB, free: 42.34 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.133e-06/0.1728, allocations: 5.531 kB / 445.7 MB, free: 42.34 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.1728, allocations: 3.938 kB / 445.7 MB, free: 42.34 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.452e-05/0.1728, allocations: 119.1 kB / 445.8 MB, free: 42.21 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.116e-06/0.1728, allocations: 3.016 kB / 445.9 MB, free: 42.21 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.027e-05/0.1728, allocations: 6.312 kB / 445.9 MB, free: 42.21 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.15e-06/0.1728, allocations: 0 / 445.9 MB, free: 42.21 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.085e-05/0.1728, allocations: 3.938 kB / 445.9 MB, free: 42.21 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.465e-06/0.1728, allocations: 3.656 kB / 445.9 MB, free: 42.21 MB / 410.7 MB Notification: Performance of sorting global known variables: time 9.779e-06/0.1729, allocations: 75.28 kB / 445.9 MB, free: 42.13 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1729, allocations: 0 / 445.9 MB, free: 42.13 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0001456/0.173, allocations: 22.16 kB / 446 MB, free: 42.13 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.000331/0.1733, allocations: 0.7484 MB / 446.7 MB, free: 41.48 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 7.146e-05/0.1734, allocations: 118 kB / 446.8 MB, free: 41.35 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.512e-06/0.1734, allocations: 0 / 446.8 MB, free: 41.35 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 1.315e-05/0.1734, allocations: 87.11 kB / 446.9 MB, free: 41.25 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.55e-05/0.1735, allocations: 4.562 kB / 446.9 MB, free: 41.25 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002169/0.1737, allocations: 146.9 kB / 447.1 MB, free: 41.09 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.275e-05/0.1738, allocations: 53.98 kB / 447.1 MB, free: 41.02 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 6.773e-06/0.1738, allocations: 0 / 447.1 MB, free: 41.02 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.653e-05/0.1738, allocations: 8.5 kB / 447.1 MB, free: 41.02 MB / 410.7 MB Notification: Performance of SimCode: time 6.11e-07/0.1738, allocations: 0 / 447.1 MB, free: 41.02 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01714/0.1909, allocations: 2.169 MB / 449.3 MB, free: 40.07 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.926/7.117, allocations: 4 kB / 449.3 MB, free: 40.06 MB / 410.7 MB " [Timeout remaining time 653] (rm -f ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_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_trunk_ModelicaTest_Utilities_TestReadFile.fmu > ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Utilities.TestReadFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Failed to open simulation result ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile_res.csv: Error: Error opening file: ModelicaTest_trunk_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.128770723938942]