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.001418/0.001418, allocations: 111.1 kB / 20.44 MB, free: 1.184 MB / 14.72 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.002106/0.002106, allocations: 211.6 kB / 23.73 MB, free: 4.387 MB / 14.72 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 1.495/1.495, allocations: 230.6 MB / 257.5 MB, free: 7.801 MB / 206.1 MB " [Timeout remaining time 178] 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.2563/0.2563, allocations: 46.96 MB / 360.9 MB, free: 4.031 MB / 286.1 MB " [Timeout remaining time 179] 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 0.002825/0.002825, allocations: 63.91 kB / 0.4961 GB, free: 7.734 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3343/0.3371, allocations: 66.04 MB / 0.5606 GB, free: 4.219 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.00169/0.3388, allocations: 481.1 kB / 0.561 GB, free: 3.746 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001421/0.3402, allocations: 0.863 MB / 0.5619 GB, free: 2.883 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.639e-05/0.3402, allocations: 0 / 0.5619 GB, free: 2.883 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.693e-05/0.3403, allocations: 8 kB / 0.5619 GB, free: 2.875 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002227/0.3405, allocations: 3.984 kB / 0.5619 GB, free: 2.871 MB / 398.1 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.0006611/0.3412, allocations: 65.61 kB / 0.562 GB, free: 2.812 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 6.355e-05/0.3412, allocations: 7.938 kB / 0.562 GB, free: 2.805 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.12e-05/0.3413, allocations: 0 / 0.562 GB, free: 2.805 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.093e-05/0.3413, allocations: 3.984 kB / 0.562 GB, free: 2.801 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.159e-05/0.3413, allocations: 4 kB / 0.562 GB, free: 2.797 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.185e-06/0.3413, allocations: 3.938 kB / 0.562 GB, free: 2.793 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001544/0.3415, allocations: 59.94 kB / 0.562 GB, free: 2.734 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.997e-06/0.3415, allocations: 0 / 0.562 GB, free: 2.734 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.56e-05/0.3415, allocations: 4 kB / 0.562 GB, free: 2.73 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001772/0.3417, allocations: 55.66 kB / 0.5621 GB, free: 2.68 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.558e-06/0.3417, allocations: 0 / 0.5621 GB, free: 2.68 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.3417, allocations: 0 / 0.5621 GB, free: 2.68 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.981e-06/0.3417, allocations: 0 / 0.5621 GB, free: 2.68 MB / 398.1 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.0003827/0.3421, allocations: 285.9 kB / 0.5624 GB, free: 2.363 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.85e-05/0.3421, allocations: 12.03 kB / 0.5624 GB, free: 2.352 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.04e-05/0.3422, allocations: 30.75 kB / 0.5624 GB, free: 2.312 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.157e-05/0.3422, allocations: 0.9375 kB / 0.5624 GB, free: 2.312 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001068/0.3423, allocations: 110.5 kB / 0.5625 GB, free: 2.18 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.528e-06/0.3423, allocations: 384 / 0.5625 GB, free: 2.18 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.187e-06/0.3423, allocations: 4.375 kB / 0.5625 GB, free: 2.176 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.645e-05/0.3424, allocations: 59.91 kB / 0.5626 GB, free: 2.105 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.627e-06/0.3424, allocations: 3.938 kB / 0.5626 GB, free: 2.102 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.653e-06/0.3424, allocations: 0 / 0.5626 GB, free: 2.102 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.027e-06/0.3424, allocations: 0 / 0.5626 GB, free: 2.102 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.325e-05/0.3425, allocations: 25.7 kB / 0.5626 GB, free: 2.07 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001609/0.3426, allocations: 124.8 kB / 0.5627 GB, free: 1.906 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.913e-05/0.3427, allocations: 44.31 kB / 0.5628 GB, free: 1.848 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000103/0.3428, allocations: 30.56 kB / 0.5628 GB, free: 1.809 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.073e-06/0.3428, allocations: 0 / 0.5628 GB, free: 1.809 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.511e-05/0.3429, allocations: 72.27 kB / 0.5629 GB, free: 1.723 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 8.32e-07/0.3429, allocations: 0 / 0.5629 GB, free: 1.723 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002185/0.3431, allocations: 118.7 kB / 0.563 GB, free: 1.582 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.101e-05/0.3431, allocations: 77.11 kB / 0.563 GB, free: 1.488 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.395e-05/0.3432, allocations: 97.86 kB / 0.5631 GB, free: 1.383 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001098/0.3433, allocations: 25.7 kB / 0.5632 GB, free: 1.352 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.108e-05/0.3434, allocations: 84.08 kB / 0.5632 GB, free: 1.266 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.37e-05/0.3434, allocations: 0 / 0.5632 GB, free: 1.266 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.028e-05/0.3434, allocations: 17.7 kB / 0.5633 GB, free: 1.242 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001957/0.3436, allocations: 311.1 kB / 0.5636 GB, free: 0.9297 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.525e-05/0.3436, allocations: 29.7 kB / 0.5636 GB, free: 0.8945 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.098e-05/0.3437, allocations: 29.7 kB / 0.5636 GB, free: 0.8594 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.393e-05/0.3437, allocations: 68.2 kB / 0.5637 GB, free: 0.7773 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.3437, allocations: 0 / 0.5637 GB, free: 0.7773 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.291e-05/0.3438, allocations: 89.09 kB / 0.5638 GB, free: 0.6719 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.306e-05/0.3439, allocations: 33.64 kB / 0.5638 GB, free: 0.6328 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.947e-06/0.3439, allocations: 0 / 0.5638 GB, free: 0.6328 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.254e-05/0.3439, allocations: 0 / 0.5638 GB, free: 0.6328 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.82e-07/0.3439, allocations: 0 / 0.5638 GB, free: 0.6328 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.478e-06/0.3439, allocations: 4.094 kB / 0.5638 GB, free: 0.6289 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.582e-05/0.3439, allocations: 4 kB / 0.5638 GB, free: 0.625 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.981e-06/0.3439, allocations: 0 / 0.5638 GB, free: 0.625 MB / 398.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 (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 0.0001004/0.344, allocations: 143.5 kB / 0.5639 GB, free: 480 kB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.139e-05/0.344, allocations: 7.922 kB / 0.5639 GB, free: 472 kB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.133e-05/0.344, allocations: 3 kB / 0.5639 GB, free: 468 kB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.292e-06/0.344, allocations: 0 / 0.5639 GB, free: 468 kB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.908e-06/0.344, allocations: 3.938 kB / 0.5639 GB, free: 464 kB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.439e-05/0.3441, allocations: 3.938 kB / 0.564 GB, free: 460 kB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001069/0.3442, allocations: 120.8 kB / 0.5641 GB, free: 296 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.176e-06/0.3442, allocations: 7.984 kB / 0.5641 GB, free: 288 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.81e-07/0.3442, allocations: 0 / 0.5641 GB, free: 288 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.136e-06/0.3442, allocations: 3.938 kB / 0.5641 GB, free: 284 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.691e-06/0.3442, allocations: 0 / 0.5641 GB, free: 284 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.12e-07/0.3442, allocations: 0 / 0.5641 GB, free: 284 kB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.3442, allocations: 4 kB / 0.5641 GB, free: 280 kB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001957/0.3444, allocations: 116.5 kB / 0.5642 GB, free: 132 kB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.861e-06/0.3444, allocations: 3.953 kB / 0.5642 GB, free: 128 kB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.648e-05/0.3444, allocations: 7.938 kB / 0.5642 GB, free: 120 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.275e-05/0.3444, allocations: 4 kB / 0.5642 GB, free: 116 kB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.346e-05/0.3444, allocations: 4.031 kB / 0.5642 GB, free: 112 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.645e-06/0.3444, allocations: 0 / 0.5642 GB, free: 112 kB / 398.1 MB Notification: Performance of sorting global known variables: time 4.432e-05/0.3445, allocations: 75.28 kB / 0.5643 GB, free: 36 kB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3445, allocations: 3.938 kB / 0.5643 GB, free: 32 kB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002342/0.3447, allocations: 23.92 kB / 0.5643 GB, free: 8 kB / 398.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 (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.000955/0.3457, allocations: 0.7549 MB / 0.565 GB, free: 15.25 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001325/0.3458, allocations: 114.8 kB / 0.5652 GB, free: 15.11 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.11e-06/0.3458, allocations: 0 / 0.5652 GB, free: 15.11 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.325e-05/0.3458, allocations: 81.11 kB / 0.5652 GB, free: 15.01 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001264/0.346, allocations: 4.125 kB / 0.5652 GB, free: 15.01 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003419/0.3463, allocations: 152.3 kB / 0.5654 GB, free: 14.81 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.67e-05/0.3464, allocations: 51.36 kB / 0.5654 GB, free: 14.74 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 1.164e-05/0.3464, allocations: 4 kB / 0.5654 GB, free: 14.74 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.681e-05/0.3464, allocations: 7.438 kB / 0.5654 GB, free: 14.73 MB / 414.1 MB Notification: Performance of SimCode: time 3.1e-07/0.3464, allocations: 0 / 0.5654 GB, free: 14.73 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03057/0.377, allocations: 2.028 MB / 0.5674 GB, free: 12.84 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.36/11.73, allocations: 0 / 0.5674 GB, free: 12.84 MB / 414.1 MB " [Timeout remaining time 648] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestReadFile/TestReadFile.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile.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: 14.758101533167064]