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.01077/0.01077, allocations: 99.45 kB / 15.73 MB, free: 6.059 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.002446/0.002447, allocations: 193.5 kB / 16.67 MB, free: 5.969 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.433/1.433, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.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.543/2.543, allocations: 437 MB / 0.7105 GB, free: 4.355 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001472/0.001472, allocations: 59.91 kB / 1.018 GB, free: 9.906 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.043/1.045, allocations: 151.6 MB / 1.166 GB, free: 3.773 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.003845/1.049, allocations: 1.613 MB / 1.168 GB, free: 2.152 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001227/1.05, allocations: 0.6195 MB / 1.168 GB, free: 1.527 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001638/1.05, allocations: 3.938 kB / 1.168 GB, free: 1.523 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.0002702/1.05, allocations: 19.86 kB / 1.168 GB, free: 1.504 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.0003833/1.051, allocations: 49 kB / 1.168 GB, free: 1.457 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008923/1.052, allocations: 111.8 kB / 1.169 GB, free: 1.348 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0006238/1.052, allocations: 203.6 kB / 1.169 GB, free: 1.148 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002779/1.053, allocations: 25.11 kB / 1.169 GB, free: 1.121 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003914/1.053, allocations: 83.75 kB / 1.169 GB, free: 1.039 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003361/1.053, allocations: 87.66 kB / 1.169 GB, free: 0.9531 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 0.0001037/1.053, allocations: 16 kB / 1.169 GB, free: 0.9375 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001459/1.054, allocations: 24 kB / 1.169 GB, free: 0.9141 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 0.0001465/1.054, allocations: 27.91 kB / 1.169 GB, free: 0.8867 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 0.0001819/1.054, allocations: 71.66 kB / 1.169 GB, free: 0.8164 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0004755/1.054, allocations: 171.1 kB / 1.169 GB, free: 0.6523 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 7.043e-06/1.054, allocations: 0 / 1.169 GB, free: 0.6523 MB / 0.8887 GB Notification: Performance of FrontEnd: time 2.043e-06/1.054, allocations: 4 kB / 1.169 GB, free: 0.6484 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 1.054e-05/1.054, allocations: 0 / 1.169 GB, free: 0.6484 MB / 0.8887 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.001215/1.056, allocations: 0.5523 MB / 1.17 GB, free: 24 kB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 5.221e-05/1.056, allocations: 12.92 kB / 1.17 GB, free: 12 kB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.044e-05/1.056, allocations: 42.73 kB / 1.17 GB, free: 15.96 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001094/1.056, allocations: 20.84 kB / 1.17 GB, free: 15.94 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000501/1.057, allocations: 244.1 kB / 1.17 GB, free: 15.66 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.985e-05/1.057, allocations: 16.38 kB / 1.17 GB, free: 15.65 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.912e-05/1.057, allocations: 12.38 kB / 1.17 GB, free: 15.64 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004648/1.057, allocations: 113.5 kB / 1.17 GB, free: 15.52 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.574e-05/1.057, allocations: 0 / 1.17 GB, free: 15.52 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.909e-05/1.057, allocations: 4 kB / 1.17 GB, free: 15.52 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.034e-05/1.057, allocations: 3.984 kB / 1.17 GB, free: 15.51 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003168/1.058, allocations: 75.88 kB / 1.17 GB, free: 15.44 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001112/1.059, allocations: 412.6 kB / 1.171 GB, free: 14.98 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003371/1.059, allocations: 90.56 kB / 1.171 GB, free: 14.89 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002584/1.059, allocations: 76.81 kB / 1.171 GB, free: 14.81 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 3.13e-05/1.059, allocations: 3.938 kB / 1.171 GB, free: 14.8 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003954/1.06, allocations: 182.7 kB / 1.171 GB, free: 14.6 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=10): time 3.085e-06/1.06, allocations: 0 / 1.171 GB, free: 14.6 MB / 0.9044 GB Notification: Performance of matching and sorting (n=10): time 0.00113/1.061, allocations: 353 kB / 1.171 GB, free: 14.24 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000136/1.061, allocations: 166.2 kB / 1.171 GB, free: 14.04 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002561/1.061, allocations: 175.7 kB / 1.172 GB, free: 13.86 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 3.855e-05/1.061, allocations: 33.7 kB / 1.172 GB, free: 13.82 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001123/1.061, allocations: 108.4 kB / 1.172 GB, free: 13.7 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 5.243e-05/1.062, allocations: 27.75 kB / 1.172 GB, free: 13.68 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001176/1.062, allocations: 41.7 kB / 1.172 GB, free: 13.63 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001723/1.062, allocations: 326.8 kB / 1.172 GB, free: 13.3 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002117/1.062, allocations: 51.95 kB / 1.172 GB, free: 13.25 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002759/1.062, allocations: 114.8 kB / 1.172 GB, free: 13.11 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005674/1.063, allocations: 309 kB / 1.173 GB, free: 12.75 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.048e-06/1.063, allocations: 0 / 1.173 GB, free: 12.75 MB / 0.9044 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0008586/1.064, allocations: 348.2 kB / 1.173 GB, free: 12.38 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001324/1.064, allocations: 118.8 kB / 1.173 GB, free: 12.24 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.213e-05/1.064, allocations: 4 kB / 1.173 GB, free: 12.23 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.722e-05/1.064, allocations: 4 kB / 1.173 GB, free: 12.23 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001651/1.064, allocations: 23.86 kB / 1.173 GB, free: 12.21 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.298e-05/1.064, allocations: 4 kB / 1.173 GB, free: 12.2 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001693/1.064, allocations: 15.94 kB / 1.173 GB, free: 12.19 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.001e-05/1.064, allocations: 12 kB / 1.173 GB, free: 12.18 MB / 0.9044 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.0002662/1.065, allocations: 197.3 kB / 1.173 GB, free: 11.96 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.469e-05/1.065, allocations: 19.91 kB / 1.173 GB, free: 11.94 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.528e-05/1.065, allocations: 17.41 kB / 1.173 GB, free: 11.92 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.118e-06/1.065, allocations: 0 / 1.173 GB, free: 11.92 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.592e-06/1.065, allocations: 0 / 1.173 GB, free: 11.92 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.809e-06/1.065, allocations: 0 / 1.173 GB, free: 11.92 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001172/1.066, allocations: 0.5956 MB / 1.174 GB, free: 11.26 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.425e-06/1.066, allocations: 0 / 1.174 GB, free: 11.26 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.931e-05/1.066, allocations: 19.92 kB / 1.174 GB, free: 11.24 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.239e-06/1.066, allocations: 0 / 1.174 GB, free: 11.24 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.023e-05/1.066, allocations: 4 kB / 1.174 GB, free: 11.23 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.119e-06/1.066, allocations: 4 kB / 1.174 GB, free: 11.23 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.489e-06/1.066, allocations: 3.938 kB / 1.174 GB, free: 11.23 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008893/1.067, allocations: 394.8 kB / 1.174 GB, free: 10.81 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 7.103e-05/1.067, allocations: 96.98 kB / 1.174 GB, free: 10.7 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.72e-05/1.067, allocations: 4 kB / 1.174 GB, free: 10.7 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001854/1.068, allocations: 8 kB / 1.174 GB, free: 10.69 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.926e-05/1.068, allocations: 11.92 kB / 1.174 GB, free: 10.68 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.867e-05/1.068, allocations: 8 kB / 1.174 GB, free: 10.67 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.0001738/1.068, allocations: 132.8 kB / 1.175 GB, free: 10.54 MB / 0.9044 GB Notification: Performance of sort global known variables: time 2.2e-07/1.068, allocations: 4 kB / 1.175 GB, free: 10.54 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0005107/1.068, allocations: 35.94 kB / 1.175 GB, free: 10.5 MB / 0.9044 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.001553/1.07, allocations: 0.9669 MB / 1.176 GB, free: 9.5 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0007873/1.071, allocations: 361.4 kB / 1.176 GB, free: 9.098 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 3.567e-06/1.071, allocations: 0 / 1.176 GB, free: 9.098 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0003959/1.071, allocations: 210.7 kB / 1.176 GB, free: 8.867 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005028/1.072, allocations: 23.92 kB / 1.176 GB, free: 8.844 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003959/1.076, allocations: 2.1 MB / 1.178 GB, free: 6.598 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004264/1.076, allocations: 0.7159 MB / 1.179 GB, free: 5.855 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 9.552e-05/1.076, allocations: 20.48 kB / 1.179 GB, free: 5.836 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.684e-05/1.076, allocations: 35.42 kB / 1.179 GB, free: 5.801 MB / 0.9044 GB Notification: Performance of SimCode: time 8.22e-07/1.076, allocations: 0 / 1.179 GB, free: 5.801 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02931/1.106, allocations: 3.643 MB / 1.182 GB, free: 2.27 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.251/9.357, allocations: 8.562 kB / 1.182 GB, free: 2.266 MB / 0.9044 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