Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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(BuildingSystems.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_IO_Files_Examples_CSVWriter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="BuildingSystems_BuildingSystems_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.005278/0.005278, allocations: 99.83 kB / 15.73 MB, free: 6.012 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.001089/0.001089, allocations: 193.5 kB / 16.67 MB, free: 5.93 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.298/1.298, allocations: 222.9 MB / 240.4 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002029/0.002029, allocations: 288.8 kB / 290.8 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.936/0.936, allocations: 169.3 MB / 0.4983 GB, free: 4.441 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002632/0.002632, allocations: 95.84 kB / 0.681 GB, free: 7.453 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4393/0.442, allocations: 86.98 MB / 0.7659 GB, free: 3.836 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.IO.Files.Examples.CSVWriter): time 0.003913/0.4459, allocations: 1.613 MB / 0.7675 GB, free: 2.211 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.001265/0.4472, allocations: 0.6135 MB / 0.7681 GB, free: 1.594 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001346/0.4474, allocations: 0 / 0.7681 GB, free: 1.594 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.0002045/0.4476, allocations: 27.78 kB / 0.7681 GB, free: 1.566 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.0003053/0.4479, allocations: 39.77 kB / 0.7681 GB, free: 1.527 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006496/0.4486, allocations: 111.7 kB / 0.7683 GB, free: 1.418 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0003297/0.4489, allocations: 195.7 kB / 0.7684 GB, free: 1.227 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001429/0.4491, allocations: 28.84 kB / 0.7685 GB, free: 1.199 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002336/0.4493, allocations: 87.75 kB / 0.7685 GB, free: 1.113 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001862/0.4495, allocations: 87.66 kB / 0.7686 GB, free: 1.027 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 5.629e-05/0.4496, allocations: 16 kB / 0.7686 GB, free: 1.012 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 9.417e-05/0.4497, allocations: 24 kB / 0.7687 GB, free: 0.9883 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0001211/0.4498, allocations: 35.89 kB / 0.7687 GB, free: 0.9531 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0001256/0.4499, allocations: 75.64 kB / 0.7688 GB, free: 0.8789 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0003302/0.4503, allocations: 164.5 kB / 0.7689 GB, free: 0.7266 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 5.46e-06/0.4503, allocations: 0 / 0.7689 GB, free: 0.7266 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.944e-06/0.4503, allocations: 0 / 0.7689 GB, free: 0.7266 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 3.154e-05/0.4503, allocations: 0 / 0.7689 GB, free: 0.7266 MB / 0.5294 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.0009781/0.4513, allocations: 0.5639 MB / 0.7695 GB, free: 92 kB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 5.834e-05/0.4514, allocations: 12.03 kB / 0.7695 GB, free: 80 kB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001183/0.4515, allocations: 34.75 kB / 0.7695 GB, free: 36 kB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.642e-05/0.4516, allocations: 16.84 kB / 0.7695 GB, free: 20 kB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004275/0.452, allocations: 244.2 kB / 0.7698 GB, free: 15.74 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.973e-05/0.4521, allocations: 8.375 kB / 0.7698 GB, free: 15.73 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.693e-05/0.4521, allocations: 16.38 kB / 0.7698 GB, free: 15.72 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002918/0.4524, allocations: 117.5 kB / 0.7699 GB, free: 15.6 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.282e-05/0.4524, allocations: 0 / 0.7699 GB, free: 15.6 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.252e-05/0.4524, allocations: 8 kB / 0.7699 GB, free: 15.59 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.509e-06/0.4525, allocations: 3.938 kB / 0.7699 GB, free: 15.59 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002042/0.4527, allocations: 67.94 kB / 0.77 GB, free: 15.52 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007474/0.4534, allocations: 416.6 kB / 0.7704 GB, free: 15.06 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002134/0.4536, allocations: 86.53 kB / 0.7705 GB, free: 14.97 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001639/0.4538, allocations: 76.81 kB / 0.7705 GB, free: 14.89 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 2.75e-05/0.4539, allocations: 0 / 0.7705 GB, free: 14.89 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000291/0.4541, allocations: 186.7 kB / 0.7707 GB, free: 14.68 MB / 0.545 GB Notification: Performance of pre-optimization done (n=10): time 1.433e-06/0.4542, allocations: 4 kB / 0.7707 GB, free: 14.68 MB / 0.545 GB Notification: Performance of matching and sorting (n=10): time 0.0008199/0.455, allocations: 349 kB / 0.7711 GB, free: 14.32 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001085/0.4551, allocations: 170.2 kB / 0.7712 GB, free: 14.12 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001982/0.4553, allocations: 175.7 kB / 0.7714 GB, free: 13.93 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.835e-05/0.4553, allocations: 33.7 kB / 0.7714 GB, free: 13.89 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 7.796e-05/0.4554, allocations: 108.4 kB / 0.7715 GB, free: 13.78 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 6.369e-05/0.4555, allocations: 27.78 kB / 0.7716 GB, free: 13.75 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.63e-05/0.4556, allocations: 41.72 kB / 0.7716 GB, free: 13.7 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001339/0.4557, allocations: 334.8 kB / 0.7719 GB, free: 13.37 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001418/0.4559, allocations: 51.97 kB / 0.772 GB, free: 13.32 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001703/0.456, allocations: 98.2 kB / 0.7721 GB, free: 13.2 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000342/0.4564, allocations: 316.9 kB / 0.7724 GB, free: 12.83 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.849e-06/0.4564, allocations: 4 kB / 0.7724 GB, free: 12.82 MB / 0.545 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005511/0.457, allocations: 352.1 kB / 0.7727 GB, free: 12.45 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 9.485e-05/0.4571, allocations: 118.8 kB / 0.7728 GB, free: 12.31 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.168e-06/0.4571, allocations: 8.25 kB / 0.7728 GB, free: 12.3 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.736e-05/0.4571, allocations: 0 / 0.7728 GB, free: 12.3 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001206/0.4572, allocations: 19.98 kB / 0.7728 GB, free: 12.28 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.237e-06/0.4573, allocations: 0 / 0.7728 GB, free: 12.28 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001114/0.4574, allocations: 19.89 kB / 0.7729 GB, free: 12.26 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.445e-05/0.4574, allocations: 11.98 kB / 0.7729 GB, free: 12.25 MB / 0.545 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.0001705/0.4576, allocations: 202.1 kB / 0.7731 GB, free: 12.03 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.238e-05/0.4576, allocations: 23.91 kB / 0.7731 GB, free: 12.01 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.307e-05/0.4577, allocations: 17.41 kB / 0.7731 GB, free: 11.99 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.585e-06/0.4577, allocations: 0 / 0.7731 GB, free: 11.99 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.793e-06/0.4577, allocations: 0 / 0.7731 GB, free: 11.99 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.444e-06/0.4577, allocations: 3.984 kB / 0.7731 GB, free: 11.98 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007678/0.4585, allocations: 0.5839 MB / 0.7737 GB, free: 11.33 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.565e-06/0.4585, allocations: 0 / 0.7737 GB, free: 11.33 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.566e-05/0.4586, allocations: 11.98 kB / 0.7737 GB, free: 11.32 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.226e-06/0.4586, allocations: 3.938 kB / 0.7737 GB, free: 11.32 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.857e-05/0.4586, allocations: 8 kB / 0.7737 GB, free: 11.31 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.894e-06/0.4586, allocations: 0 / 0.7737 GB, free: 11.31 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.03e-06/0.4586, allocations: 7.922 kB / 0.7737 GB, free: 11.3 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005798/0.4592, allocations: 402.7 kB / 0.7741 GB, free: 10.88 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 5.18e-05/0.4593, allocations: 92.95 kB / 0.7742 GB, free: 10.77 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.985e-05/0.4593, allocations: 8 kB / 0.7742 GB, free: 10.76 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001118/0.4595, allocations: 4 kB / 0.7742 GB, free: 10.76 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.8e-05/0.4595, allocations: 15.92 kB / 0.7742 GB, free: 10.74 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.95e-05/0.4595, allocations: 11.98 kB / 0.7742 GB, free: 10.73 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0001147/0.4597, allocations: 132.3 kB / 0.7743 GB, free: 10.6 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4597, allocations: 0 / 0.7743 GB, free: 10.6 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0003126/0.46, allocations: 36 kB / 0.7744 GB, free: 10.57 MB / 0.545 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.001061/0.4611, allocations: 0.95 MB / 0.7753 GB, free: 9.582 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0006238/0.4617, allocations: 369.5 kB / 0.7757 GB, free: 9.172 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.245e-06/0.4617, allocations: 0 / 0.7757 GB, free: 9.172 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0002464/0.462, allocations: 198.8 kB / 0.7758 GB, free: 8.953 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000331/0.4623, allocations: 31.8 kB / 0.7759 GB, free: 8.922 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002747/0.4651, allocations: 2.109 MB / 0.7779 GB, free: 6.672 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002901/0.4654, allocations: 0.7117 MB / 0.7786 GB, free: 5.934 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 7.101e-05/0.4655, allocations: 24.53 kB / 0.7787 GB, free: 5.91 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.304e-05/0.4655, allocations: 39.42 kB / 0.7787 GB, free: 5.871 MB / 0.545 GB Notification: Performance of SimCode: time 6.61e-07/0.4655, allocations: 0 / 0.7787 GB, free: 5.871 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02237/0.4879, allocations: 3.651 MB / 0.7823 GB, free: 2.355 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.669/8.157, allocations: 11.92 kB / 0.7823 GB, free: 2.344 MB / 0.545 GB (rm -f BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.CSVWriter.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.CSVWriter.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.CSVWriter.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.CSVWriter.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.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 BuildingSystems_BuildingSystems_Utilities_IO_Files_Examples_CSVWriter.fmu > BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1)