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.005443/0.005449, allocations: 100.9 kB / 15.73 MB, free: 6.027 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.001254/0.001254, allocations: 193.1 kB / 16.67 MB, free: 5.961 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: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002086/0.002086, allocations: 286.5 kB / 290.8 MB, free: 1.914 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9209/0.9209, allocations: 169.3 MB / 0.4983 GB, free: 13.8 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001897/0.001897, allocations: 91.86 kB / 0.681 GB, free: 16 kB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1509/0.1528, allocations: 86.97 MB / 0.7659 GB, free: 8.965 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.IO.Files.Examples.CSVWriter): time 0.002774/0.1556, allocations: 1.615 MB / 0.7675 GB, free: 7.34 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0009868/0.1566, allocations: 0.6084 MB / 0.7681 GB, free: 6.727 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.51e-05/0.1567, allocations: 4 kB / 0.7681 GB, free: 6.723 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0001785/0.1569, allocations: 23.8 kB / 0.7681 GB, free: 6.699 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0002339/0.1572, allocations: 46.5 kB / 0.7681 GB, free: 6.656 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003926/0.1576, allocations: 107.8 kB / 0.7682 GB, free: 6.551 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.000262/0.1578, allocations: 191.6 kB / 0.7684 GB, free: 6.363 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001138/0.158, allocations: 40.78 kB / 0.7685 GB, free: 6.324 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001671/0.1581, allocations: 91.69 kB / 0.7685 GB, free: 6.234 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000134/0.1583, allocations: 91.64 kB / 0.7686 GB, free: 6.145 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 3.696e-05/0.1583, allocations: 12 kB / 0.7686 GB, free: 6.133 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 7.466e-05/0.1584, allocations: 28 kB / 0.7687 GB, free: 6.105 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 8.08e-05/0.1585, allocations: 27.91 kB / 0.7687 GB, free: 6.078 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 9.801e-05/0.1586, allocations: 75.66 kB / 0.7688 GB, free: 6.004 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0002445/0.1588, allocations: 171.5 kB / 0.7689 GB, free: 5.836 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.1589, allocations: 0 / 0.7689 GB, free: 5.836 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.282e-06/0.1589, allocations: 0 / 0.7689 GB, free: 5.836 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 6.071e-06/0.1589, allocations: 0 / 0.7689 GB, free: 5.836 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.0006642/0.1595, allocations: 0.5524 MB / 0.7695 GB, free: 5.211 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.785e-05/0.1596, allocations: 11.97 kB / 0.7695 GB, free: 5.199 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.848e-05/0.1596, allocations: 38.75 kB / 0.7695 GB, free: 5.152 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.325e-05/0.1597, allocations: 16.84 kB / 0.7695 GB, free: 5.137 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003495/0.1601, allocations: 248.1 kB / 0.7698 GB, free: 4.855 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.59e-05/0.1601, allocations: 8.375 kB / 0.7698 GB, free: 4.848 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.173e-05/0.1601, allocations: 12.38 kB / 0.7698 GB, free: 4.836 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002741/0.1604, allocations: 121.5 kB / 0.7699 GB, free: 4.711 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.674e-06/0.1604, allocations: 0 / 0.7699 GB, free: 4.711 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.484e-05/0.1604, allocations: 0 / 0.7699 GB, free: 4.711 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.062e-06/0.1605, allocations: 4 kB / 0.7699 GB, free: 4.707 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001748/0.1606, allocations: 67.95 kB / 0.77 GB, free: 4.641 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006157/0.1613, allocations: 424.4 kB / 0.7704 GB, free: 4.176 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001813/0.1615, allocations: 86.53 kB / 0.7705 GB, free: 4.082 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001445/0.1616, allocations: 80.81 kB / 0.7705 GB, free: 4 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 2.567e-05/0.1616, allocations: 4 kB / 0.7705 GB, free: 3.996 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002485/0.1619, allocations: 170.8 kB / 0.7707 GB, free: 3.805 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=10): time 1.403e-06/0.1619, allocations: 3.938 kB / 0.7707 GB, free: 3.801 MB / 0.5606 GB Notification: Performance of matching and sorting (n=10): time 0.0006762/0.1626, allocations: 349.3 kB / 0.771 GB, free: 3.441 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.93e-05/0.1627, allocations: 174.1 kB / 0.7712 GB, free: 3.234 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001638/0.1629, allocations: 175.6 kB / 0.7714 GB, free: 3.047 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 2.843e-05/0.1629, allocations: 37.69 kB / 0.7714 GB, free: 3.004 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 7.488e-05/0.163, allocations: 108.4 kB / 0.7715 GB, free: 2.891 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 3e-05/0.163, allocations: 27.64 kB / 0.7715 GB, free: 2.863 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.945e-05/0.1631, allocations: 37.7 kB / 0.7716 GB, free: 2.82 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001201/0.1632, allocations: 326.8 kB / 0.7719 GB, free: 2.492 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000129/0.1633, allocations: 55.95 kB / 0.7719 GB, free: 2.438 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001492/0.1635, allocations: 102.8 kB / 0.772 GB, free: 2.312 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003146/0.1638, allocations: 308.9 kB / 0.7723 GB, free: 1.949 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.679e-06/0.1638, allocations: 4 kB / 0.7723 GB, free: 1.945 MB / 0.5606 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005057/0.1644, allocations: 344.1 kB / 0.7727 GB, free: 1.578 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 8.361e-05/0.1644, allocations: 122.8 kB / 0.7728 GB, free: 1.434 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.066e-05/0.1645, allocations: 3.984 kB / 0.7728 GB, free: 1.43 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.628e-05/0.1645, allocations: 11.88 kB / 0.7728 GB, free: 1.418 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001127/0.1646, allocations: 15.98 kB / 0.7728 GB, free: 1.402 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.011e-05/0.1646, allocations: 4 kB / 0.7728 GB, free: 1.398 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001065/0.1647, allocations: 20.14 kB / 0.7728 GB, free: 1.379 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.118e-05/0.1648, allocations: 12 kB / 0.7729 GB, free: 1.367 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.0001664/0.1649, allocations: 203.7 kB / 0.773 GB, free: 1.148 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.419e-05/0.165, allocations: 15.81 kB / 0.7731 GB, free: 1.133 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.862e-05/0.165, allocations: 17.39 kB / 0.7731 GB, free: 1.113 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.034e-06/0.165, allocations: 0 / 0.7731 GB, free: 1.113 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.061e-06/0.165, allocations: 0 / 0.7731 GB, free: 1.113 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.406e-06/0.165, allocations: 0 / 0.7731 GB, free: 1.113 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006693/0.1657, allocations: 0.5876 MB / 0.7737 GB, free: 468 kB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.1657, allocations: 0 / 0.7737 GB, free: 468 kB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.477e-05/0.1658, allocations: 12 kB / 0.7737 GB, free: 456 kB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.276e-06/0.1658, allocations: 0 / 0.7737 GB, free: 456 kB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.325e-05/0.1658, allocations: 15.97 kB / 0.7737 GB, free: 440 kB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.1658, allocations: 0 / 0.7737 GB, free: 440 kB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.494e-06/0.1659, allocations: 3.938 kB / 0.7737 GB, free: 436 kB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005061/0.1664, allocations: 406.5 kB / 0.7741 GB, free: 0 / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.3047/0.471, allocations: 83.48 kB / 0.7742 GB, free: 14.95 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.911e-05/0.4712, allocations: 4.844 kB / 0.7742 GB, free: 14.95 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001942/0.4714, allocations: 8.203 kB / 0.7742 GB, free: 14.95 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.003e-05/0.4715, allocations: 10.42 kB / 0.7742 GB, free: 14.95 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.751e-05/0.4715, allocations: 9.422 kB / 0.7742 GB, free: 14.95 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0001598/0.4717, allocations: 130.5 kB / 0.7743 GB, free: 14.87 MB / 0.5606 GB Notification: Performance of sort global known variables: time 5.51e-07/0.4717, allocations: 0 / 0.7743 GB, free: 14.87 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0004711/0.4722, allocations: 34.55 kB / 0.7743 GB, free: 14.87 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.001026/0.4732, allocations: 0.9567 MB / 0.7753 GB, free: 14.15 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.000485/0.4737, allocations: 369.6 kB / 0.7756 GB, free: 13.9 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.4737, allocations: 1.031 kB / 0.7756 GB, free: 13.9 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0002075/0.4739, allocations: 204.2 kB / 0.7758 GB, free: 13.78 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003101/0.4743, allocations: 31.53 kB / 0.7759 GB, free: 13.78 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002252/0.4765, allocations: 2.093 MB / 0.7779 GB, free: 12.37 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001501/0.4767, allocations: 0.7088 MB / 0.7786 GB, free: 11.67 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 7.879e-05/0.4768, allocations: 20.05 kB / 0.7786 GB, free: 11.67 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.529e-05/0.4768, allocations: 39.19 kB / 0.7786 GB, free: 11.66 MB / 0.5606 GB Notification: Performance of SimCode: time 4.91e-07/0.4768, allocations: 3.719 kB / 0.7786 GB, free: 11.66 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02069/0.4975, allocations: 3.734 MB / 0.7823 GB, free: 11.14 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.2/7.697, allocations: 8.344 kB / 0.7823 GB, free: 11.14 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)