Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.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.001873/0.001873, 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.002661/0.002661, allocations: 210.4 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.482/1.482, allocations: 230.6 MB / 257.5 MB, free: 7.797 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.2515/0.2515, allocations: 44.94 MB / 358.8 MB, free: 6.152 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.TestWriteFile,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Utilities_TestWriteFile",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestWriteFile,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Utilities_TestWriteFile",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.002104/0.002104, allocations: 81.59 kB / 0.493 GB, free: 10.57 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3233/0.3254, allocations: 65.46 MB / 0.5569 GB, free: 7.355 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.003185/0.3286, allocations: 498.6 kB / 0.5574 GB, free: 6.984 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008431/0.3294, allocations: 220.3 kB / 0.5576 GB, free: 6.836 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.912e-05/0.3295, allocations: 1.219 kB / 0.5576 GB, free: 6.836 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 2.076e-05/0.3295, allocations: 0 / 0.5576 GB, free: 6.836 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 7.864e-06/0.3295, allocations: 0 / 0.5576 GB, free: 6.836 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Utilities.mo:290:3-321:16:writable] Warning: Pure function 'ModelicaTest.Utilities.WriteFile' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.0003765/0.3299, allocations: 45.06 kB / 0.5577 GB, free: 6.801 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.829e-05/0.3299, allocations: 0 / 0.5577 GB, free: 6.801 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.822e-05/0.33, allocations: 7.984 kB / 0.5577 GB, free: 6.793 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.066e-05/0.33, allocations: 4 kB / 0.5577 GB, free: 6.789 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.046e-05/0.33, allocations: 0 / 0.5577 GB, free: 6.789 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.695e-06/0.3301, allocations: 0 / 0.5577 GB, free: 6.789 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001843/0.3302, allocations: 51.89 kB / 0.5577 GB, free: 6.738 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.329e-05/0.3303, allocations: 7.922 kB / 0.5577 GB, free: 6.73 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.678e-05/0.3303, allocations: 4 kB / 0.5577 GB, free: 6.727 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001622/0.3304, allocations: 43.69 kB / 0.5578 GB, free: 6.688 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.452e-06/0.3305, allocations: 0 / 0.5578 GB, free: 6.688 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.3305, allocations: 0 / 0.5578 GB, free: 6.688 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.374e-06/0.3305, allocations: 0 / 0.5578 GB, free: 6.688 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.0004902/0.3309, allocations: 286 kB / 0.5581 GB, free: 6.371 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.157e-05/0.331, allocations: 8.031 kB / 0.5581 GB, free: 6.363 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.995e-05/0.3311, allocations: 30.75 kB / 0.5581 GB, free: 6.324 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.318e-05/0.3311, allocations: 0.9375 kB / 0.5581 GB, free: 6.324 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001732/0.3313, allocations: 102.5 kB / 0.5582 GB, free: 6.199 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.116e-05/0.3313, allocations: 4.375 kB / 0.5582 GB, free: 6.195 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.234e-05/0.3313, allocations: 384 / 0.5582 GB, free: 6.195 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001344/0.3314, allocations: 59.95 kB / 0.5583 GB, free: 6.125 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.242e-05/0.3314, allocations: 3.938 kB / 0.5583 GB, free: 6.121 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.248e-06/0.3314, allocations: 0 / 0.5583 GB, free: 6.121 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.863e-06/0.3314, allocations: 0 / 0.5583 GB, free: 6.121 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.025e-05/0.3315, allocations: 33.64 kB / 0.5583 GB, free: 6.082 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001929/0.3317, allocations: 120.8 kB / 0.5584 GB, free: 5.922 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.893e-05/0.3318, allocations: 48.25 kB / 0.5585 GB, free: 5.859 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.491e-05/0.3318, allocations: 34.66 kB / 0.5585 GB, free: 5.816 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.53e-06/0.3318, allocations: 0 / 0.5585 GB, free: 5.816 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.143e-05/0.3319, allocations: 56.27 kB / 0.5585 GB, free: 5.746 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.032e-06/0.3319, allocations: 0 / 0.5585 GB, free: 5.746 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002868/0.3322, allocations: 130.7 kB / 0.5587 GB, free: 5.594 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.949e-05/0.3322, allocations: 81.05 kB / 0.5587 GB, free: 5.496 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.963e-05/0.3323, allocations: 93.94 kB / 0.5588 GB, free: 5.395 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.103e-05/0.3323, allocations: 29.7 kB / 0.5589 GB, free: 5.359 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.254e-05/0.3324, allocations: 80.14 kB / 0.5589 GB, free: 5.277 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.521e-05/0.3324, allocations: 0 / 0.5589 GB, free: 5.277 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.514e-05/0.3324, allocations: 17.72 kB / 0.559 GB, free: 5.254 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002/0.3326, allocations: 310.8 kB / 0.5592 GB, free: 4.941 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.872e-05/0.3327, allocations: 25.7 kB / 0.5593 GB, free: 4.91 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.786e-05/0.3327, allocations: 33.69 kB / 0.5593 GB, free: 4.871 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.453e-05/0.3328, allocations: 60.27 kB / 0.5594 GB, free: 4.797 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.3328, allocations: 3.938 kB / 0.5594 GB, free: 4.793 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001208/0.3329, allocations: 93.17 kB / 0.5595 GB, free: 4.684 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.688e-05/0.3329, allocations: 36.66 kB / 0.5595 GB, free: 4.645 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.135e-06/0.333, allocations: 3.938 kB / 0.5595 GB, free: 4.641 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.975e-05/0.333, allocations: 0 / 0.5595 GB, free: 4.641 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.543e-06/0.333, allocations: 0 / 0.5595 GB, free: 4.641 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.971e-06/0.333, allocations: 0 / 0.5595 GB, free: 4.641 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.986e-05/0.333, allocations: 7.938 kB / 0.5595 GB, free: 4.633 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.674e-06/0.333, allocations: 0 / 0.5595 GB, free: 4.633 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.0001246/0.3331, allocations: 135.5 kB / 0.5596 GB, free: 4.484 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.026e-05/0.3331, allocations: 0 / 0.5596 GB, free: 4.484 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.096e-05/0.3332, allocations: 14.97 kB / 0.5596 GB, free: 4.469 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.733e-06/0.3332, allocations: 0 / 0.5596 GB, free: 4.469 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.534e-06/0.3332, allocations: 3.984 kB / 0.5596 GB, free: 4.465 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.617e-06/0.3332, allocations: 0 / 0.5596 GB, free: 4.465 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001325/0.3333, allocations: 116.8 kB / 0.5598 GB, free: 4.309 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.3333, allocations: 0 / 0.5598 GB, free: 4.309 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.751e-06/0.3333, allocations: 4 kB / 0.5598 GB, free: 4.305 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.583e-06/0.3333, allocations: 0 / 0.5598 GB, free: 4.305 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.858e-06/0.3333, allocations: 3.938 kB / 0.5598 GB, free: 4.301 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.283e-06/0.3333, allocations: 0 / 0.5598 GB, free: 4.301 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.597e-06/0.3333, allocations: 3.938 kB / 0.5598 GB, free: 4.297 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001688/0.3335, allocations: 124.5 kB / 0.5599 GB, free: 4.145 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.22e-06/0.3335, allocations: 4 kB / 0.5599 GB, free: 4.141 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.756e-05/0.3335, allocations: 3.938 kB / 0.5599 GB, free: 4.137 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.464e-05/0.3335, allocations: 0 / 0.5599 GB, free: 4.137 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.645e-05/0.3336, allocations: 7.922 kB / 0.5599 GB, free: 4.129 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.372e-06/0.3336, allocations: 4 kB / 0.5599 GB, free: 4.125 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.749e-05/0.3336, allocations: 75.28 kB / 0.56 GB, free: 4.051 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3336, allocations: 0 / 0.56 GB, free: 4.051 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003722/0.334, allocations: 19.94 kB / 0.56 GB, free: 4.031 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.001205/0.3352, allocations: 0.7438 MB / 0.5607 GB, free: 3.277 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001755/0.3354, allocations: 114.8 kB / 0.5608 GB, free: 3.141 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.325e-06/0.3354, allocations: 0 / 0.5608 GB, free: 3.141 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 8.484e-05/0.3355, allocations: 85.09 kB / 0.5609 GB, free: 3.039 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002355/0.3357, allocations: 6.344 kB / 0.5609 GB, free: 3.035 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004778/0.3362, allocations: 144.3 kB / 0.5611 GB, free: 2.848 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.253e-05/0.3362, allocations: 55.36 kB / 0.5611 GB, free: 2.773 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 7.093e-06/0.3362, allocations: 0 / 0.5611 GB, free: 2.773 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.927e-05/0.3363, allocations: 7.438 kB / 0.5611 GB, free: 2.766 MB / 398.1 MB Notification: Performance of SimCode: time 5.31e-07/0.3363, allocations: 3.938 kB / 0.5611 GB, free: 2.762 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03067/0.3669, allocations: 1.931 MB / 0.563 GB, free: 0.9609 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.22/11.58, allocations: 0 / 0.563 GB, free: 0.9609 MB / 398.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile_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_TestWriteFile.fmu > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestWriteFile/TestWriteFile.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.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.637831387110054]