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/BuildingSystems 2.0.0-master/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/ModelicaServices 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) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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/BuildingSystems 2.0.0-master/package.mo): time 0.8336/0.8336, allocations: 141.7 MB / 154.3 MB, free: 15.49 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001096/0.001096, allocations: 181.2 kB / 187.3 MB, free: 11.9 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.529/1.529, allocations: 221.3 MB / 441.4 MB, free: 4.66 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008854/0.0008853, allocations: 99.19 kB / 0.5124 GB, free: 24.16 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001838/0.001838, allocations: 270.1 kB / 0.5939 GB, free: 7.965 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 3.898e-05/3.901e-05, allocations: 4 kB / 0.6835 GB, free: 12.14 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.462/0.4621, allocations: 82.77 MB / 0.7644 GB, free: 108.7 MB / 0.5261 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1303/0.5925, allocations: 110.7 MB / 0.8725 GB, free: 13.84 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002507/0.5928, allocations: 75.95 kB / 0.8725 GB, free: 13.77 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 0.01378/0.6066, allocations: 5.065 MB / 0.8775 GB, free: 8.699 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.843e-06/0.6066, allocations: 3.312 kB / 0.8775 GB, free: 8.699 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 1.811e-05/0.6066, allocations: 4 kB / 0.8775 GB, free: 8.695 MB / 0.5417 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.0006364/0.6073, allocations: 0.5204 MB / 0.878 GB, free: 8.105 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.624e-05/0.6073, allocations: 12.02 kB / 0.878 GB, free: 8.094 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.128e-05/0.6074, allocations: 34.56 kB / 0.878 GB, free: 8.051 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.77e-05/0.6075, allocations: 19.91 kB / 0.8781 GB, free: 8.031 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003094/0.6078, allocations: 239.1 kB / 0.8783 GB, free: 7.758 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.917e-05/0.6078, allocations: 8 kB / 0.8783 GB, free: 7.75 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.266e-05/0.6078, allocations: 12 kB / 0.8783 GB, free: 7.738 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002363/0.6081, allocations: 109.5 kB / 0.8784 GB, free: 7.625 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.055e-06/0.6081, allocations: 0 / 0.8784 GB, free: 7.625 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.871e-05/0.6081, allocations: 4 kB / 0.8784 GB, free: 7.621 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.155e-06/0.6081, allocations: 0 / 0.8784 GB, free: 7.621 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001193/0.6083, allocations: 51.98 kB / 0.8785 GB, free: 7.57 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007034/0.609, allocations: 428.6 kB / 0.8789 GB, free: 7.102 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001485/0.6091, allocations: 74.56 kB / 0.8789 GB, free: 7.02 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001139/0.6093, allocations: 64.84 kB / 0.879 GB, free: 6.953 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 2.591e-05/0.6093, allocations: 4 kB / 0.879 GB, free: 6.949 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002361/0.6095, allocations: 170.8 kB / 0.8792 GB, free: 6.758 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=10): time 2.124e-06/0.6096, allocations: 0 / 0.8792 GB, free: 6.758 MB / 0.5417 GB Notification: Performance of matching and sorting (n=10): time 0.0004982/0.6101, allocations: 273 kB / 0.8794 GB, free: 6.473 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001154/0.6102, allocations: 166.2 kB / 0.8796 GB, free: 6.273 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001667/0.6104, allocations: 161.8 kB / 0.8797 GB, free: 6.105 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 2.779e-05/0.6104, allocations: 29.7 kB / 0.8798 GB, free: 6.07 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 8.975e-05/0.6105, allocations: 120.2 kB / 0.8799 GB, free: 5.945 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 2.765e-05/0.6105, allocations: 19.72 kB / 0.8799 GB, free: 5.926 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.419e-05/0.6105, allocations: 8 kB / 0.8799 GB, free: 5.918 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001499/0.6107, allocations: 330.8 kB / 0.8802 GB, free: 5.586 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.753e-05/0.6108, allocations: 36 kB / 0.8803 GB, free: 5.551 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001343/0.6109, allocations: 98.84 kB / 0.8804 GB, free: 5.43 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001758/0.6111, allocations: 154.8 kB / 0.8805 GB, free: 5.254 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.295e-06/0.6111, allocations: 0 / 0.8805 GB, free: 5.254 MB / 0.5417 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0004542/0.6116, allocations: 340 kB / 0.8808 GB, free: 4.891 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 9.011e-05/0.6117, allocations: 116.2 kB / 0.8809 GB, free: 4.754 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.114e-06/0.6117, allocations: 4 kB / 0.8809 GB, free: 4.75 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.517e-05/0.6117, allocations: 0 / 0.8809 GB, free: 4.75 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001234/0.6118, allocations: 27.86 kB / 0.881 GB, free: 4.723 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.161e-05/0.6119, allocations: 4 kB / 0.881 GB, free: 4.719 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.923e-05/0.612, allocations: 16.25 kB / 0.881 GB, free: 4.703 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.119e-05/0.612, allocations: 11.94 kB / 0.881 GB, free: 4.691 MB / 0.5417 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 ($PRE.combiTimeTableWriter.str,combiTimeTableWriter.str,$PRE.csvWriter.str,csvWriter.str,$whenCondition2,combiTimeTableWriter.sampleTrigger,$whenCondition1,csvWriter.sampleTrigger) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001486/0.6122, allocations: 186.7 kB / 0.8812 GB, free: 4.492 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.095e-05/0.6122, allocations: 19.81 kB / 0.8812 GB, free: 4.473 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.35e-05/0.6122, allocations: 21.52 kB / 0.8812 GB, free: 4.453 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.215e-06/0.6123, allocations: 3.938 kB / 0.8812 GB, free: 4.449 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.52e-06/0.6123, allocations: 0 / 0.8812 GB, free: 4.449 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.172e-06/0.6123, allocations: 4 kB / 0.8812 GB, free: 4.445 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006842/0.613, allocations: 0.5642 MB / 0.8818 GB, free: 3.812 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.273e-06/0.613, allocations: 3.938 kB / 0.8818 GB, free: 3.809 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.837e-05/0.6131, allocations: 16 kB / 0.8818 GB, free: 3.793 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.368e-06/0.6131, allocations: 3.984 kB / 0.8818 GB, free: 3.789 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.985e-05/0.6131, allocations: 4 kB / 0.8818 GB, free: 3.785 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.6131, allocations: 0 / 0.8818 GB, free: 3.785 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.6131, allocations: 0 / 0.8818 GB, free: 3.785 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004814/0.6136, allocations: 394.6 kB / 0.8822 GB, free: 3.371 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 5.708e-05/0.6137, allocations: 92.91 kB / 0.8823 GB, free: 3.262 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.101e-05/0.6137, allocations: 4 kB / 0.8823 GB, free: 3.258 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001117/0.6138, allocations: 8 kB / 0.8823 GB, free: 3.25 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.021e-05/0.6139, allocations: 7.984 kB / 0.8823 GB, free: 3.242 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.058e-05/0.6139, allocations: 8 kB / 0.8823 GB, free: 3.234 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0001168/0.614, allocations: 128.3 kB / 0.8824 GB, free: 3.109 MB / 0.5417 GB Notification: Performance of sort global known variables: time 2.5e-07/0.614, allocations: 0 / 0.8824 GB, free: 3.109 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0002713/0.6143, allocations: 36 kB / 0.8824 GB, free: 3.074 MB / 0.5417 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) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001009/0.6153, allocations: 0.9452 MB / 0.8834 GB, free: 2.094 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0004337/0.6158, allocations: 337.5 kB / 0.8837 GB, free: 1.715 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.6158, allocations: 3.938 kB / 0.8837 GB, free: 1.711 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0001994/0.616, allocations: 190.8 kB / 0.8839 GB, free: 1.5 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000234/0.6162, allocations: 18.98 kB / 0.8839 GB, free: 1.48 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006699/0.6169, allocations: 263.6 kB / 0.8841 GB, free: 1.188 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003215/0.6172, allocations: 0.7121 MB / 0.8848 GB, free: 460 kB / 0.5417 GB Notification: Performance of simCode: alias equations: time 6.75e-05/0.6173, allocations: 20.53 kB / 0.8849 GB, free: 440 kB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.837e-05/0.6174, allocations: 39.42 kB / 0.8849 GB, free: 400 kB / 0.5417 GB Notification: Performance of SimCode: time 4.21e-07/0.6174, allocations: 0 / 0.8849 GB, free: 400 kB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0166/0.634, allocations: 3.314 MB / 0.8881 GB, free: 13.24 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002496/0.6343, allocations: 166.3 kB / 0.8883 GB, free: 13.01 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.743/2.378, allocations: 0 / 0.8883 GB, free: 13.01 MB / 0.5573 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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_IO_Files_Examples_CSVWriter_fmu --startTime=-1.21 --stopTime=10 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_IO_Files_Examples_CSVWriter.fmu > BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1)