Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.CSVWriter.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package BuildingSystems with version 2.0.0-beta (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8477/0.8477, allocations: 143.8 MB / 159.1 MB, free: 6.551 MB / 122.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008918/0.0008919, allocations: 175.3 kB / 192 MB, free: 6.738 MB / 154.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.378/1.378, allocations: 225.7 MB / 450.4 MB, free: 5.008 MB / 330.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007959/0.0007957, allocations: 103.5 kB / 0.5211 GB, free: 1.668 MB / 410.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001648/0.001649, allocations: 275.6 kB / 0.6025 GB, free: 49.34 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004219/0.0004218, allocations: 10.81 kB / 0.6948 GB, free: 59.25 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1529/0.1533, allocations: 82.46 MB / 0.7753 GB, free: 14.41 MB / 458.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.IO.Files.Examples.CSVWriter): time 0.001994/0.1553, allocations: 1.302 MB / 0.7766 GB, free: 13.09 MB / 458.7 MB Notification: Performance of NFInst.instExpressions: time 0.001067/0.1564, allocations: 0.9017 MB / 0.7775 GB, free: 12.11 MB / 458.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.584e-05/0.1565, allocations: 0 / 0.7775 GB, free: 12.11 MB / 458.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001658/0.1567, allocations: 19.92 kB / 0.7775 GB, free: 12.09 MB / 458.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001917/0.1569, allocations: 39.83 kB / 0.7775 GB, free: 12.05 MB / 458.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004073/0.1573, allocations: 103.8 kB / 0.7776 GB, free: 11.95 MB / 458.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001645/0.1575, allocations: 163.6 kB / 0.7778 GB, free: 11.79 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001284/0.1576, allocations: 29.31 kB / 0.7778 GB, free: 11.76 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001332/0.1577, allocations: 67.77 kB / 0.7779 GB, free: 11.7 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001243/0.1579, allocations: 79.72 kB / 0.778 GB, free: 11.62 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 3.02e-05/0.1579, allocations: 8 kB / 0.778 GB, free: 11.61 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.555e-05/0.158, allocations: 23.98 kB / 0.778 GB, free: 11.59 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 7.83e-05/0.1581, allocations: 27.86 kB / 0.778 GB, free: 11.56 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001022/0.1582, allocations: 89.41 kB / 0.7781 GB, free: 11.46 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002119/0.1584, allocations: 155.4 kB / 0.7782 GB, free: 11.31 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.019e-06/0.1584, allocations: 0 / 0.7782 GB, free: 11.31 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.1584, allocations: 0 / 0.7782 GB, free: 11.31 MB / 458.7 MB Notification: Performance of Transformations before backend: time 4.478e-06/0.1584, allocations: 0 / 0.7782 GB, free: 11.31 MB / 458.7 MB 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.0006067/0.159, allocations: 0.5252 MB / 0.7788 GB, free: 10.71 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.558e-05/0.1591, allocations: 8.031 kB / 0.7788 GB, free: 10.71 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.319e-05/0.1591, allocations: 24.75 kB / 0.7788 GB, free: 10.68 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002763/0.1594, allocations: 233.7 kB / 0.779 GB, free: 10.42 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.76e-05/0.1594, allocations: 8.312 kB / 0.779 GB, free: 10.41 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.331e-05/0.1595, allocations: 16.38 kB / 0.779 GB, free: 10.39 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002707/0.1598, allocations: 117.7 kB / 0.7791 GB, free: 10.27 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.995e-06/0.1598, allocations: 0 / 0.7791 GB, free: 10.27 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.857e-05/0.1598, allocations: 8 kB / 0.7792 GB, free: 10.27 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.328e-06/0.1598, allocations: 0 / 0.7792 GB, free: 10.27 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001884/0.16, allocations: 71.95 kB / 0.7792 GB, free: 10.2 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000627/0.1606, allocations: 432.5 kB / 0.7796 GB, free: 9.723 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001893/0.1608, allocations: 86.53 kB / 0.7797 GB, free: 9.629 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001548/0.161, allocations: 84.91 kB / 0.7798 GB, free: 9.543 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.362e-05/0.161, allocations: 3.938 kB / 0.7798 GB, free: 9.539 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002662/0.1613, allocations: 178.7 kB / 0.78 GB, free: 9.34 MB / 458.7 MB Notification: Performance of pre-optimization done (n=10): time 1.312e-06/0.1613, allocations: 0 / 0.78 GB, free: 9.34 MB / 458.7 MB Notification: Performance of matching and sorting (n=10): time 0.0007206/0.1621, allocations: 372.8 kB / 0.7803 GB, free: 8.957 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.245e-05/0.1622, allocations: 166.2 kB / 0.7805 GB, free: 8.758 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001641/0.1623, allocations: 174.7 kB / 0.7807 GB, free: 8.574 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 2.43e-05/0.1624, allocations: 29.7 kB / 0.7807 GB, free: 8.539 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.674e-05/0.1624, allocations: 112.3 kB / 0.7808 GB, free: 8.422 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.703e-05/0.1625, allocations: 27.66 kB / 0.7808 GB, free: 8.395 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.111e-05/0.1625, allocations: 4 kB / 0.7808 GB, free: 8.391 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001216/0.1626, allocations: 326.8 kB / 0.7811 GB, free: 8.062 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000133/0.1628, allocations: 59.89 kB / 0.7812 GB, free: 8.004 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001617/0.1629, allocations: 114.8 kB / 0.7813 GB, free: 7.867 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003498/0.1633, allocations: 316.9 kB / 0.7816 GB, free: 7.496 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.487e-06/0.1633, allocations: 8 kB / 0.7816 GB, free: 7.488 MB / 458.7 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0004877/0.1638, allocations: 344 kB / 0.7819 GB, free: 7.121 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.803e-05/0.1639, allocations: 118.8 kB / 0.782 GB, free: 6.98 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.921e-06/0.1639, allocations: 256 / 0.782 GB, free: 6.98 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.578e-05/0.1639, allocations: 8 kB / 0.7821 GB, free: 6.973 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000118/0.164, allocations: 23.98 kB / 0.7821 GB, free: 6.949 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.152e-05/0.1641, allocations: 3.938 kB / 0.7821 GB, free: 6.945 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.591e-05/0.1642, allocations: 19.98 kB / 0.7821 GB, free: 6.926 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.143e-05/0.1642, allocations: 8 kB / 0.7821 GB, free: 6.918 MB / 458.7 MB 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 () * 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.0001623/0.1644, allocations: 202.1 kB / 0.7823 GB, free: 6.699 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.066e-05/0.1644, allocations: 19.8 kB / 0.7823 GB, free: 6.68 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.741e-05/0.1644, allocations: 21.39 kB / 0.7823 GB, free: 6.66 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.773e-06/0.1645, allocations: 0 / 0.7823 GB, free: 6.66 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.526e-06/0.1645, allocations: 0 / 0.7823 GB, free: 6.66 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.066e-06/0.1645, allocations: 4 kB / 0.7823 GB, free: 6.656 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006983/0.1652, allocations: 0.5954 MB / 0.7829 GB, free: 5.992 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.1652, allocations: 0 / 0.7829 GB, free: 5.992 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.37e-05/0.1653, allocations: 12 kB / 0.7829 GB, free: 5.98 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.677e-06/0.1653, allocations: 0 / 0.7829 GB, free: 5.98 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.213e-05/0.1653, allocations: 15.92 kB / 0.783 GB, free: 5.965 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.342e-06/0.1653, allocations: 0 / 0.783 GB, free: 5.965 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.1653, allocations: 3.938 kB / 0.783 GB, free: 5.961 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000516/0.1658, allocations: 410.9 kB / 0.7833 GB, free: 5.531 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.715e-05/0.1659, allocations: 92.91 kB / 0.7834 GB, free: 5.422 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.223e-05/0.1659, allocations: 4 kB / 0.7834 GB, free: 5.418 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001065/0.1661, allocations: 12 kB / 0.7835 GB, free: 5.406 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.078e-05/0.1661, allocations: 11.92 kB / 0.7835 GB, free: 5.395 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.661e-05/0.1661, allocations: 11.94 kB / 0.7835 GB, free: 5.383 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0001011/0.1662, allocations: 138.4 kB / 0.7836 GB, free: 5.25 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1662, allocations: 3.938 kB / 0.7836 GB, free: 5.246 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.0002624/0.1665, allocations: 36 kB / 0.7836 GB, free: 5.211 MB / 458.7 MB 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.0002631/0.1668, allocations: 134.4 kB / 0.7838 GB, free: 5.082 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.000475/0.1673, allocations: 361.5 kB / 0.7841 GB, free: 4.68 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.1673, allocations: 0 / 0.7841 GB, free: 4.68 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002282/0.1675, allocations: 215.2 kB / 0.7843 GB, free: 4.445 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002789/0.1678, allocations: 16 kB / 0.7843 GB, free: 4.43 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005703/0.1684, allocations: 326 kB / 0.7846 GB, free: 4.082 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000269/0.1687, allocations: 0.7082 MB / 0.7853 GB, free: 3.348 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 7.152e-05/0.1687, allocations: 20.53 kB / 0.7854 GB, free: 3.328 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.138e-05/0.1688, allocations: 11.44 kB / 0.7854 GB, free: 3.316 MB / 458.7 MB Notification: Performance of SimCode: time 3.91e-07/0.1688, allocations: 4 kB / 0.7854 GB, free: 3.312 MB / 458.7 MB Notification: Performance of Templates: time 0.00472/0.1735, allocations: 2.005 MB / 0.7873 GB, free: 1.336 MB / 458.7 MB 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)