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.004731/0.004731, allocations: 98.38 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.00131/0.00131, allocations: 197 kB / 16.67 MB, free: 5.949 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.444/1.444, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002511/0.002511, allocations: 282.6 kB / 290.8 MB, free: 1.93 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.017/1.017, allocations: 169.3 MB / 0.4983 GB, free: 13.8 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002633/0.002633, allocations: 92.34 kB / 0.681 GB, free: 16 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1679/0.1705, allocations: 86.97 MB / 0.7659 GB, free: 8.945 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.IO.Files.Examples.CSVWriter): time 0.003929/0.1745, allocations: 1.617 MB / 0.7675 GB, free: 7.32 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.001349/0.1759, allocations: 0.6044 MB / 0.7681 GB, free: 6.711 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.258e-05/0.176, allocations: 7.938 kB / 0.7681 GB, free: 6.703 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0001724/0.1762, allocations: 19.86 kB / 0.7681 GB, free: 6.684 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0002636/0.1765, allocations: 49.52 kB / 0.7681 GB, free: 6.637 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005868/0.1771, allocations: 111.7 kB / 0.7682 GB, free: 6.527 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0003624/0.1774, allocations: 195.6 kB / 0.7684 GB, free: 6.336 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001463/0.1776, allocations: 36.84 kB / 0.7685 GB, free: 6.301 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001989/0.1778, allocations: 83.75 kB / 0.7685 GB, free: 6.219 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001907/0.178, allocations: 83.72 kB / 0.7686 GB, free: 6.137 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 5.336e-05/0.1781, allocations: 16 kB / 0.7686 GB, free: 6.121 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001078/0.1782, allocations: 31.98 kB / 0.7687 GB, free: 6.09 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 9.72e-05/0.1783, allocations: 35.8 kB / 0.7687 GB, free: 6.055 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0001288/0.1784, allocations: 79.64 kB / 0.7688 GB, free: 5.977 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0003288/0.1788, allocations: 167.6 kB / 0.7689 GB, free: 5.812 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.537e-06/0.1788, allocations: 0 / 0.7689 GB, free: 5.812 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.483e-06/0.1788, allocations: 0 / 0.7689 GB, free: 5.812 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 6.693e-06/0.1788, allocations: 0 / 0.7689 GB, free: 5.812 MB / 0.5606 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.000903/0.1797, allocations: 0.564 MB / 0.7695 GB, free: 5.176 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.07e-05/0.1798, allocations: 8.031 kB / 0.7695 GB, free: 5.168 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.625e-05/0.1798, allocations: 34.75 kB / 0.7695 GB, free: 5.125 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.87e-05/0.1799, allocations: 20.84 kB / 0.7696 GB, free: 5.105 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000421/0.1804, allocations: 244.2 kB / 0.7698 GB, free: 4.828 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.075e-05/0.1804, allocations: 12.31 kB / 0.7698 GB, free: 4.816 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.741e-05/0.1804, allocations: 20.36 kB / 0.7698 GB, free: 4.797 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003602/0.1808, allocations: 105.6 kB / 0.7699 GB, free: 4.688 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.117e-06/0.1808, allocations: 0 / 0.7699 GB, free: 4.688 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.456e-05/0.1809, allocations: 11.98 kB / 0.7699 GB, free: 4.676 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.439e-06/0.1809, allocations: 0 / 0.7699 GB, free: 4.676 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002744/0.1812, allocations: 71.94 kB / 0.77 GB, free: 4.605 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008851/0.1821, allocations: 408.6 kB / 0.7704 GB, free: 4.156 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000221/0.1823, allocations: 86.53 kB / 0.7705 GB, free: 4.062 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001688/0.1825, allocations: 80.84 kB / 0.7705 GB, free: 3.98 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 2.256e-05/0.1825, allocations: 8.141 kB / 0.7706 GB, free: 3.973 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002861/0.1828, allocations: 178.7 kB / 0.7707 GB, free: 3.773 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=10): time 1.884e-06/0.1828, allocations: 0 / 0.7707 GB, free: 3.773 MB / 0.5606 GB Notification: Performance of matching and sorting (n=10): time 0.0007763/0.1836, allocations: 352.8 kB / 0.7711 GB, free: 3.41 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001129/0.1837, allocations: 162.5 kB / 0.7712 GB, free: 3.215 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001925/0.1839, allocations: 183.6 kB / 0.7714 GB, free: 3.02 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 2.758e-05/0.1839, allocations: 29.7 kB / 0.7714 GB, free: 2.984 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 7.657e-05/0.184, allocations: 116.3 kB / 0.7715 GB, free: 2.863 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 3.529e-05/0.1841, allocations: 27.83 kB / 0.7716 GB, free: 2.836 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.26e-05/0.1842, allocations: 41.7 kB / 0.7716 GB, free: 2.789 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001493/0.1843, allocations: 330.8 kB / 0.7719 GB, free: 2.457 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001345/0.1844, allocations: 47.97 kB / 0.772 GB, free: 2.41 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001718/0.1846, allocations: 102.8 kB / 0.7721 GB, free: 2.285 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003677/0.185, allocations: 312.9 kB / 0.7724 GB, free: 1.918 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.395e-06/0.185, allocations: 0 / 0.7724 GB, free: 1.918 MB / 0.5606 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005439/0.1856, allocations: 348.1 kB / 0.7727 GB, free: 1.547 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 9.7e-05/0.1857, allocations: 125 kB / 0.7728 GB, free: 1.402 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.5e-06/0.1857, allocations: 0 / 0.7728 GB, free: 1.402 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.691e-05/0.1857, allocations: 4 kB / 0.7728 GB, free: 1.398 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000106/0.1858, allocations: 19.92 kB / 0.7728 GB, free: 1.379 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.608e-06/0.1858, allocations: 7.938 kB / 0.7728 GB, free: 1.371 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001122/0.186, allocations: 20.14 kB / 0.7729 GB, free: 1.352 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.323e-05/0.186, allocations: 15.98 kB / 0.7729 GB, free: 1.336 MB / 0.5606 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.0001952/0.1862, allocations: 191.9 kB / 0.7731 GB, free: 1.129 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.601e-05/0.1862, allocations: 19.91 kB / 0.7731 GB, free: 1.109 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.973e-05/0.1863, allocations: 21.39 kB / 0.7731 GB, free: 1.086 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.783e-06/0.1863, allocations: 0 / 0.7731 GB, free: 1.086 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.637e-06/0.1863, allocations: 0 / 0.7731 GB, free: 1.086 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.434e-06/0.1863, allocations: 0 / 0.7731 GB, free: 1.086 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007642/0.1871, allocations: 0.5875 MB / 0.7737 GB, free: 440 kB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.804e-06/0.1871, allocations: 0 / 0.7737 GB, free: 440 kB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.07e-05/0.1872, allocations: 15.98 kB / 0.7737 GB, free: 424 kB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.1872, allocations: 3.938 kB / 0.7737 GB, free: 420 kB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.041e-05/0.1872, allocations: 7.984 kB / 0.7737 GB, free: 412 kB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.1872, allocations: 4 kB / 0.7737 GB, free: 408 kB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.905e-06/0.1872, allocations: 3.938 kB / 0.7737 GB, free: 404 kB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2672/0.4544, allocations: 397.7 kB / 0.7741 GB, free: 14.92 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 3.959e-05/0.4544, allocations: 90.11 kB / 0.7742 GB, free: 14.82 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.778e-05/0.4545, allocations: 8.609 kB / 0.7742 GB, free: 14.82 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001542/0.4547, allocations: 8.047 kB / 0.7742 GB, free: 14.82 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.685e-05/0.4547, allocations: 12.83 kB / 0.7742 GB, free: 14.82 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.092e-05/0.4547, allocations: 11.16 kB / 0.7742 GB, free: 14.82 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 9.439e-05/0.4548, allocations: 130.3 kB / 0.7743 GB, free: 14.75 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4549, allocations: 0 / 0.7743 GB, free: 14.75 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.000418/0.4553, allocations: 31.84 kB / 0.7744 GB, free: 14.75 MB / 0.5606 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.0008186/0.4561, allocations: 0.9614 MB / 0.7753 GB, free: 14.03 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0004351/0.4565, allocations: 361.2 kB / 0.7756 GB, free: 13.78 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.4566, allocations: 2.5 kB / 0.7756 GB, free: 13.78 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.000199/0.4568, allocations: 210.9 kB / 0.7758 GB, free: 13.66 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003665/0.4571, allocations: 17.88 kB / 0.7759 GB, free: 13.66 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002042/0.4592, allocations: 2.112 MB / 0.7779 GB, free: 12.24 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001254/0.4593, allocations: 0.7091 MB / 0.7786 GB, free: 11.54 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 6.781e-05/0.4594, allocations: 21.14 kB / 0.7786 GB, free: 11.54 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.294e-05/0.4595, allocations: 34.02 kB / 0.7787 GB, free: 11.54 MB / 0.5606 GB Notification: Performance of SimCode: time 2.41e-07/0.4595, allocations: 4.594 kB / 0.7787 GB, free: 11.54 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2861/0.7455, allocations: 3.657 MB / 0.7822 GB, free: 11.04 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.774/10.52, allocations: 10.47 kB / 0.7823 GB, free: 11.03 MB / 0.5606 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/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)