Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.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.001358/0.001358, allocations: 115.9 kB / 20.43 MB, free: 1.449 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.001417/0.001417, allocations: 213.4 kB / 23.74 MB, free: 4.656 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.519/1.519, allocations: 230.6 MB / 257.5 MB, free: 8.016 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2205/0.2205, allocations: 44.91 MB / 358.8 MB, free: 6.301 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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_0_0_ModelicaTest_Utilities_TestReadFile",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestReadFile,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Utilities_TestReadFile",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002094/0.002094, allocations: 63.89 kB / 0.4931 GB, free: 10.77 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3047/0.3068, allocations: 65.47 MB / 0.557 GB, free: 7.551 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.001539/0.3083, allocations: 494.8 kB / 0.5575 GB, free: 7.188 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001311/0.3096, allocations: 0.8781 MB / 0.5583 GB, free: 6.453 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.031e-05/0.3096, allocations: 0 / 0.5583 GB, free: 6.453 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.551e-05/0.3097, allocations: 0 / 0.5583 GB, free: 6.453 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001444/0.3098, allocations: 4 kB / 0.5583 GB, free: 6.449 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Utilities.mo:323:3-363: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.0005898/0.3104, allocations: 59.81 kB / 0.5584 GB, free: 6.391 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.783e-05/0.3104, allocations: 4 kB / 0.5584 GB, free: 6.387 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.21e-05/0.3105, allocations: 0 / 0.5584 GB, free: 6.387 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.937e-05/0.3105, allocations: 4 kB / 0.5584 GB, free: 6.383 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.946e-05/0.3106, allocations: 7.984 kB / 0.5584 GB, free: 6.375 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.033e-06/0.3106, allocations: 0 / 0.5584 GB, free: 6.375 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000148/0.3107, allocations: 67.88 kB / 0.5585 GB, free: 6.309 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.245e-06/0.3107, allocations: 4 kB / 0.5585 GB, free: 6.305 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.884e-05/0.3108, allocations: 3.938 kB / 0.5585 GB, free: 6.301 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001219/0.3109, allocations: 51.72 kB / 0.5585 GB, free: 6.254 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.3109, allocations: 0 / 0.5585 GB, free: 6.254 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.3109, allocations: 0 / 0.5585 GB, free: 6.254 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.198e-06/0.3109, allocations: 0 / 0.5585 GB, free: 6.254 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.0003499/0.3112, allocations: 278 kB / 0.5588 GB, free: 5.945 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.424e-05/0.3113, allocations: 16.03 kB / 0.5588 GB, free: 5.93 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.89e-05/0.3113, allocations: 30.75 kB / 0.5588 GB, free: 5.891 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.176e-05/0.3113, allocations: 0.9375 kB / 0.5588 GB, free: 5.891 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.915e-05/0.3114, allocations: 106.5 kB / 0.5589 GB, free: 5.762 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.272e-06/0.3114, allocations: 4.375 kB / 0.5589 GB, free: 5.758 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.488e-06/0.3114, allocations: 384 / 0.5589 GB, free: 5.758 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.04e-05/0.3115, allocations: 38.12 kB / 0.559 GB, free: 5.715 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.097e-06/0.3115, allocations: 7.938 kB / 0.559 GB, free: 5.707 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.161e-06/0.3115, allocations: 0 / 0.559 GB, free: 5.707 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.397e-06/0.3115, allocations: 4 kB / 0.559 GB, free: 5.703 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.379e-05/0.3115, allocations: 0 / 0.559 GB, free: 5.703 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001289/0.3117, allocations: 116.8 kB / 0.5591 GB, free: 5.547 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.937e-05/0.3117, allocations: 26.5 kB / 0.5591 GB, free: 5.512 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.097e-05/0.3117, allocations: 4.859 kB / 0.5591 GB, free: 5.504 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.661e-06/0.3117, allocations: 4.078 kB / 0.5591 GB, free: 5.5 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.201e-05/0.3118, allocations: 60.27 kB / 0.5592 GB, free: 5.426 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.92e-07/0.3118, allocations: 7.938 kB / 0.5592 GB, free: 5.418 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.000159/0.3119, allocations: 63.34 kB / 0.5593 GB, free: 5.344 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.079e-05/0.312, allocations: 81.11 kB / 0.5593 GB, free: 5.246 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.179e-05/0.3121, allocations: 97.84 kB / 0.5594 GB, free: 5.141 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.567e-05/0.3121, allocations: 25.7 kB / 0.5595 GB, free: 5.109 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.055e-05/0.3121, allocations: 80.14 kB / 0.5595 GB, free: 5.027 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.218e-05/0.3121, allocations: 0 / 0.5595 GB, free: 5.027 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.141e-05/0.3122, allocations: 17.97 kB / 0.5595 GB, free: 5.004 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001337/0.3123, allocations: 314.8 kB / 0.5598 GB, free: 4.688 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.266e-06/0.3123, allocations: 0 / 0.5598 GB, free: 4.688 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.939e-06/0.3123, allocations: 0 / 0.5598 GB, free: 4.688 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.37e-05/0.3124, allocations: 64.2 kB / 0.5599 GB, free: 4.609 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.407e-06/0.3124, allocations: 3.984 kB / 0.5599 GB, free: 4.605 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.007e-05/0.3125, allocations: 59.41 kB / 0.56 GB, free: 4.535 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.396e-05/0.3125, allocations: 33.64 kB / 0.56 GB, free: 4.496 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.546e-06/0.3125, allocations: 8.094 kB / 0.56 GB, free: 4.488 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.069e-05/0.3125, allocations: 0 / 0.56 GB, free: 4.488 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.31e-07/0.3125, allocations: 0 / 0.56 GB, free: 4.488 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.058e-06/0.3125, allocations: 0 / 0.56 GB, free: 4.488 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.467e-05/0.3125, allocations: 0 / 0.56 GB, free: 4.488 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.069e-06/0.3125, allocations: 0 / 0.56 GB, free: 4.488 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 9.391e-05/0.3126, allocations: 143.5 kB / 0.5601 GB, free: 4.332 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.989e-06/0.3126, allocations: 3.938 kB / 0.5601 GB, free: 4.328 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.027e-06/0.3126, allocations: 3 kB / 0.5602 GB, free: 4.324 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.092e-06/0.3126, allocations: 4 kB / 0.5602 GB, free: 4.32 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.06e-06/0.3127, allocations: 4 kB / 0.5602 GB, free: 4.316 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.613e-06/0.3127, allocations: 3.938 kB / 0.5602 GB, free: 4.312 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.836e-05/0.3128, allocations: 116.8 kB / 0.5603 GB, free: 4.156 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.11e-07/0.3128, allocations: 0 / 0.5603 GB, free: 4.156 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.057e-06/0.3128, allocations: 7.938 kB / 0.5603 GB, free: 4.148 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.966e-06/0.3128, allocations: 3.938 kB / 0.5603 GB, free: 4.145 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.219e-06/0.3128, allocations: 4 kB / 0.5603 GB, free: 4.141 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.22e-07/0.3128, allocations: 0 / 0.5603 GB, free: 4.141 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.805e-06/0.3128, allocations: 3.984 kB / 0.5603 GB, free: 4.137 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001259/0.3129, allocations: 94.83 kB / 0.5604 GB, free: 4.02 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.41e-06/0.3129, allocations: 3.953 kB / 0.5604 GB, free: 4.016 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.265e-05/0.3129, allocations: 3.938 kB / 0.5604 GB, free: 4.012 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.287e-05/0.3129, allocations: 4 kB / 0.5604 GB, free: 4.008 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.352e-05/0.3129, allocations: 7.938 kB / 0.5604 GB, free: 4 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.725e-06/0.3129, allocations: 0 / 0.5604 GB, free: 4 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.813e-05/0.313, allocations: 75.28 kB / 0.5605 GB, free: 3.926 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.313, allocations: 4.125 kB / 0.5605 GB, free: 3.922 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000214/0.3132, allocations: 23.92 kB / 0.5605 GB, free: 3.898 MB / 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.0007164/0.3139, allocations: 0.7166 MB / 0.5612 GB, free: 3.18 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 9.929e-05/0.314, allocations: 59.41 kB / 0.5613 GB, free: 3.109 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.314, allocations: 0 / 0.5613 GB, free: 3.109 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.38e-05/0.3141, allocations: 63.45 kB / 0.5613 GB, free: 3.035 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000124/0.3142, allocations: 0 / 0.5613 GB, free: 3.035 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003039/0.3145, allocations: 122.6 kB / 0.5614 GB, free: 2.875 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002959/0.3148, allocations: 0.6767 MB / 0.5621 GB, free: 2.172 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 6.613e-06/0.3148, allocations: 0 / 0.5621 GB, free: 2.172 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.22e-05/0.3148, allocations: 7.438 kB / 0.5621 GB, free: 2.164 MB / 398.1 MB Notification: Performance of SimCode: time 4.11e-07/0.3148, allocations: 0 / 0.5621 GB, free: 2.164 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0327/0.3475, allocations: 1.618 MB / 0.5637 GB, free: 0.6797 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.05/11.39, allocations: 7.109 kB / 0.5637 GB, free: 0.6758 MB / 398.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.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_0_0_ModelicaTest_Utilities_TestReadFile.fmu > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestReadFile/TestReadFile.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.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.341561893998005]