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.001914/0.001914, allocations: 79.59 kB / 20.49 MB, free: 1.387 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.002176/0.002176, allocations: 162.4 kB / 23.74 MB, free: 4.578 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.413/1.413, allocations: 177.1 MB / 203.9 MB, free: 9.266 MB / 190.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.2115/0.2115, allocations: 34.26 MB / 294.7 MB, free: 14.64 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.002388/0.002388, allocations: 79.88 kB / 441.9 MB, free: 6.051 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2843/0.2866, allocations: 66.06 MB / 0.496 GB, free: 1.797 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.00163/0.2883, allocations: 492.8 kB / 0.4965 GB, free: 1.32 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005607/0.2888, allocations: 217.8 kB / 0.4967 GB, free: 1.109 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.082e-05/0.2889, allocations: 0 / 0.4967 GB, free: 1.109 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.115e-05/0.2889, allocations: 4 kB / 0.4967 GB, free: 1.105 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.36e-06/0.2889, allocations: 0 / 0.4967 GB, free: 1.105 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.000277/0.2892, allocations: 47.83 kB / 0.4967 GB, free: 1.059 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.985e-05/0.2892, allocations: 3.984 kB / 0.4967 GB, free: 1.055 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.907e-05/0.2892, allocations: 0 / 0.4967 GB, free: 1.055 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.572e-05/0.2893, allocations: 4 kB / 0.4968 GB, free: 1.051 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.266e-05/0.2893, allocations: 3.938 kB / 0.4968 GB, free: 1.047 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.17e-06/0.2893, allocations: 0 / 0.4968 GB, free: 1.047 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001204/0.2894, allocations: 55.89 kB / 0.4968 GB, free: 0.9922 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.233e-06/0.2894, allocations: 0 / 0.4968 GB, free: 0.9922 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.653e-05/0.2894, allocations: 0 / 0.4968 GB, free: 0.9922 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000112/0.2896, allocations: 51.72 kB / 0.4969 GB, free: 0.9453 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.246e-06/0.2896, allocations: 0 / 0.4969 GB, free: 0.9453 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.2896, allocations: 3.938 kB / 0.4969 GB, free: 0.9414 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.274e-06/0.2896, allocations: 4 kB / 0.4969 GB, free: 0.9375 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.0003211/0.2899, allocations: 278.3 kB / 0.4971 GB, free: 0.6289 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.51e-05/0.2899, allocations: 8.031 kB / 0.4971 GB, free: 0.6211 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.516e-05/0.29, allocations: 30.75 kB / 0.4972 GB, free: 0.582 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.353e-05/0.29, allocations: 0.9375 kB / 0.4972 GB, free: 0.582 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.321e-05/0.2901, allocations: 106.5 kB / 0.4973 GB, free: 464 kB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.026e-05/0.2901, allocations: 4.312 kB / 0.4973 GB, free: 460 kB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.961e-06/0.2901, allocations: 384 / 0.4973 GB, free: 460 kB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.7e-05/0.2902, allocations: 59.97 kB / 0.4973 GB, free: 388 kB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.024e-05/0.2902, allocations: 7.922 kB / 0.4973 GB, free: 380 kB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.512e-06/0.2902, allocations: 0 / 0.4973 GB, free: 380 kB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.707e-06/0.2902, allocations: 0 / 0.4973 GB, free: 380 kB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.459e-05/0.2902, allocations: 33.64 kB / 0.4974 GB, free: 340 kB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001336/0.2904, allocations: 116.8 kB / 0.4975 GB, free: 180 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.495e-05/0.2904, allocations: 44.31 kB / 0.4975 GB, free: 120 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.889e-05/0.2905, allocations: 30.56 kB / 0.4976 GB, free: 80 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.296e-06/0.2905, allocations: 0 / 0.4976 GB, free: 80 kB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.281e-05/0.2905, allocations: 68.36 kB / 0.4976 GB, free: 15.99 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 1.032e-06/0.2905, allocations: 4 kB / 0.4976 GB, free: 15.99 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002012/0.2907, allocations: 118.7 kB / 0.4977 GB, free: 15.85 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.329e-05/0.2908, allocations: 77.11 kB / 0.4978 GB, free: 15.75 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.632e-05/0.2909, allocations: 97.75 kB / 0.4979 GB, free: 15.65 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.77e-05/0.2909, allocations: 29.7 kB / 0.4979 GB, free: 15.62 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.53e-05/0.2909, allocations: 80.14 kB / 0.498 GB, free: 15.54 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.391e-05/0.2909, allocations: 0 / 0.498 GB, free: 15.54 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.177e-05/0.291, allocations: 13.72 kB / 0.498 GB, free: 15.52 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001396/0.2911, allocations: 310.8 kB / 0.4983 GB, free: 15.2 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.665e-05/0.2911, allocations: 29.7 kB / 0.4983 GB, free: 15.17 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.925e-05/0.2911, allocations: 29.83 kB / 0.4984 GB, free: 15.13 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.174e-05/0.2912, allocations: 68.25 kB / 0.4984 GB, free: 15.05 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.2912, allocations: 3.938 kB / 0.4984 GB, free: 15.05 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.231e-05/0.2913, allocations: 85.11 kB / 0.4985 GB, free: 14.95 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.313e-05/0.2913, allocations: 31.89 kB / 0.4986 GB, free: 14.91 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.442e-06/0.2913, allocations: 3.938 kB / 0.4986 GB, free: 14.91 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.243e-05/0.2914, allocations: 0 / 0.4986 GB, free: 14.91 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.116e-06/0.2914, allocations: 4 kB / 0.4986 GB, free: 14.9 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.478e-06/0.2914, allocations: 4 kB / 0.4986 GB, free: 14.9 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.852e-05/0.2914, allocations: 8.078 kB / 0.4986 GB, free: 14.89 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.833e-06/0.2914, allocations: 0 / 0.4986 GB, free: 14.89 MB / 414.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.0001077/0.2915, allocations: 140.4 kB / 0.4987 GB, free: 14.74 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.414e-06/0.2915, allocations: 0 / 0.4987 GB, free: 14.74 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.216e-05/0.2915, allocations: 10.88 kB / 0.4987 GB, free: 14.73 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.362e-06/0.2915, allocations: 3.938 kB / 0.4987 GB, free: 14.72 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.767e-06/0.2915, allocations: 0 / 0.4987 GB, free: 14.72 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.154e-06/0.2915, allocations: 0 / 0.4987 GB, free: 14.72 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.876e-05/0.2916, allocations: 124.7 kB / 0.4988 GB, free: 14.56 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.2916, allocations: 0 / 0.4988 GB, free: 14.56 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.11e-07/0.2916, allocations: 0 / 0.4988 GB, free: 14.56 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.774e-06/0.2916, allocations: 4 kB / 0.4988 GB, free: 14.55 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.126e-05/0.2916, allocations: 3.938 kB / 0.4988 GB, free: 14.55 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.02e-07/0.2916, allocations: 0 / 0.4988 GB, free: 14.55 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.896e-06/0.2916, allocations: 7.938 kB / 0.4989 GB, free: 14.54 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000119/0.2918, allocations: 116.5 kB / 0.499 GB, free: 14.4 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.797e-06/0.2918, allocations: 0 / 0.499 GB, free: 14.4 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.265e-05/0.2918, allocations: 3.938 kB / 0.499 GB, free: 14.39 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.415e-06/0.2918, allocations: 0 / 0.499 GB, free: 14.39 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.647e-05/0.2918, allocations: 4 kB / 0.499 GB, free: 14.39 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.605e-06/0.2918, allocations: 0 / 0.499 GB, free: 14.39 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.675e-05/0.2918, allocations: 83.31 kB / 0.4991 GB, free: 14.31 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2918, allocations: 0 / 0.4991 GB, free: 14.31 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002214/0.2921, allocations: 19.92 kB / 0.4991 GB, free: 14.29 MB / 414.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.000764/0.2928, allocations: 0.7444 MB / 0.4998 GB, free: 13.53 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001211/0.2929, allocations: 118.7 kB / 0.4999 GB, free: 13.39 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.503e-06/0.2929, allocations: 0 / 0.4999 GB, free: 13.39 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.789e-05/0.293, allocations: 81.11 kB / 0.5 GB, free: 13.29 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000119/0.2931, allocations: 0 / 0.5 GB, free: 13.29 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003105/0.2934, allocations: 152.2 kB / 0.5001 GB, free: 13.09 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.383e-05/0.2935, allocations: 63.47 kB / 0.5002 GB, free: 13.01 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 4.959e-06/0.2935, allocations: 0 / 0.5002 GB, free: 13.01 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.838e-05/0.2935, allocations: 8.5 kB / 0.5002 GB, free: 13 MB / 414.1 MB Notification: Performance of SimCode: time 4.61e-07/0.2935, allocations: 3.938 kB / 0.5002 GB, free: 13 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02811/0.3216, allocations: 2.029 MB / 0.5022 GB, free: 11.06 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.69/12.01, allocations: 16 kB / 0.5022 GB, free: 11.04 MB / 414.1 MB " [Timeout remaining time 648] (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.1.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: 14.742554104886949]