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.001047/0.001047, allocations: 103.1 kB / 17.63 MB, free: 5.344 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.001018/0.001018, allocations: 192 kB / 18.56 MB, free: 4.434 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.378/1.378, allocations: 222.9 MB / 242.3 MB, free: 15.16 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.2204/0.2204, allocations: 44.18 MB / 336.6 MB, free: 2.742 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001226/0.001227, allocations: 61.3 kB / 408.5 MB, free: 27.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1227/0.1239, allocations: 60.83 MB / 469.4 MB, free: 14.25 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001798/0.1258, allocations: 475.7 kB / 469.8 MB, free: 13.79 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005016/0.1263, allocations: 209.9 kB / 470 MB, free: 13.58 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.227e-05/0.1263, allocations: 4 kB / 470 MB, free: 13.58 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.038e-05/0.1263, allocations: 0 / 470 MB, free: 13.58 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.258e-06/0.1264, allocations: 0 / 470 MB, free: 13.58 MB / 350.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.0003047/0.1267, allocations: 43.84 kB / 470.1 MB, free: 13.54 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.637e-05/0.1267, allocations: 0 / 470.1 MB, free: 13.54 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.587e-05/0.1268, allocations: 7.984 kB / 470.1 MB, free: 13.53 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.401e-05/0.1268, allocations: 3.828 kB / 470.1 MB, free: 13.53 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2e-05/0.1268, allocations: 0 / 470.1 MB, free: 13.53 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.101e-06/0.1269, allocations: 0 / 470.1 MB, free: 13.53 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001444/0.127, allocations: 55.94 kB / 470.1 MB, free: 13.47 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.973e-06/0.127, allocations: 0 / 470.1 MB, free: 13.47 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.896e-05/0.127, allocations: 4 kB / 470.1 MB, free: 13.47 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001195/0.1272, allocations: 39.95 kB / 470.2 MB, free: 13.43 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.1272, allocations: 0 / 470.2 MB, free: 13.43 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.1272, allocations: 0 / 470.2 MB, free: 13.43 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.312e-06/0.1272, allocations: 7.938 kB / 470.2 MB, free: 13.42 MB / 350.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.0003139/0.1275, allocations: 353.2 kB / 470.5 MB, free: 13.02 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.003e-05/0.1276, allocations: 12.03 kB / 470.5 MB, free: 13.01 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.188e-05/0.1276, allocations: 30.75 kB / 470.6 MB, free: 12.97 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.248e-05/0.1276, allocations: 0.9375 kB / 470.6 MB, free: 12.97 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.133e-05/0.1277, allocations: 168.4 kB / 470.7 MB, free: 12.77 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.286e-05/0.1277, allocations: 4.312 kB / 470.7 MB, free: 12.76 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.234e-05/0.1278, allocations: 4.375 kB / 470.8 MB, free: 12.76 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.742e-05/0.1278, allocations: 26.27 kB / 470.8 MB, free: 12.73 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.736e-06/0.1279, allocations: 3.938 kB / 470.8 MB, free: 12.72 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.123e-06/0.1279, allocations: 0 / 470.8 MB, free: 12.72 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.248e-06/0.1279, allocations: 0 / 470.8 MB, free: 12.72 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.029e-05/0.1279, allocations: 4 kB / 470.8 MB, free: 12.72 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001233/0.128, allocations: 149.7 kB / 470.9 MB, free: 12.52 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.08e-05/0.1281, allocations: 30.53 kB / 471 MB, free: 12.48 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.508e-05/0.1281, allocations: 4.859 kB / 471 MB, free: 12.48 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.636e-06/0.1281, allocations: 0 / 471 MB, free: 12.48 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.092e-05/0.1282, allocations: 56.27 kB / 471 MB, free: 12.41 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 9.42e-07/0.1282, allocations: 0 / 471 MB, free: 12.41 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001753/0.1284, allocations: 71.39 kB / 471.1 MB, free: 12.32 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.092e-05/0.1284, allocations: 81.23 kB / 471.2 MB, free: 12.23 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.928e-05/0.1285, allocations: 93.86 kB / 471.3 MB, free: 12.12 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.268e-05/0.1285, allocations: 25.7 kB / 471.3 MB, free: 12.09 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.381e-05/0.1285, allocations: 84.12 kB / 471.4 MB, free: 12.01 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.526e-05/0.1286, allocations: 0 / 471.4 MB, free: 12.01 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.964e-05/0.1286, allocations: 9.719 kB / 471.4 MB, free: 11.99 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000147/0.1288, allocations: 318.8 kB / 471.7 MB, free: 11.67 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.036e-05/0.1288, allocations: 3.938 kB / 471.7 MB, free: 11.67 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.542e-06/0.1288, allocations: 0 / 471.7 MB, free: 11.67 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.847e-05/0.1288, allocations: 68.31 kB / 471.8 MB, free: 11.59 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.963e-06/0.1288, allocations: 0 / 471.8 MB, free: 11.59 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.763e-05/0.1289, allocations: 59.41 kB / 471.8 MB, free: 11.52 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.741e-05/0.129, allocations: 29.7 kB / 471.8 MB, free: 11.48 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.836e-06/0.129, allocations: 3.938 kB / 471.9 MB, free: 11.48 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.031e-05/0.129, allocations: 0 / 471.9 MB, free: 11.48 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.338e-06/0.129, allocations: 3.984 kB / 471.9 MB, free: 11.47 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.045e-06/0.129, allocations: 7.984 kB / 471.9 MB, free: 11.46 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.81e-05/0.1291, allocations: 7.969 kB / 471.9 MB, free: 11.46 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.938e-06/0.1291, allocations: 4 kB / 471.9 MB, free: 11.45 MB / 350.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.188e-05/0.1292, allocations: 139.5 kB / 472 MB, free: 11.3 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.839e-06/0.1292, allocations: 0 / 472 MB, free: 11.3 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.467e-05/0.1292, allocations: 11.02 kB / 472 MB, free: 11.29 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.684e-06/0.1292, allocations: 3.938 kB / 472 MB, free: 11.29 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/0.1292, allocations: 4 kB / 472 MB, free: 11.28 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.894e-06/0.1292, allocations: 0 / 472 MB, free: 11.28 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001121/0.1293, allocations: 149.7 kB / 472.2 MB, free: 11.09 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.884e-06/0.1293, allocations: 0 / 472.2 MB, free: 11.09 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.222e-06/0.1294, allocations: 4 kB / 472.2 MB, free: 11.08 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.776e-06/0.1294, allocations: 0 / 472.2 MB, free: 11.08 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.377e-06/0.1294, allocations: 3.938 kB / 472.2 MB, free: 11.08 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.92e-07/0.1294, allocations: 0 / 472.2 MB, free: 11.08 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.1294, allocations: 0 / 472.2 MB, free: 11.08 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001057/0.1295, allocations: 90.83 kB / 472.3 MB, free: 10.96 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.034e-05/0.1295, allocations: 81.3 kB / 472.4 MB, free: 10.87 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.531e-05/0.1296, allocations: 7.969 kB / 472.4 MB, free: 10.86 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.437e-06/0.1296, allocations: 4 kB / 472.4 MB, free: 10.86 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.086e-05/0.1296, allocations: 0 / 472.4 MB, free: 10.86 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.599e-06/0.1296, allocations: 7.938 kB / 472.4 MB, free: 10.85 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.327e-05/0.1297, allocations: 75.28 kB / 472.4 MB, free: 10.77 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1297, allocations: 0 / 472.4 MB, free: 10.77 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002158/0.1299, allocations: 15.98 kB / 472.5 MB, free: 10.76 MB / 350.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.0006529/0.1305, allocations: 0.7323 MB / 473.2 MB, free: 10.03 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 8.435e-05/0.1306, allocations: 59.41 kB / 473.3 MB, free: 9.961 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.1307, allocations: 0 / 473.3 MB, free: 9.961 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.488e-05/0.1307, allocations: 59.34 kB / 473.3 MB, free: 9.891 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000118/0.1308, allocations: 0 / 473.3 MB, free: 9.891 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003073/0.1311, allocations: 134.6 kB / 473.4 MB, free: 9.719 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002265/0.1314, allocations: 0.6728 MB / 474.1 MB, free: 9.02 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.853e-06/0.1314, allocations: 0 / 474.1 MB, free: 9.02 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.666e-05/0.1314, allocations: 7.438 kB / 474.1 MB, free: 9.012 MB / 350.1 MB Notification: Performance of SimCode: time 4.81e-07/0.1314, allocations: 0 / 474.1 MB, free: 9.012 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0202/0.1516, allocations: 1.359 MB / 475.5 MB, free: 7.703 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.352/7.504, allocations: 11.81 kB / 475.5 MB, free: 7.695 MB / 350.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