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.001356/0.001356, allocations: 107.1 kB / 20.44 MB, free: 1.355 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.001506/0.001506, allocations: 212.7 kB / 23.73 MB, free: 4.531 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.426/1.426, allocations: 230.6 MB / 257.5 MB, free: 7.805 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.22/0.22, allocations: 46.96 MB / 360.9 MB, free: 4.055 MB / 286.1 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 0.001993/0.001993, allocations: 63.89 kB / 0.4961 GB, free: 7.77 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3031/0.305, allocations: 66.03 MB / 0.5606 GB, free: 4.262 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.00163/0.3067, allocations: 499.8 kB / 0.561 GB, free: 3.773 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001329/0.308, allocations: 0.8708 MB / 0.5619 GB, free: 2.902 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.387e-05/0.308, allocations: 0 / 0.5619 GB, free: 2.902 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.202e-05/0.308, allocations: 0 / 0.5619 GB, free: 2.902 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001877/0.3082, allocations: 11.94 kB / 0.5619 GB, free: 2.891 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.0006227/0.3089, allocations: 54.22 kB / 0.5619 GB, free: 2.84 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.38e-05/0.3089, allocations: 3.938 kB / 0.562 GB, free: 2.836 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.32e-05/0.3089, allocations: 4 kB / 0.562 GB, free: 2.832 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.123e-05/0.309, allocations: 0 / 0.562 GB, free: 2.832 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.937e-05/0.309, allocations: 11.98 kB / 0.562 GB, free: 2.82 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.514e-06/0.309, allocations: 0 / 0.562 GB, free: 2.82 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001389/0.3092, allocations: 59.94 kB / 0.562 GB, free: 2.762 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 9.958e-06/0.3092, allocations: 3.938 kB / 0.562 GB, free: 2.758 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.288e-05/0.3092, allocations: 7.938 kB / 0.562 GB, free: 2.75 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001547/0.3094, allocations: 47.73 kB / 0.5621 GB, free: 2.707 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.538e-06/0.3094, allocations: 0 / 0.5621 GB, free: 2.707 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.542e-06/0.3094, allocations: 0 / 0.5621 GB, free: 2.707 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.592e-06/0.3094, allocations: 0 / 0.5621 GB, free: 2.707 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.0003654/0.3097, allocations: 282 kB / 0.5624 GB, free: 2.395 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.722e-05/0.3098, allocations: 8.031 kB / 0.5624 GB, free: 2.387 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.577e-05/0.3098, allocations: 38.75 kB / 0.5624 GB, free: 2.34 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.236e-05/0.3098, allocations: 0.9375 kB / 0.5624 GB, free: 2.34 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001019/0.3099, allocations: 102.5 kB / 0.5625 GB, free: 2.215 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.06e-05/0.3099, allocations: 384 / 0.5625 GB, free: 2.215 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.255e-06/0.3099, allocations: 8.312 kB / 0.5625 GB, free: 2.207 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.904e-05/0.31, allocations: 55.95 kB / 0.5626 GB, free: 2.141 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.002e-05/0.31, allocations: 3.938 kB / 0.5626 GB, free: 2.137 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.612e-06/0.3101, allocations: 0 / 0.5626 GB, free: 2.137 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.27e-06/0.3101, allocations: 11.94 kB / 0.5626 GB, free: 2.125 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.934e-05/0.3101, allocations: 25.7 kB / 0.5626 GB, free: 2.094 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001299/0.3102, allocations: 124.8 kB / 0.5627 GB, free: 1.93 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.399e-05/0.3103, allocations: 40.28 kB / 0.5628 GB, free: 1.875 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.077e-05/0.3103, allocations: 42.55 kB / 0.5628 GB, free: 1.824 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.293e-06/0.3103, allocations: 0 / 0.5628 GB, free: 1.824 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.406e-05/0.3104, allocations: 56.27 kB / 0.5628 GB, free: 1.754 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 8.82e-07/0.3104, allocations: 0 / 0.5628 GB, free: 1.754 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001855/0.3105, allocations: 126.7 kB / 0.563 GB, free: 1.605 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.394e-05/0.3106, allocations: 81.11 kB / 0.563 GB, free: 1.508 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.388e-05/0.3107, allocations: 89.86 kB / 0.5631 GB, free: 1.41 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.491e-05/0.3107, allocations: 25.95 kB / 0.5632 GB, free: 1.379 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.485e-05/0.3107, allocations: 88.14 kB / 0.5632 GB, free: 1.289 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.424e-05/0.3107, allocations: 4 kB / 0.5632 GB, free: 1.285 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.491e-05/0.3107, allocations: 9.719 kB / 0.5633 GB, free: 1.27 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001227/0.3109, allocations: 310.8 kB / 0.5635 GB, free: 0.957 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.38e-05/0.3109, allocations: 37.62 kB / 0.5636 GB, free: 0.9141 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.82e-05/0.3109, allocations: 25.7 kB / 0.5636 GB, free: 0.8828 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.059e-05/0.311, allocations: 64.27 kB / 0.5637 GB, free: 0.8047 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.311, allocations: 0 / 0.5637 GB, free: 0.8047 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.32e-05/0.311, allocations: 85.2 kB / 0.5638 GB, free: 0.7031 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.592e-05/0.3111, allocations: 45.62 kB / 0.5638 GB, free: 0.6523 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.03e-06/0.3111, allocations: 3.984 kB / 0.5638 GB, free: 0.6484 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.306e-05/0.3111, allocations: 0 / 0.5638 GB, free: 0.6484 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.72e-07/0.3111, allocations: 0 / 0.5638 GB, free: 0.6484 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.067e-06/0.3111, allocations: 0 / 0.5638 GB, free: 0.6484 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.489e-05/0.3111, allocations: 3.938 kB / 0.5638 GB, free: 0.6445 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.681e-06/0.3111, allocations: 0 / 0.5638 GB, free: 0.6445 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 8.767e-05/0.3112, allocations: 143.5 kB / 0.5639 GB, free: 500 kB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.939e-06/0.3112, allocations: 3.938 kB / 0.5639 GB, free: 496 kB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.24e-05/0.3112, allocations: 10.98 kB / 0.564 GB, free: 484 kB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.232e-06/0.3112, allocations: 4 kB / 0.564 GB, free: 480 kB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.895e-06/0.3112, allocations: 0 / 0.564 GB, free: 480 kB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.833e-06/0.3112, allocations: 0 / 0.564 GB, free: 480 kB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.713e-05/0.3113, allocations: 112.8 kB / 0.5641 GB, free: 324 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.755e-06/0.3113, allocations: 4 kB / 0.5641 GB, free: 320 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.31e-07/0.3113, allocations: 3.938 kB / 0.5641 GB, free: 316 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.946e-06/0.3113, allocations: 3.938 kB / 0.5641 GB, free: 312 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.861e-06/0.3113, allocations: 0 / 0.5641 GB, free: 312 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.32e-07/0.3113, allocations: 0 / 0.5641 GB, free: 312 kB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.01e-07/0.3113, allocations: 0 / 0.5641 GB, free: 312 kB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001142/0.3115, allocations: 120.5 kB / 0.5642 GB, free: 160 kB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.913e-06/0.3115, allocations: 7.953 kB / 0.5642 GB, free: 152 kB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.527e-05/0.3115, allocations: 7.922 kB / 0.5642 GB, free: 144 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.038e-05/0.3115, allocations: 0 / 0.5642 GB, free: 144 kB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.524e-05/0.3115, allocations: 4 kB / 0.5642 GB, free: 140 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.325e-05/0.3115, allocations: 11.94 kB / 0.5642 GB, free: 128 kB / 398.1 MB Notification: Performance of sorting global known variables: time 3.378e-05/0.3116, allocations: 75.28 kB / 0.5643 GB, free: 52 kB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3116, allocations: 0 / 0.5643 GB, free: 52 kB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002101/0.3118, allocations: 15.94 kB / 0.5643 GB, free: 36 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.0007408/0.3125, allocations: 0.755 MB / 0.565 GB, free: 15.27 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001275/0.3126, allocations: 114.8 kB / 0.5652 GB, free: 15.13 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.453e-06/0.3126, allocations: 0 / 0.5652 GB, free: 15.13 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.17e-05/0.3127, allocations: 89.03 kB / 0.5652 GB, free: 15.03 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001314/0.3128, allocations: 4 kB / 0.5652 GB, free: 15.02 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003344/0.3132, allocations: 144.3 kB / 0.5654 GB, free: 14.84 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.84e-05/0.3132, allocations: 55.36 kB / 0.5654 GB, free: 14.76 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 7.404e-06/0.3132, allocations: 0 / 0.5654 GB, free: 14.76 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.06e-05/0.3132, allocations: 7.438 kB / 0.5654 GB, free: 14.75 MB / 414.1 MB Notification: Performance of SimCode: time 4.01e-07/0.3132, allocations: 3.938 kB / 0.5654 GB, free: 14.75 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02834/0.3416, allocations: 2.043 MB / 0.5674 GB, free: 12.84 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.7/11.05, allocations: 15.77 kB / 0.5675 GB, free: 12.83 MB / 414.1 MB " [Timeout remaining time 649] (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: 13.862584460992366]