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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001133/0.001133, allocations: 118.4 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001076/0.001076, allocations: 183.8 kB / 18.72 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.326/1.326, allocations: 222.9 MB / 242.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.208/0.208, allocations: 44.19 MB / 336.8 MB, free: 2.656 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00131/0.00131, allocations: 67.89 kB / 470 MB, free: 13.68 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2895/0.2908, allocations: 60.82 MB / 0.5184 GB, free: 3.156 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001438/0.2923, allocations: 493.1 kB / 0.5189 GB, free: 2.863 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004091/0.2927, allocations: 212.7 kB / 0.5191 GB, free: 2.734 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.894e-05/0.2927, allocations: 0 / 0.5191 GB, free: 2.734 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.06e-05/0.2927, allocations: 0 / 0.5191 GB, free: 2.734 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 5.47e-06/0.2927, allocations: 4 kB / 0.5191 GB, free: 2.73 MB / 382.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.0002456/0.293, allocations: 44.66 kB / 0.5191 GB, free: 2.707 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 4.932e-05/0.2931, allocations: 11.14 kB / 0.5191 GB, free: 2.699 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.819e-05/0.2931, allocations: 0.6562 kB / 0.5191 GB, free: 2.699 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.358e-05/0.2931, allocations: 1.438 kB / 0.5191 GB, free: 2.699 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.875e-05/0.2931, allocations: 0.7969 kB / 0.5191 GB, free: 2.699 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.43e-06/0.2931, allocations: 0 / 0.5191 GB, free: 2.699 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001205/0.2933, allocations: 50.39 kB / 0.5192 GB, free: 2.684 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.492e-06/0.2933, allocations: 1.219 kB / 0.5192 GB, free: 2.684 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 1.64e-05/0.2933, allocations: 0.9688 kB / 0.5192 GB, free: 2.684 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001067/0.2934, allocations: 50.11 kB / 0.5192 GB, free: 2.664 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.2934, allocations: 0 / 0.5192 GB, free: 2.664 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.2934, allocations: 1.25 kB / 0.5192 GB, free: 2.664 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.847e-06/0.2935, allocations: 0 / 0.5192 GB, free: 2.664 MB / 382.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.0002241/0.2937, allocations: 355.9 kB / 0.5196 GB, free: 2.273 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.648e-05/0.2937, allocations: 9.406 kB / 0.5196 GB, free: 2.273 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 1.893e-05/0.2937, allocations: 32.52 kB / 0.5196 GB, free: 2.234 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.257e-05/0.2938, allocations: 0.9375 kB / 0.5196 GB, free: 2.234 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.383e-05/0.2938, allocations: 166.8 kB / 0.5198 GB, free: 2.035 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.067e-06/0.2938, allocations: 384 / 0.5198 GB, free: 2.035 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.388e-06/0.2939, allocations: 5.844 kB / 0.5198 GB, free: 2.031 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.786e-05/0.2939, allocations: 28.92 kB / 0.5198 GB, free: 2 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.783e-06/0.2939, allocations: 5.406 kB / 0.5198 GB, free: 1.996 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.462e-06/0.294, allocations: 3.938 kB / 0.5198 GB, free: 1.992 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.744e-06/0.294, allocations: 0.6094 kB / 0.5198 GB, free: 1.992 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.569e-05/0.294, allocations: 5.359 kB / 0.5198 GB, free: 1.988 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.492e-05/0.2941, allocations: 148.8 kB / 0.52 GB, free: 1.797 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.671e-05/0.2941, allocations: 25.98 kB / 0.52 GB, free: 1.766 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.213e-05/0.2941, allocations: 6.203 kB / 0.52 GB, free: 1.758 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.79e-06/0.2941, allocations: 0 / 0.52 GB, free: 1.758 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.58e-05/0.2942, allocations: 58.39 kB / 0.52 GB, free: 1.688 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 8.52e-07/0.2942, allocations: 0 / 0.52 GB, free: 1.688 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001381/0.2943, allocations: 70.19 kB / 0.5201 GB, free: 1.617 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.283e-05/0.2943, allocations: 78.2 kB / 0.5202 GB, free: 1.523 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.602e-05/0.2944, allocations: 90.61 kB / 0.5203 GB, free: 1.426 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.911e-06/0.2944, allocations: 29.83 kB / 0.5203 GB, free: 1.391 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.185e-06/0.2944, allocations: 85.2 kB / 0.5204 GB, free: 1.305 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.318e-05/0.2944, allocations: 0 / 0.5204 GB, free: 1.305 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.23e-05/0.2944, allocations: 12.7 kB / 0.5204 GB, free: 1.289 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.603e-05/0.2945, allocations: 316.5 kB / 0.5207 GB, free: 0.9727 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.879e-06/0.2945, allocations: 1.156 kB / 0.5207 GB, free: 0.9727 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.871e-06/0.2945, allocations: 1.828 kB / 0.5207 GB, free: 0.9727 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.195e-05/0.2945, allocations: 64.39 kB / 0.5208 GB, free: 0.8984 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.2945, allocations: 0 / 0.5208 GB, free: 0.8984 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.067e-05/0.2946, allocations: 60.53 kB / 0.5208 GB, free: 0.8359 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.339e-05/0.2946, allocations: 32.39 kB / 0.5208 GB, free: 0.8047 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.769e-06/0.2946, allocations: 7.875 kB / 0.5209 GB, free: 0.7969 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.119e-05/0.2947, allocations: 0 / 0.5209 GB, free: 0.7969 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.645e-06/0.2947, allocations: 1.75 kB / 0.5209 GB, free: 0.7969 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.198e-06/0.2947, allocations: 3.938 kB / 0.5209 GB, free: 0.793 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.64e-05/0.2947, allocations: 5.188 kB / 0.5209 GB, free: 0.7891 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.913e-06/0.2947, allocations: 0.7031 kB / 0.5209 GB, free: 0.7891 MB / 382.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 4.348e-05/0.2947, allocations: 142.6 kB / 0.521 GB, free: 0.6367 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.258e-06/0.2948, allocations: 5.891 kB / 0.521 GB, free: 0.6328 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.937e-06/0.2948, allocations: 12.33 kB / 0.521 GB, free: 0.6211 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.533e-06/0.2948, allocations: 1.188 kB / 0.521 GB, free: 0.6211 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.236e-06/0.2948, allocations: 0 / 0.521 GB, free: 0.6211 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.804e-06/0.2948, allocations: 0 / 0.521 GB, free: 0.6211 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.24e-05/0.2948, allocations: 146 kB / 0.5212 GB, free: 444 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.41e-07/0.2948, allocations: 0 / 0.5212 GB, free: 444 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.61e-07/0.2949, allocations: 0 / 0.5212 GB, free: 444 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.154e-06/0.2949, allocations: 5.828 kB / 0.5212 GB, free: 440 kB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.951e-06/0.2949, allocations: 3.938 kB / 0.5212 GB, free: 436 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.62e-07/0.2949, allocations: 1.062 kB / 0.5212 GB, free: 436 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.2949, allocations: 4.734 kB / 0.5212 GB, free: 432 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.403e-05/0.295, allocations: 93.09 kB / 0.5213 GB, free: 328 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.261e-05/0.295, allocations: 77.81 kB / 0.5213 GB, free: 232 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.275e-05/0.295, allocations: 5.797 kB / 0.5213 GB, free: 228 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.007e-06/0.295, allocations: 5.156 kB / 0.5213 GB, free: 224 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.328e-05/0.295, allocations: 4.031 kB / 0.5214 GB, free: 220 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.166e-06/0.295, allocations: 1.953 kB / 0.5214 GB, free: 220 kB / 382.1 MB Notification: Performance of sorting global known variables: time 1.049e-05/0.295, allocations: 79.28 kB / 0.5214 GB, free: 140 kB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2951, allocations: 1.281 kB / 0.5214 GB, free: 140 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002178/0.2953, allocations: 16.88 kB / 0.5214 GB, free: 136 kB / 382.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.000616/0.2959, allocations: 0.7229 MB / 0.5222 GB, free: 15.47 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 8.919e-05/0.296, allocations: 69.88 kB / 0.5222 GB, free: 15.39 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.296, allocations: 0 / 0.5222 GB, free: 15.39 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.818e-05/0.2961, allocations: 56.5 kB / 0.5223 GB, free: 15.33 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001209/0.2962, allocations: 7 kB / 0.5223 GB, free: 15.33 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002659/0.2965, allocations: 112.9 kB / 0.5224 GB, free: 15.2 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002169/0.2967, allocations: 0.6786 MB / 0.5231 GB, free: 14.49 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.82e-06/0.2967, allocations: 1.781 kB / 0.5231 GB, free: 14.49 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.12e-05/0.2967, allocations: 8.562 kB / 0.5231 GB, free: 14.48 MB / 398.1 MB Notification: Performance of SimCode: time 2.31e-07/0.2967, allocations: 0 / 0.5231 GB, free: 14.48 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01671/0.3134, allocations: 1.383 MB / 0.5244 GB, free: 14.04 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.527/7.84, allocations: 10.16 kB / 0.5244 GB, free: 14.04 MB / 398.1 MB (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) 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) Reference file matches