Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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.0008979/0.0008979, allocations: 80.48 kB / 19.92 MB, free: 4.633 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.0008772/0.0008772, allocations: 169.9 kB / 23.21 MB, free: 1.352 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8539/0.8539, allocations: 158.6 MB / 185 MB, free: 3.035 MB / 170.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.133/0.133, allocations: 32.37 MB / 269.6 MB, free: 14.96 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_ModelicaTest_Utilities_TestReadFile",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestReadFile,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Utilities_TestReadFile",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.613e-06/1.613e-06, allocations: 0 / 406.8 MB, free: 2.266 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.125e-05/1.286e-05, allocations: 10.02 kB / 406.8 MB, free: 2.258 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.001326/0.001339, allocations: 0.4909 MB / 407.3 MB, free: 1.77 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.00115/0.002489, allocations: 0.8665 MB / 408.2 MB, free: 0.9023 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.258e-05/0.002512, allocations: 0 / 408.2 MB, free: 0.9023 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.771e-05/0.00253, allocations: 7.938 kB / 408.2 MB, free: 0.8945 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001889/0.002719, allocations: 4 kB / 408.2 MB, free: 0.8906 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005707/0.003289, allocations: 67.67 kB / 408.3 MB, free: 0.8242 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 5.682e-05/0.003346, allocations: 4 kB / 408.3 MB, free: 0.8203 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.557e-05/0.003382, allocations: 0 / 408.3 MB, free: 0.8203 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.814e-05/0.00341, allocations: 0 / 408.3 MB, free: 0.8203 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.603e-05/0.003456, allocations: 4 kB / 408.3 MB, free: 0.8164 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 8.926e-06/0.003465, allocations: 0 / 408.3 MB, free: 0.8164 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001291/0.003594, allocations: 59.88 kB / 408.3 MB, free: 0.7578 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 8.906e-06/0.003603, allocations: 0 / 408.3 MB, free: 0.7578 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 2.022e-05/0.003623, allocations: 3.984 kB / 408.3 MB, free: 0.7539 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001694/0.003792, allocations: 59.8 kB / 408.4 MB, free: 0.6953 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.147e-06/0.003797, allocations: 8 kB / 408.4 MB, free: 0.6875 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.463e-06/0.003798, allocations: 0 / 408.4 MB, free: 0.6875 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.007e-06/0.003802, allocations: 0 / 408.4 MB, free: 0.6875 MB / 378.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.0003322/0.004134, allocations: 276 kB / 408.7 MB, free: 388 kB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.945e-05/0.004174, allocations: 12.03 kB / 408.7 MB, free: 376 kB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.917e-05/0.004203, allocations: 34.69 kB / 408.7 MB, free: 332 kB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.326e-05/0.004226, allocations: 0.9375 kB / 408.7 MB, free: 332 kB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.876e-05/0.004305, allocations: 101.8 kB / 408.8 MB, free: 204 kB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.188e-05/0.004317, allocations: 8.312 kB / 408.8 MB, free: 196 kB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.873e-06/0.004324, allocations: 384 / 408.8 MB, free: 196 kB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.688e-05/0.004411, allocations: 59.97 kB / 408.9 MB, free: 124 kB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.915e-06/0.004418, allocations: 4.188 kB / 408.9 MB, free: 120 kB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.283e-06/0.004426, allocations: 384 / 408.9 MB, free: 120 kB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.206e-06/0.004434, allocations: 8.109 kB / 408.9 MB, free: 112 kB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.51e-05/0.004459, allocations: 25.7 kB / 408.9 MB, free: 80 kB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001668/0.004626, allocations: 116.8 kB / 409 MB, free: 15.92 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.357e-05/0.004689, allocations: 52.22 kB / 409.1 MB, free: 15.86 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.329e-05/0.004713, allocations: 34.66 kB / 409.1 MB, free: 15.81 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.384e-06/0.00472, allocations: 0 / 409.1 MB, free: 15.81 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.835e-05/0.004758, allocations: 64.25 kB / 409.2 MB, free: 15.73 MB / 394.7 MB Notification: Performance of pre-optimization done (n=1): time 1.202e-06/0.00476, allocations: 4 kB / 409.2 MB, free: 15.73 MB / 394.7 MB Notification: Performance of matching and sorting (n=1): time 0.000181/0.004941, allocations: 114.8 kB / 409.3 MB, free: 15.59 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.763e-05/0.004988, allocations: 89.03 kB / 409.4 MB, free: 15.49 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.655e-05/0.005045, allocations: 89.86 kB / 409.5 MB, free: 15.39 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.222e-05/0.005057, allocations: 25.7 kB / 409.5 MB, free: 15.36 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.255e-05/0.00508, allocations: 84.14 kB / 409.6 MB, free: 15.27 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.34e-05/0.005093, allocations: 3.938 kB / 409.6 MB, free: 15.27 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.839e-05/0.005121, allocations: 9.719 kB / 409.6 MB, free: 15.25 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001538/0.005275, allocations: 322.8 kB / 409.9 MB, free: 14.93 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.208e-05/0.005297, allocations: 25.95 kB / 409.9 MB, free: 14.9 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.583e-05/0.005313, allocations: 29.7 kB / 410 MB, free: 14.86 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.366e-05/0.005357, allocations: 64.25 kB / 410 MB, free: 14.79 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/0.005359, allocations: 0 / 410 MB, free: 14.79 MB / 394.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.765e-05/0.005436, allocations: 93.09 kB / 410.1 MB, free: 14.68 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.13e-05/0.005468, allocations: 33.7 kB / 410.1 MB, free: 14.64 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.8e-06/0.005473, allocations: 3.984 kB / 410.1 MB, free: 14.63 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.201e-05/0.005485, allocations: 0 / 410.1 MB, free: 14.63 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.414e-06/0.005488, allocations: 3.938 kB / 410.1 MB, free: 14.63 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.719e-06/0.005493, allocations: 0 / 410.1 MB, free: 14.63 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.749e-05/0.00551, allocations: 4.094 kB / 410.2 MB, free: 14.62 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.091e-06/0.005516, allocations: 7.938 kB / 410.2 MB, free: 14.62 MB / 394.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 7.771e-05/0.005594, allocations: 131.5 kB / 410.3 MB, free: 14.47 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.169e-05/0.005606, allocations: 4 kB / 410.3 MB, free: 14.47 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.887e-06/0.005614, allocations: 3 kB / 410.3 MB, free: 14.46 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.774e-06/0.005616, allocations: 0 / 410.3 MB, free: 14.46 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/0.005621, allocations: 3.938 kB / 410.3 MB, free: 14.46 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.294e-06/0.005624, allocations: 0 / 410.3 MB, free: 14.46 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.817e-05/0.005702, allocations: 132.7 kB / 410.4 MB, free: 14.29 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.005703, allocations: 0 / 410.4 MB, free: 14.29 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.21e-07/0.005704, allocations: 4 kB / 410.4 MB, free: 14.29 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.473e-06/0.005705, allocations: 0 / 410.4 MB, free: 14.29 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.693e-06/0.005712, allocations: 0 / 410.4 MB, free: 14.29 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.005713, allocations: 0 / 410.4 MB, free: 14.29 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.023e-06/0.005715, allocations: 3.938 kB / 410.4 MB, free: 14.28 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001046/0.00582, allocations: 120.5 kB / 410.6 MB, free: 14.13 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.372e-06/0.005826, allocations: 7.938 kB / 410.6 MB, free: 14.12 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.141e-05/0.005838, allocations: 0 / 410.6 MB, free: 14.12 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.104e-05/0.005849, allocations: 0 / 410.6 MB, free: 14.12 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.75e-05/0.005866, allocations: 15.86 kB / 410.6 MB, free: 14.11 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.444e-06/0.005869, allocations: 0 / 410.6 MB, free: 14.11 MB / 394.7 MB Notification: Performance of sorting global known variables: time 2.633e-05/0.005895, allocations: 79.31 kB / 410.7 MB, free: 14.03 MB / 394.7 MB Notification: Performance of sort global known variables: time 1e-07/0.005895, allocations: 0 / 410.7 MB, free: 14.03 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0002474/0.006143, allocations: 23.88 kB / 410.7 MB, free: 14.01 MB / 394.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.0005932/0.006736, allocations: 0.7354 MB / 411.4 MB, free: 13.24 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0001229/0.006859, allocations: 118.8 kB / 411.5 MB, free: 13.1 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.00686, allocations: 0 / 411.5 MB, free: 13.1 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001894/0.00705, allocations: 85.05 kB / 411.6 MB, free: 13 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001506/0.0072, allocations: 7.375 kB / 411.6 MB, free: 13 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003374/0.007538, allocations: 144.2 kB / 411.8 MB, free: 12.81 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.188e-05/0.00758, allocations: 59.34 kB / 411.8 MB, free: 12.73 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 9.297e-06/0.007589, allocations: 128 / 411.8 MB, free: 12.73 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.592e-05/0.007615, allocations: 12.5 kB / 411.8 MB, free: 12.72 MB / 394.7 MB Notification: Performance of SimCode: time 3.8e-07/0.007615, allocations: 0 / 411.8 MB, free: 12.72 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01894/0.02655, allocations: 2.157 MB / 414 MB, free: 10.54 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.942/6.969, allocations: 11.88 kB / 414 MB, free: 10.52 MB / 394.7 MB " [Timeout remaining time 653] (rm -f ModelicaTest_3.2.3_ModelicaTest.Utilities.TestReadFile.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Utilities.TestReadFile.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Utilities.TestReadFile.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Utilities.TestReadFile.sim & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_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_3_2_3_ModelicaTest_Utilities_TestReadFile.fmu > ModelicaTest_3.2.3_ModelicaTest.Utilities.TestReadFile.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Utilities.TestReadFile_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Utilities/TestReadFile/TestReadFile.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Utilities.TestReadFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Failed to open simulation result ModelicaTest_3.2.3_ModelicaTest.Utilities.TestReadFile_res.csv: Error: Error opening file: ModelicaTest_3.2.3_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: 8.98116178996861]