Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.001364/0.001364, allocations: 113.1 kB / 20.43 MB, free: 1.457 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.001531/0.001531, allocations: 215.7 kB / 23.75 MB, free: 4.668 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.458/1.458, allocations: 230.6 MB / 257.5 MB, free: 8 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.2241/0.2241, allocations: 46.93 MB / 360.9 MB, free: 4.285 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.TestWriteFile,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Utilities_TestWriteFile",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestWriteFile,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Utilities_TestWriteFile",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002039/0.002039, allocations: 67.89 kB / 0.4961 GB, free: 7.949 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3493/0.3513, allocations: 66.04 MB / 0.5606 GB, free: 4.402 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001608/0.3529, allocations: 481.1 kB / 0.5611 GB, free: 3.93 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006001/0.3535, allocations: 233.7 kB / 0.5613 GB, free: 3.703 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.243e-05/0.3535, allocations: 0 / 0.5613 GB, free: 3.703 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.58e-05/0.3536, allocations: 3.938 kB / 0.5613 GB, free: 3.699 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.25e-06/0.3536, allocations: 7.938 kB / 0.5613 GB, free: 3.691 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/Utilities.mo:289:3-320: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.000291/0.3538, allocations: 39.89 kB / 0.5614 GB, free: 3.652 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.147e-05/0.3539, allocations: 8 kB / 0.5614 GB, free: 3.645 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.922e-05/0.3539, allocations: 3.938 kB / 0.5614 GB, free: 3.641 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.729e-05/0.354, allocations: 3.984 kB / 0.5614 GB, free: 3.637 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.04e-05/0.354, allocations: 0 / 0.5614 GB, free: 3.637 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.911e-06/0.354, allocations: 0 / 0.5614 GB, free: 3.637 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001417/0.3541, allocations: 55.95 kB / 0.5614 GB, free: 3.582 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.374e-06/0.3541, allocations: 0 / 0.5614 GB, free: 3.582 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.939e-05/0.3541, allocations: 0 / 0.5614 GB, free: 3.582 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001214/0.3543, allocations: 51.67 kB / 0.5615 GB, free: 3.535 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.3543, allocations: 0 / 0.5615 GB, free: 3.535 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.3543, allocations: 0 / 0.5615 GB, free: 3.535 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.781e-06/0.3543, allocations: 4 kB / 0.5615 GB, free: 3.531 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.0003282/0.3546, allocations: 274 kB / 0.5617 GB, free: 3.227 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.896e-05/0.3546, allocations: 8.031 kB / 0.5618 GB, free: 3.219 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.06e-05/0.3547, allocations: 30.75 kB / 0.5618 GB, free: 3.18 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.557e-05/0.3547, allocations: 12.92 kB / 0.5618 GB, free: 3.168 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.922e-05/0.3548, allocations: 102.5 kB / 0.5619 GB, free: 3.043 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.773e-06/0.3548, allocations: 384 / 0.5619 GB, free: 3.043 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.031e-05/0.3548, allocations: 384 / 0.5619 GB, free: 3.043 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.311e-05/0.3549, allocations: 38.2 kB / 0.5619 GB, free: 3 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.678e-06/0.3549, allocations: 3.938 kB / 0.5619 GB, free: 2.996 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.023e-06/0.3549, allocations: 0 / 0.5619 GB, free: 2.996 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.238e-06/0.3549, allocations: 0 / 0.5619 GB, free: 2.996 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.122e-05/0.3549, allocations: 4 kB / 0.5619 GB, free: 2.992 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001369/0.3551, allocations: 116.8 kB / 0.562 GB, free: 2.836 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.845e-05/0.3551, allocations: 18.58 kB / 0.5621 GB, free: 2.809 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.721e-05/0.3551, allocations: 8.953 kB / 0.5621 GB, free: 2.797 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.494e-06/0.3551, allocations: 4 kB / 0.5621 GB, free: 2.793 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.087e-05/0.3552, allocations: 60.2 kB / 0.5621 GB, free: 2.719 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.22e-07/0.3552, allocations: 0 / 0.5621 GB, free: 2.719 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.000187/0.3554, allocations: 67.33 kB / 0.5622 GB, free: 2.641 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.824e-05/0.3554, allocations: 81.11 kB / 0.5623 GB, free: 2.543 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.565e-05/0.3555, allocations: 93.81 kB / 0.5624 GB, free: 2.441 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.333e-05/0.3555, allocations: 25.7 kB / 0.5624 GB, free: 2.41 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.443e-05/0.3556, allocations: 84.27 kB / 0.5625 GB, free: 2.324 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.861e-05/0.3556, allocations: 4 kB / 0.5625 GB, free: 2.32 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.122e-05/0.3556, allocations: 13.66 kB / 0.5625 GB, free: 2.301 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001459/0.3558, allocations: 314.8 kB / 0.5628 GB, free: 1.984 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.918e-06/0.3558, allocations: 4 kB / 0.5628 GB, free: 1.98 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.391e-06/0.3558, allocations: 0 / 0.5628 GB, free: 1.98 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.027e-05/0.3558, allocations: 72.19 kB / 0.5629 GB, free: 1.895 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.3558, allocations: 0 / 0.5629 GB, free: 1.895 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.366e-05/0.3559, allocations: 63.47 kB / 0.5629 GB, free: 1.82 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.477e-05/0.3559, allocations: 29.7 kB / 0.5629 GB, free: 1.785 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.991e-06/0.356, allocations: 3.938 kB / 0.563 GB, free: 1.781 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.484e-05/0.356, allocations: 0 / 0.563 GB, free: 1.781 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.246e-06/0.356, allocations: 3.984 kB / 0.563 GB, free: 1.777 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.779e-06/0.356, allocations: 0 / 0.563 GB, free: 1.777 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.88e-05/0.356, allocations: 4 kB / 0.563 GB, free: 1.773 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.973e-06/0.356, allocations: 0 / 0.563 GB, free: 1.773 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.961e-05/0.3561, allocations: 135.5 kB / 0.5631 GB, free: 1.625 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.079e-05/0.3561, allocations: 8.031 kB / 0.5631 GB, free: 1.617 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.293e-05/0.3561, allocations: 6.938 kB / 0.5631 GB, free: 1.609 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.202e-06/0.3561, allocations: 0 / 0.5631 GB, free: 1.609 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.817e-06/0.3561, allocations: 0 / 0.5631 GB, free: 1.609 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.815e-06/0.3561, allocations: 0 / 0.5631 GB, free: 1.609 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001074/0.3562, allocations: 120.8 kB / 0.5632 GB, free: 1.449 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.91e-07/0.3562, allocations: 3.938 kB / 0.5632 GB, free: 1.445 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.524e-06/0.3562, allocations: 4 kB / 0.5632 GB, free: 1.441 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.382e-06/0.3562, allocations: 0 / 0.5632 GB, free: 1.441 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.616e-06/0.3563, allocations: 3.938 kB / 0.5632 GB, free: 1.438 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.81e-07/0.3563, allocations: 0 / 0.5632 GB, free: 1.438 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/0.3563, allocations: 4 kB / 0.5632 GB, free: 1.434 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001059/0.3564, allocations: 90.83 kB / 0.5633 GB, free: 1.32 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.537e-06/0.3564, allocations: 0 / 0.5633 GB, free: 1.32 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.841e-05/0.3564, allocations: 7.938 kB / 0.5633 GB, free: 1.312 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.087e-06/0.3564, allocations: 0 / 0.5633 GB, free: 1.312 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.687e-05/0.3564, allocations: 0 / 0.5633 GB, free: 1.312 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.655e-06/0.3564, allocations: 0 / 0.5633 GB, free: 1.312 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.545e-05/0.3565, allocations: 79.31 kB / 0.5634 GB, free: 1.234 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3565, allocations: 0 / 0.5634 GB, free: 1.234 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002336/0.3567, allocations: 23.92 kB / 0.5634 GB, free: 1.211 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.0007547/0.3574, allocations: 0.7169 MB / 0.5641 GB, free: 500 kB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001059/0.3576, allocations: 67.39 kB / 0.5642 GB, free: 420 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.3576, allocations: 4.062 kB / 0.5642 GB, free: 416 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.757e-05/0.3576, allocations: 59.34 kB / 0.5643 GB, free: 344 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001214/0.3577, allocations: 0 / 0.5643 GB, free: 344 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003089/0.358, allocations: 118.6 kB / 0.5644 GB, free: 184 kB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003401/0.3584, allocations: 0.6729 MB / 0.565 GB, free: 15.48 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 6.302e-06/0.3584, allocations: 0 / 0.565 GB, free: 15.48 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.423e-05/0.3584, allocations: 7.438 kB / 0.565 GB, free: 15.47 MB / 414.1 MB Notification: Performance of SimCode: time 3.11e-07/0.3584, allocations: 0 / 0.565 GB, free: 15.47 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02693/0.3853, allocations: 1.53 MB / 0.5665 GB, free: 14.07 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.22/11.61, allocations: 3.047 kB / 0.5665 GB, free: 14.07 MB / 414.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.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_1_0_ModelicaTest_Utilities_TestWriteFile.fmu > ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestWriteFile/TestWriteFile.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.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.498477923996688]