Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001643/0.001643, allocations: 110.4 kB / 21.1 MB, free: 0.7891 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00146/0.00146, allocations: 206.2 kB / 24.38 MB, free: 4.203 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.449/1.449, allocations: 230.2 MB / 257.7 MB, free: 8.285 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2262/0.2262, allocations: 46.89 MB / 361 MB, free: 4.504 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Utilities.TestWriteFile,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Utilities_TestWriteFile",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestWriteFile,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Utilities_TestWriteFile",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002308/0.002308, allocations: 83.84 kB / 0.4961 GB, free: 8.25 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2851/0.2874, allocations: 66.03 MB / 0.5606 GB, free: 4.715 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001562/0.2889, allocations: 489 kB / 0.5611 GB, free: 4.238 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005477/0.2895, allocations: 225.7 kB / 0.5613 GB, free: 4.02 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.004e-05/0.2895, allocations: 0 / 0.5613 GB, free: 4.02 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.336e-05/0.2895, allocations: 4 kB / 0.5613 GB, free: 4.016 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 4.639e-06/0.2895, allocations: 0 / 0.5613 GB, free: 4.016 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Utilities.mo:300:3-331: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.0002688/0.2898, allocations: 47.83 kB / 0.5614 GB, free: 3.969 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.553e-05/0.2898, allocations: 0 / 0.5614 GB, free: 3.969 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.318e-05/0.2899, allocations: 4 kB / 0.5614 GB, free: 3.965 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.304e-05/0.2899, allocations: 0 / 0.5614 GB, free: 3.965 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.944e-05/0.2899, allocations: 0 / 0.5614 GB, free: 3.965 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.18e-06/0.2899, allocations: 0 / 0.5614 GB, free: 3.965 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001261/0.29, allocations: 59.94 kB / 0.5614 GB, free: 3.906 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.712e-06/0.29, allocations: 0 / 0.5614 GB, free: 3.906 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.679e-05/0.2901, allocations: 0 / 0.5614 GB, free: 3.906 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001104/0.2902, allocations: 51.62 kB / 0.5615 GB, free: 3.859 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.823e-06/0.2902, allocations: 7.984 kB / 0.5615 GB, free: 3.852 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.2902, allocations: 0 / 0.5615 GB, free: 3.852 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.859e-06/0.2902, allocations: 0 / 0.5615 GB, free: 3.852 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.000349/0.2905, allocations: 347.1 kB / 0.5618 GB, free: 3.457 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.768e-05/0.2906, allocations: 12.02 kB / 0.5618 GB, free: 3.445 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.221e-05/0.2906, allocations: 34.69 kB / 0.5619 GB, free: 3.402 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.345e-05/0.2906, allocations: 4.938 kB / 0.5619 GB, free: 3.398 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000113/0.2907, allocations: 160.4 kB / 0.562 GB, free: 3.203 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.11e-05/0.2908, allocations: 4.375 kB / 0.562 GB, free: 3.199 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.075e-06/0.2908, allocations: 4.375 kB / 0.562 GB, free: 3.195 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.835e-05/0.2908, allocations: 26.27 kB / 0.562 GB, free: 3.164 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.117e-06/0.2908, allocations: 3.938 kB / 0.562 GB, free: 3.16 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.082e-06/0.2909, allocations: 0 / 0.562 GB, free: 3.16 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.635e-06/0.2909, allocations: 4 kB / 0.5621 GB, free: 3.156 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.462e-05/0.2909, allocations: 0 / 0.5621 GB, free: 3.156 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001636/0.291, allocations: 149.7 kB / 0.5622 GB, free: 2.961 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.909e-05/0.2911, allocations: 30.55 kB / 0.5622 GB, free: 2.922 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.394e-05/0.2911, allocations: 4.859 kB / 0.5622 GB, free: 2.914 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.444e-06/0.2911, allocations: 0 / 0.5622 GB, free: 2.914 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.449e-05/0.2912, allocations: 56.27 kB / 0.5623 GB, free: 2.844 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 7.52e-07/0.2912, allocations: 0 / 0.5623 GB, free: 2.844 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001573/0.2913, allocations: 67.39 kB / 0.5623 GB, free: 2.766 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.089e-05/0.2914, allocations: 85.05 kB / 0.5624 GB, free: 2.664 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.719e-05/0.2914, allocations: 97.94 kB / 0.5625 GB, free: 2.559 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.619e-05/0.2915, allocations: 29.7 kB / 0.5625 GB, free: 2.523 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.697e-05/0.2915, allocations: 80.14 kB / 0.5626 GB, free: 2.441 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.468e-05/0.2915, allocations: 7.922 kB / 0.5626 GB, free: 2.434 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.98e-05/0.2915, allocations: 13.72 kB / 0.5626 GB, free: 2.414 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001501/0.2917, allocations: 314.8 kB / 0.5629 GB, free: 2.098 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.576e-06/0.2917, allocations: 0 / 0.5629 GB, free: 2.098 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.95e-06/0.2917, allocations: 0 / 0.5629 GB, free: 2.098 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.477e-05/0.2918, allocations: 68.33 kB / 0.563 GB, free: 2.016 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.2918, allocations: 0 / 0.563 GB, free: 2.016 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.861e-05/0.2918, allocations: 59.41 kB / 0.5631 GB, free: 1.945 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.002e-05/0.2919, allocations: 37.62 kB / 0.5631 GB, free: 1.902 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.761e-06/0.2919, allocations: 3.938 kB / 0.5631 GB, free: 1.898 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.166e-05/0.2919, allocations: 0 / 0.5631 GB, free: 1.898 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.42e-07/0.2919, allocations: 4 kB / 0.5631 GB, free: 1.895 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.238e-06/0.2919, allocations: 0 / 0.5631 GB, free: 1.895 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.382e-05/0.2919, allocations: 0 / 0.5631 GB, free: 1.895 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.15e-06/0.2919, allocations: 0 / 0.5631 GB, free: 1.895 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.112e-05/0.292, allocations: 144.8 kB / 0.5632 GB, free: 1.738 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.143e-06/0.292, allocations: 0 / 0.5632 GB, free: 1.738 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.233e-05/0.292, allocations: 6.938 kB / 0.5633 GB, free: 1.73 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.112e-06/0.292, allocations: 0 / 0.5633 GB, free: 1.73 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.856e-06/0.292, allocations: 0 / 0.5633 GB, free: 1.73 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.038e-06/0.292, allocations: 3.984 kB / 0.5633 GB, free: 1.727 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001165/0.2922, allocations: 149.7 kB / 0.5634 GB, free: 1.531 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.01e-07/0.2922, allocations: 0 / 0.5634 GB, free: 1.531 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.11e-07/0.2922, allocations: 0 / 0.5634 GB, free: 1.531 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.042e-06/0.2922, allocations: 4 kB / 0.5634 GB, free: 1.527 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.494e-06/0.2922, allocations: 3.938 kB / 0.5634 GB, free: 1.523 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.72e-07/0.2922, allocations: 0 / 0.5634 GB, free: 1.523 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.2922, allocations: 3.984 kB / 0.5634 GB, free: 1.52 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001059/0.2923, allocations: 94.77 kB / 0.5635 GB, free: 1.402 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.212e-05/0.2923, allocations: 77.11 kB / 0.5636 GB, free: 1.309 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.371e-05/0.2923, allocations: 7.938 kB / 0.5636 GB, free: 1.301 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.125e-06/0.2923, allocations: 0 / 0.5636 GB, free: 1.301 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.287e-05/0.2924, allocations: 8.016 kB / 0.5636 GB, free: 1.293 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.829e-06/0.2924, allocations: 4 kB / 0.5636 GB, free: 1.289 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.355e-05/0.2924, allocations: 75.28 kB / 0.5637 GB, free: 1.215 MB / 398.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2924, allocations: 0 / 0.5637 GB, free: 1.215 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002103/0.2926, allocations: 23.88 kB / 0.5637 GB, free: 1.191 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.0007217/0.2933, allocations: 0.7099 MB / 0.5644 GB, free: 480 kB / 398.1 MB Notification: Performance of simCode: created initialization part: time 9.962e-05/0.2934, allocations: 63.34 kB / 0.5644 GB, free: 404 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.2934, allocations: 0 / 0.5644 GB, free: 404 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.484e-05/0.2935, allocations: 51.41 kB / 0.5645 GB, free: 340 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000124/0.2936, allocations: 8 kB / 0.5645 GB, free: 332 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002914/0.2939, allocations: 114.6 kB / 0.5646 GB, free: 176 kB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003318/0.2942, allocations: 0.669 MB / 0.5653 GB, free: 15.48 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 8.025e-06/0.2942, allocations: 3.984 kB / 0.5653 GB, free: 15.47 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.763e-05/0.2942, allocations: 15.56 kB / 0.5653 GB, free: 15.46 MB / 414.1 MB Notification: Performance of SimCode: time 5.21e-07/0.2942, allocations: 0 / 0.5653 GB, free: 15.46 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02414/0.3184, allocations: 1.415 MB / 0.5667 GB, free: 14.11 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.094/8.412, allocations: 7.078 kB / 0.5667 GB, free: 14.1 MB / 414.1 MB " [Timeout remaining time 652] (rm -f ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_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_trunk_ModelicaTest_Utilities_TestWriteFile.fmu > ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_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_trunk_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: 11.210592355113477]