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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00159/0.00159, allocations: 103.7 kB / 17.63 MB, free: 5.52 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00199/0.00199, allocations: 204.6 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.433/1.433, allocations: 227.4 MB / 246.8 MB, free: 10.63 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2292/0.2292, allocations: 46.1 MB / 344.1 MB, free: 11.62 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001412/0.001412, allocations: 77.75 kB / 417.7 MB, free: 19.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1061/0.1076, allocations: 62.44 MB / 480.1 MB, free: 5.219 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001706/0.1093, allocations: 475.7 kB / 480.6 MB, free: 4.75 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005064/0.1098, allocations: 210.1 kB / 480.8 MB, free: 4.547 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.819e-05/0.1099, allocations: 4 kB / 480.8 MB, free: 4.543 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.018e-05/0.1099, allocations: 0 / 480.8 MB, free: 4.543 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.713e-06/0.1099, allocations: 3.938 kB / 480.8 MB, free: 4.539 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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.0002747/0.1102, allocations: 47.77 kB / 480.8 MB, free: 4.492 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.206e-05/0.1103, allocations: 4 kB / 480.8 MB, free: 4.488 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.201e-05/0.1103, allocations: 0 / 480.8 MB, free: 4.488 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.42e-05/0.1103, allocations: 0 / 480.8 MB, free: 4.488 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.062e-05/0.1103, allocations: 0 / 480.8 MB, free: 4.488 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.36e-06/0.1104, allocations: 3.938 kB / 480.9 MB, free: 4.484 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001201/0.1105, allocations: 55.94 kB / 480.9 MB, free: 4.43 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.583e-06/0.1105, allocations: 0 / 480.9 MB, free: 4.43 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.133e-05/0.1105, allocations: 8 kB / 480.9 MB, free: 4.422 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001168/0.1106, allocations: 43.94 kB / 481 MB, free: 4.379 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.336e-06/0.1107, allocations: 0 / 481 MB, free: 4.379 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.1107, allocations: 0 / 481 MB, free: 4.379 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.873e-06/0.1107, allocations: 0 / 481 MB, free: 4.379 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.0002954/0.111, allocations: 357.2 kB / 481.3 MB, free: 3.973 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.704e-05/0.111, allocations: 8.031 kB / 481.3 MB, free: 3.965 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.442e-05/0.1111, allocations: 30.75 kB / 481.3 MB, free: 3.926 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.323e-05/0.1111, allocations: 4.938 kB / 481.3 MB, free: 3.922 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.279e-05/0.1112, allocations: 160.4 kB / 481.5 MB, free: 3.727 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.414e-06/0.1112, allocations: 8.375 kB / 481.5 MB, free: 3.719 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.675e-06/0.1112, allocations: 384 / 481.5 MB, free: 3.719 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.176e-05/0.1113, allocations: 34.19 kB / 481.5 MB, free: 3.68 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.686e-06/0.1113, allocations: 7.938 kB / 481.6 MB, free: 3.672 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.983e-06/0.1113, allocations: 0 / 481.6 MB, free: 3.672 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.228e-06/0.1113, allocations: 0 / 481.6 MB, free: 3.672 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.692e-05/0.1113, allocations: 0 / 481.6 MB, free: 3.672 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001156/0.1115, allocations: 145.7 kB / 481.7 MB, free: 3.48 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.365e-05/0.1115, allocations: 22.61 kB / 481.7 MB, free: 3.449 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.514e-05/0.1115, allocations: 4.859 kB / 481.7 MB, free: 3.441 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.212e-06/0.1115, allocations: 0 / 481.7 MB, free: 3.441 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.2e-05/0.1116, allocations: 64.31 kB / 481.8 MB, free: 3.363 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.102e-06/0.1116, allocations: 3.938 kB / 481.8 MB, free: 3.359 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001525/0.1118, allocations: 67.34 kB / 481.9 MB, free: 3.281 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.969e-05/0.1118, allocations: 77.23 kB / 481.9 MB, free: 3.188 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.316e-05/0.1119, allocations: 93.86 kB / 482 MB, free: 3.086 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.212e-05/0.1119, allocations: 25.7 kB / 482 MB, free: 3.055 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.304e-05/0.1119, allocations: 80.14 kB / 482.1 MB, free: 2.973 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.756e-05/0.1119, allocations: 3.984 kB / 482.1 MB, free: 2.969 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.049e-05/0.112, allocations: 21.7 kB / 482.2 MB, free: 2.941 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001036/0.1121, allocations: 310.8 kB / 482.5 MB, free: 2.629 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.736e-06/0.1121, allocations: 3.938 kB / 482.5 MB, free: 2.625 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.54e-06/0.1121, allocations: 0 / 482.5 MB, free: 2.625 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.143e-05/0.1122, allocations: 68.27 kB / 482.5 MB, free: 2.543 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.383e-06/0.1122, allocations: 0 / 482.5 MB, free: 2.543 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.604e-05/0.1122, allocations: 63.39 kB / 482.6 MB, free: 2.469 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.053e-05/0.1123, allocations: 37.64 kB / 482.6 MB, free: 2.426 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.962e-06/0.1123, allocations: 7.938 kB / 482.6 MB, free: 2.418 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.051e-05/0.1123, allocations: 0 / 482.6 MB, free: 2.418 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.112e-06/0.1123, allocations: 0 / 482.6 MB, free: 2.418 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.549e-06/0.1123, allocations: 0 / 482.6 MB, free: 2.418 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.441e-05/0.1123, allocations: 0 / 482.6 MB, free: 2.418 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.911e-06/0.1124, allocations: 4.031 kB / 482.6 MB, free: 2.414 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 7.258e-05/0.1124, allocations: 135.5 kB / 482.8 MB, free: 2.266 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.834e-05/0.1125, allocations: 7.969 kB / 482.8 MB, free: 2.258 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.021e-05/0.1125, allocations: 7.062 kB / 482.8 MB, free: 2.254 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.262e-06/0.1125, allocations: 0 / 482.8 MB, free: 2.254 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.496e-06/0.1125, allocations: 0 / 482.8 MB, free: 2.254 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.056e-06/0.1125, allocations: 4 kB / 482.8 MB, free: 2.25 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.919e-05/0.1126, allocations: 141.7 kB / 482.9 MB, free: 2.062 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.51e-07/0.1126, allocations: 0 / 482.9 MB, free: 2.062 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.944e-06/0.1126, allocations: 4 kB / 482.9 MB, free: 2.059 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.182e-06/0.1126, allocations: 3.938 kB / 482.9 MB, free: 2.055 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.278e-06/0.1126, allocations: 7.922 kB / 482.9 MB, free: 2.047 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.394e-06/0.1126, allocations: 4 kB / 482.9 MB, free: 2.043 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.1126, allocations: 0 / 482.9 MB, free: 2.043 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.266e-05/0.1127, allocations: 86.84 kB / 483 MB, free: 1.934 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.282e-05/0.1128, allocations: 85.38 kB / 483.1 MB, free: 1.832 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.233e-05/0.1128, allocations: 3.938 kB / 483.1 MB, free: 1.828 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.144e-05/0.1128, allocations: 8.031 kB / 483.1 MB, free: 1.82 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.12e-05/0.1128, allocations: 0 / 483.1 MB, free: 1.82 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.645e-06/0.1128, allocations: 0 / 483.1 MB, free: 1.82 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.09e-05/0.1129, allocations: 75.28 kB / 483.2 MB, free: 1.746 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1129, allocations: 4 kB / 483.2 MB, free: 1.742 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002145/0.1131, allocations: 8 kB / 483.2 MB, free: 1.734 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.0006483/0.1137, allocations: 0.7494 MB / 484 MB, free: 0.9844 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 8.286e-05/0.1138, allocations: 59.41 kB / 484 MB, free: 0.9141 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.1138, allocations: 0 / 484 MB, free: 0.9141 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.253e-05/0.1139, allocations: 59.39 kB / 484.1 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001172/0.114, allocations: 0 / 484.1 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002665/0.1143, allocations: 126.7 kB / 484.2 MB, free: 0.6797 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000238/0.1145, allocations: 0.6729 MB / 484.9 MB, free: 15.98 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.33e-06/0.1145, allocations: 0 / 484.9 MB, free: 15.98 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.119e-05/0.1145, allocations: 7.438 kB / 484.9 MB, free: 15.98 MB / 366.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1146, allocations: 0 / 484.9 MB, free: 15.98 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01719/0.1318, allocations: 1.364 MB / 486.2 MB, free: 14.66 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.425/7.556, allocations: 2.031 kB / 486.2 MB, free: 14.66 MB / 366.1 MB (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) 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) Reference file matches