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: translateModel(BuildingSystems.Utilities.IO.Files.Examples.CSVWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.CSVWriter") translateModel(BuildingSystems.Utilities.IO.Files.Examples.CSVWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.CSVWriter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006497/0.006497, allocations: 102.3 kB / 15.73 MB, free: 5.582 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.001318/0.001318, allocations: 191.2 kB / 16.67 MB, free: 5.52 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.318/1.318, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002025/0.002025, allocations: 285 kB / 290.8 MB, free: 14.48 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9239/0.9239, allocations: 169.2 MB / 0.4983 GB, free: 4.438 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001968/0.001968, allocations: 91.86 kB / 0.6814 GB, free: 6.949 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4289/0.4309, allocations: 86.97 MB / 0.7664 GB, free: 3.93 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.IO.Files.Examples.CSVWriter): time 0.002888/0.4338, allocations: 1.609 MB / 0.7679 GB, free: 2.309 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.00101/0.4348, allocations: 0.6135 MB / 0.7685 GB, free: 1.691 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.33e-05/0.4349, allocations: 4 kB / 0.7686 GB, free: 1.688 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.0001567/0.4351, allocations: 19.8 kB / 0.7686 GB, free: 1.668 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.0002723/0.4354, allocations: 49.95 kB / 0.7686 GB, free: 1.621 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004256/0.4358, allocations: 111.7 kB / 0.7687 GB, free: 1.512 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0002743/0.4361, allocations: 203.6 kB / 0.7689 GB, free: 1.312 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001121/0.4362, allocations: 24.86 kB / 0.7689 GB, free: 1.289 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000162/0.4364, allocations: 87.75 kB / 0.769 GB, free: 1.203 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001921/0.4366, allocations: 91.66 kB / 0.7691 GB, free: 1.113 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 4.787e-05/0.4366, allocations: 12 kB / 0.7691 GB, free: 1.102 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 8.218e-05/0.4367, allocations: 27.98 kB / 0.7692 GB, free: 1.074 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 8.014e-05/0.4368, allocations: 27.92 kB / 0.7692 GB, free: 1.047 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 8.941e-05/0.4369, allocations: 71.7 kB / 0.7692 GB, free: 0.9766 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0002462/0.4372, allocations: 167.2 kB / 0.7694 GB, free: 0.8164 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 7.504e-06/0.4372, allocations: 0 / 0.7694 GB, free: 0.8164 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.694e-06/0.4372, allocations: 7.875 kB / 0.7694 GB, free: 0.8086 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 7.174e-06/0.4372, allocations: 0 / 0.7694 GB, free: 0.8086 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.0006876/0.4379, allocations: 0.5589 MB / 0.77 GB, free: 184 kB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.345e-05/0.4379, allocations: 8.031 kB / 0.77 GB, free: 176 kB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.983e-05/0.438, allocations: 20.75 kB / 0.77 GB, free: 156 kB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003244/0.4383, allocations: 240.6 kB / 0.7702 GB, free: 15.88 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.605e-05/0.4384, allocations: 8.375 kB / 0.7702 GB, free: 15.87 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.974e-05/0.4384, allocations: 16.36 kB / 0.7702 GB, free: 15.86 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002765/0.4387, allocations: 121.7 kB / 0.7704 GB, free: 15.73 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.376e-06/0.4387, allocations: 4 kB / 0.7704 GB, free: 15.73 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.694e-05/0.4387, allocations: 0 / 0.7704 GB, free: 15.73 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.071e-06/0.4387, allocations: 4 kB / 0.7704 GB, free: 15.72 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001929/0.4389, allocations: 67.94 kB / 0.7704 GB, free: 15.66 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006281/0.4396, allocations: 408.6 kB / 0.7708 GB, free: 15.21 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001857/0.4398, allocations: 94.47 kB / 0.7709 GB, free: 15.11 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001561/0.4399, allocations: 72.81 kB / 0.771 GB, free: 15.03 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 2.008e-05/0.44, allocations: 4 kB / 0.771 GB, free: 15.03 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002579/0.4402, allocations: 190.8 kB / 0.7712 GB, free: 14.82 MB / 0.545 GB Notification: Performance of pre-optimization done (n=10): time 1.673e-06/0.4402, allocations: 0 / 0.7712 GB, free: 14.82 MB / 0.545 GB Notification: Performance of matching and sorting (n=10): time 0.0007244/0.441, allocations: 352.8 kB / 0.7715 GB, free: 14.45 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.45e-05/0.4411, allocations: 158.2 kB / 0.7716 GB, free: 14.26 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001637/0.4412, allocations: 187.6 kB / 0.7718 GB, free: 14.06 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.583e-05/0.4413, allocations: 29.7 kB / 0.7719 GB, free: 14.03 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 6.432e-05/0.4413, allocations: 108.4 kB / 0.772 GB, free: 13.91 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 3.718e-05/0.4414, allocations: 31.62 kB / 0.772 GB, free: 13.88 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.017e-05/0.4415, allocations: 37.7 kB / 0.772 GB, free: 13.84 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.000112/0.4416, allocations: 334.8 kB / 0.7723 GB, free: 13.5 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001319/0.4417, allocations: 47.97 kB / 0.7724 GB, free: 13.46 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002003/0.4419, allocations: 102.8 kB / 0.7725 GB, free: 13.33 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003351/0.4423, allocations: 312.9 kB / 0.7728 GB, free: 12.96 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.427e-06/0.4423, allocations: 0 / 0.7728 GB, free: 12.96 MB / 0.545 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005518/0.4428, allocations: 344.1 kB / 0.7731 GB, free: 12.6 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 8.246e-05/0.4429, allocations: 118.8 kB / 0.7732 GB, free: 12.46 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.274e-06/0.4429, allocations: 3.938 kB / 0.7732 GB, free: 12.45 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.671e-05/0.443, allocations: 4 kB / 0.7732 GB, free: 12.45 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001168/0.4431, allocations: 24.23 kB / 0.7733 GB, free: 12.43 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.005e-06/0.4431, allocations: 4 kB / 0.7733 GB, free: 12.42 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001008/0.4432, allocations: 11.94 kB / 0.7733 GB, free: 12.41 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.991e-05/0.4432, allocations: 11.98 kB / 0.7733 GB, free: 12.4 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.0001565/0.4434, allocations: 203.3 kB / 0.7735 GB, free: 12.18 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.423e-05/0.4434, allocations: 15.81 kB / 0.7735 GB, free: 12.16 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.656e-05/0.4435, allocations: 13.41 kB / 0.7735 GB, free: 12.15 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.264e-06/0.4435, allocations: 0 / 0.7735 GB, free: 12.15 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.023e-06/0.4435, allocations: 11.98 kB / 0.7735 GB, free: 12.14 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.158e-06/0.4435, allocations: 4 kB / 0.7735 GB, free: 12.13 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007019/0.4442, allocations: 0.58 MB / 0.7741 GB, free: 11.48 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.4442, allocations: 3.938 kB / 0.7741 GB, free: 11.48 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.462e-05/0.4443, allocations: 15.92 kB / 0.7741 GB, free: 11.46 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.965e-06/0.4443, allocations: 0 / 0.7741 GB, free: 11.46 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.509e-05/0.4443, allocations: 12 kB / 0.7741 GB, free: 11.45 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.388e-06/0.4444, allocations: 3.984 kB / 0.7741 GB, free: 11.45 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.475e-06/0.4444, allocations: 7.938 kB / 0.7741 GB, free: 11.44 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005373/0.4449, allocations: 398.7 kB / 0.7745 GB, free: 11.02 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 4.333e-05/0.445, allocations: 92.86 kB / 0.7746 GB, free: 10.91 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.435e-05/0.445, allocations: 4 kB / 0.7746 GB, free: 10.91 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001132/0.4451, allocations: 8 kB / 0.7746 GB, free: 10.9 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.43e-05/0.4452, allocations: 19.91 kB / 0.7746 GB, free: 10.88 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.556e-05/0.4452, allocations: 11.98 kB / 0.7746 GB, free: 10.87 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0001211/0.4453, allocations: 132.3 kB / 0.7748 GB, free: 10.74 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4453, allocations: 0 / 0.7748 GB, free: 10.74 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002935/0.4456, allocations: 36 kB / 0.7748 GB, free: 10.71 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.0002272/0.4459, allocations: 123.5 kB / 0.7749 GB, free: 10.58 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0004672/0.4463, allocations: 357.4 kB / 0.7753 GB, free: 10.18 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.4463, allocations: 0 / 0.7753 GB, free: 10.18 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0002245/0.4466, allocations: 210.7 kB / 0.7755 GB, free: 9.953 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002969/0.4469, allocations: 20.48 kB / 0.7755 GB, free: 9.934 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005414/0.4474, allocations: 280.1 kB / 0.7757 GB, free: 9.637 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002445/0.4477, allocations: 0.7118 MB / 0.7764 GB, free: 8.898 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 6.493e-05/0.4478, allocations: 20.48 kB / 0.7765 GB, free: 8.879 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.285e-05/0.4478, allocations: 15.42 kB / 0.7765 GB, free: 8.863 MB / 0.545 GB Notification: Performance of SimCode: time 2.61e-07/0.4478, allocations: 4 kB / 0.7765 GB, free: 8.859 MB / 0.545 GB Notification: Performance of Templates: time 0.005236/0.4531, allocations: 2.092 MB / 0.7785 GB, free: 6.809 MB / 0.545 GB make -j1 -f BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.CSVWriter.makefile (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 & ./BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.CSVWriter -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1)