Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Utilities.IO.Files.Examples.CSVWriter.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/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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(Buildings.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="Buildings_10_Buildings_Utilities_IO_Files_Examples_CSVWriter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="Buildings_10_Buildings_Utilities_IO_Files_Examples_CSVWriter",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.00193/0.00193, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002158/0.002158, allocations: 196.2 kB / 16.53 MB, free: 6.664 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.339/1.339, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.505/2.505, allocations: 437.1 MB / 0.7104 GB, free: 5.094 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001285/0.001285, allocations: 63.91 kB / 0.8693 GB, free: 4.551 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.51/0.5113, allocations: 151.6 MB / 1.017 GB, free: 2.445 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.002704/0.514, allocations: 1.618 MB / 1.019 GB, free: 0.8164 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0008289/0.5149, allocations: 0.6157 MB / 1.02 GB, free: 200 kB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.892e-05/0.515, allocations: 3.938 kB / 1.02 GB, free: 196 kB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.0001248/0.5151, allocations: 19.86 kB / 1.02 GB, free: 176 kB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.0001708/0.5153, allocations: 37.02 kB / 1.02 GB, free: 140 kB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003533/0.5156, allocations: 115.7 kB / 1.02 GB, free: 24 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.000208/0.5159, allocations: 199.6 kB / 1.02 GB, free: 15.83 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001081/0.516, allocations: 25.05 kB / 1.02 GB, free: 15.8 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001296/0.5161, allocations: 87.81 kB / 1.02 GB, free: 15.71 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00012/0.5162, allocations: 87.72 kB / 1.02 GB, free: 15.63 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 3.881e-05/0.5163, allocations: 12 kB / 1.02 GB, free: 15.62 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 6.821e-05/0.5164, allocations: 27.98 kB / 1.02 GB, free: 15.59 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 7.56e-05/0.5164, allocations: 27.86 kB / 1.02 GB, free: 15.56 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 8.508e-05/0.5165, allocations: 79.64 kB / 1.02 GB, free: 15.48 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001899/0.5167, allocations: 165.8 kB / 1.02 GB, free: 15.32 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.246e-06/0.5167, allocations: 0 / 1.02 GB, free: 15.32 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.102e-06/0.5167, allocations: 0 / 1.02 GB, free: 15.32 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.068e-06/0.5167, allocations: 0 / 1.02 GB, free: 15.32 MB / 0.7794 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.00061/0.5174, allocations: 0.5602 MB / 1.021 GB, free: 14.69 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.529e-05/0.5174, allocations: 12.03 kB / 1.021 GB, free: 14.68 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.478e-05/0.5174, allocations: 34.75 kB / 1.021 GB, free: 14.64 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.212e-05/0.5175, allocations: 16.75 kB / 1.021 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002631/0.5178, allocations: 240.1 kB / 1.021 GB, free: 14.35 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.292e-05/0.5178, allocations: 8.375 kB / 1.021 GB, free: 14.34 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.95e-05/0.5178, allocations: 12.38 kB / 1.021 GB, free: 14.33 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002541/0.5181, allocations: 121.4 kB / 1.021 GB, free: 14.2 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.033e-06/0.5181, allocations: 4 kB / 1.021 GB, free: 14.2 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.635e-05/0.5181, allocations: 4 kB / 1.021 GB, free: 14.2 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.218e-06/0.5181, allocations: 0 / 1.021 GB, free: 14.2 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001897/0.5183, allocations: 71.92 kB / 1.021 GB, free: 14.12 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005899/0.5189, allocations: 420.5 kB / 1.022 GB, free: 13.66 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000181/0.5191, allocations: 86.53 kB / 1.022 GB, free: 13.57 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001501/0.5193, allocations: 76.81 kB / 1.022 GB, free: 13.49 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.666e-05/0.5193, allocations: 160 / 1.022 GB, free: 13.49 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002505/0.5196, allocations: 186.8 kB / 1.022 GB, free: 13.29 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=10): time 1.312e-06/0.5196, allocations: 0 / 1.022 GB, free: 13.29 MB / 0.7794 GB Notification: Performance of matching and sorting (n=10): time 0.0006723/0.5203, allocations: 348.7 kB / 1.023 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.193e-05/0.5203, allocations: 170.2 kB / 1.023 GB, free: 12.72 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001345/0.5205, allocations: 166.7 kB / 1.023 GB, free: 12.55 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.205e-05/0.5205, allocations: 33.7 kB / 1.023 GB, free: 12.51 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 6.329e-05/0.5206, allocations: 108.4 kB / 1.023 GB, free: 12.4 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.76e-05/0.5206, allocations: 31.64 kB / 1.023 GB, free: 12.37 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.438e-05/0.5207, allocations: 37.7 kB / 1.023 GB, free: 12.32 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 8.996e-05/0.5208, allocations: 326.8 kB / 1.023 GB, free: 12 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001318/0.5209, allocations: 55.95 kB / 1.023 GB, free: 11.94 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001498/0.5211, allocations: 102.8 kB / 1.024 GB, free: 11.82 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003006/0.5214, allocations: 312.9 kB / 1.024 GB, free: 11.45 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.5214, allocations: 0 / 1.024 GB, free: 11.45 MB / 0.7794 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0004792/0.5219, allocations: 348 kB / 1.024 GB, free: 11.08 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 6.209e-05/0.5219, allocations: 121.1 kB / 1.024 GB, free: 10.94 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.57e-06/0.522, allocations: 8 kB / 1.024 GB, free: 10.93 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.34e-05/0.522, allocations: 288 / 1.024 GB, free: 10.93 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001043/0.5221, allocations: 19.98 kB / 1.024 GB, free: 10.91 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.813e-06/0.5221, allocations: 4 kB / 1.024 GB, free: 10.91 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.622e-05/0.5222, allocations: 19.78 kB / 1.024 GB, free: 10.89 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.264e-05/0.5222, allocations: 15.94 kB / 1.024 GB, free: 10.87 MB / 0.7794 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 8 (combiTimeTableWriter.str,$PRE.combiTimeTableWriter.str,csvWriter.str,$PRE.csvWriter.str,combiTimeTableWriter.sampleTrigger,$whenCondition2,csvWriter.sampleTrigger,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 4 * 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.0001355/0.5224, allocations: 201.1 kB / 1.025 GB, free: 10.65 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.442e-05/0.5224, allocations: 15.81 kB / 1.025 GB, free: 10.64 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.377e-05/0.5225, allocations: 21.41 kB / 1.025 GB, free: 10.62 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.956e-06/0.5225, allocations: 4 kB / 1.025 GB, free: 10.61 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.106e-06/0.5225, allocations: 0 / 1.025 GB, free: 10.61 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.066e-06/0.5225, allocations: 0 / 1.025 GB, free: 10.61 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000665/0.5231, allocations: 0.5798 MB / 1.025 GB, free: 9.965 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.246e-06/0.5232, allocations: 4 kB / 1.025 GB, free: 9.961 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.528e-05/0.5232, allocations: 11.98 kB / 1.025 GB, free: 9.949 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.813e-06/0.5232, allocations: 4 kB / 1.025 GB, free: 9.945 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.715e-05/0.5233, allocations: 4 kB / 1.025 GB, free: 9.941 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.302e-06/0.5233, allocations: 0 / 1.025 GB, free: 9.941 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.065e-06/0.5233, allocations: 3.938 kB / 1.025 GB, free: 9.938 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005059/0.5238, allocations: 406.6 kB / 1.026 GB, free: 9.512 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.977e-05/0.5238, allocations: 85 kB / 1.026 GB, free: 9.41 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.441e-05/0.5239, allocations: 4 kB / 1.026 GB, free: 9.406 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001138/0.524, allocations: 16 kB / 1.026 GB, free: 9.391 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.01e-05/0.524, allocations: 11.92 kB / 1.026 GB, free: 9.379 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.758e-05/0.5241, allocations: 8 kB / 1.026 GB, free: 9.371 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 8.538e-05/0.5242, allocations: 132.3 kB / 1.026 GB, free: 9.242 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5242, allocations: 0 / 1.026 GB, free: 9.242 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.000282/0.5245, allocations: 39.94 kB / 1.026 GB, free: 9.203 MB / 0.7794 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,$whenCondition2,combiTimeTableWriter.str,combiTimeTableWriter.sampleTrigger,csvWriter.str,csvWriter.sampleTrigger) * Number of discrete states: 4 (combiTimeTableWriter.str,$whenCondition2,csvWriter.str,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 2 * 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.000823/0.5253, allocations: 0.9602 MB / 1.027 GB, free: 8.207 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0004475/0.5257, allocations: 369.5 kB / 1.027 GB, free: 7.797 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 4.228e-06/0.5258, allocations: 0 / 1.027 GB, free: 7.797 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0002186/0.526, allocations: 218.6 kB / 1.027 GB, free: 7.559 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002884/0.5263, allocations: 25.8 kB / 1.027 GB, free: 7.535 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002165/0.5284, allocations: 2.094 MB / 1.029 GB, free: 5.293 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002115/0.5287, allocations: 0.7078 MB / 1.03 GB, free: 4.559 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 5.894e-05/0.5287, allocations: 20.53 kB / 1.03 GB, free: 4.539 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.688e-05/0.5288, allocations: 35.42 kB / 1.03 GB, free: 4.504 MB / 0.7794 GB Notification: Performance of SimCode: time 3.61e-07/0.5288, allocations: 4 kB / 1.03 GB, free: 4.5 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02037/0.5492, allocations: 3.594 MB / 1.034 GB, free: 0.9883 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.203/7.752, allocations: 15.38 kB / 1.034 GB, free: 0.9805 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; mkfifo Buildings_10_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe >> ../files/Buildings_10_Buildings.Utilities.IO.Files.Examples.CSVWriter.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Utilities.IO.Files.Examples.CSVWriter_res.csv --start-time -1.21 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004484 Buildings_10_Buildings_Utilities_IO_Files_Examples_CSVWriter.fmu > Buildings_10_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.IO.Files.Examples.CSVWriter_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_IO_Files_Examples_CSVWriter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.IO.Files.Examples.CSVWriter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches