Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-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(IBPSA.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_IO_Files_Examples_CSVWriter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="IBPSA_latest_IBPSA_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.004999/0.005002, allocations: 103 kB / 15.88 MB, free: 6.32 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.001083/0.001083, allocations: 198.1 kB / 16.79 MB, free: 6.246 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.126/1.126, allocations: 222.9 MB / 240.5 MB, free: 4.598 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.5915/0.5915, allocations: 115.3 MB / 406 MB, free: 2.75 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001135/0.001135, allocations: 67.27 kB / 493 MB, free: 6.691 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.107/0.1082, allocations: 76.17 MB / 0.5558 GB, free: 10.71 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.IO.Files.Examples.CSVWriter): time 0.002393/0.1106, allocations: 1.669 MB / 0.5575 GB, free: 9.031 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008642/0.1115, allocations: 0.6235 MB / 0.5581 GB, free: 8.402 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.011e-05/0.1116, allocations: 4 kB / 0.5581 GB, free: 8.398 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001333/0.1117, allocations: 19.91 kB / 0.5581 GB, free: 8.379 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001578/0.1119, allocations: 35.45 kB / 0.5581 GB, free: 8.348 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003236/0.1122, allocations: 103.8 kB / 0.5582 GB, free: 8.246 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001389/0.1124, allocations: 163.6 kB / 0.5584 GB, free: 8.086 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.375e-05/0.1125, allocations: 25.12 kB / 0.5584 GB, free: 8.062 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001228/0.1126, allocations: 75.75 kB / 0.5585 GB, free: 7.988 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000102/0.1127, allocations: 83.66 kB / 0.5586 GB, free: 7.906 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 3.215e-05/0.1127, allocations: 8 kB / 0.5586 GB, free: 7.898 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.895e-05/0.1128, allocations: 23.98 kB / 0.5586 GB, free: 7.875 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 7.195e-05/0.1129, allocations: 27.91 kB / 0.5586 GB, free: 7.848 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 7.997e-05/0.113, allocations: 63.66 kB / 0.5587 GB, free: 7.785 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001706/0.1131, allocations: 159.8 kB / 0.5588 GB, free: 7.629 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.156e-06/0.1132, allocations: 7.938 kB / 0.5588 GB, free: 7.621 MB / 430.1 MB Notification: Performance of FrontEnd: time 6.82e-07/0.1132, allocations: 0 / 0.5588 GB, free: 7.621 MB / 430.1 MB Notification: Performance of Transformations before backend: time 5.731e-06/0.1132, allocations: 0 / 0.5588 GB, free: 7.621 MB / 430.1 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.0005585/0.1137, allocations: 0.5545 MB / 0.5594 GB, free: 6.996 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.956e-05/0.1138, allocations: 8.031 kB / 0.5594 GB, free: 6.988 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.356e-05/0.1138, allocations: 38.75 kB / 0.5594 GB, free: 6.941 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.006e-05/0.1139, allocations: 20.75 kB / 0.5594 GB, free: 6.922 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002303/0.1141, allocations: 228.2 kB / 0.5597 GB, free: 6.66 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.352e-05/0.1141, allocations: 16.31 kB / 0.5597 GB, free: 6.645 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.565e-05/0.1142, allocations: 16.38 kB / 0.5597 GB, free: 6.629 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002282/0.1144, allocations: 117.5 kB / 0.5598 GB, free: 6.508 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.483e-06/0.1144, allocations: 3.984 kB / 0.5598 GB, free: 6.504 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.513e-05/0.1144, allocations: 4 kB / 0.5598 GB, free: 6.5 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.488e-06/0.1144, allocations: 0 / 0.5598 GB, free: 6.5 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000181/0.1146, allocations: 75.88 kB / 0.5599 GB, free: 6.426 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005146/0.1151, allocations: 412.6 kB / 0.5603 GB, free: 5.973 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000168/0.1153, allocations: 86.53 kB / 0.5604 GB, free: 5.879 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001367/0.1155, allocations: 76.81 kB / 0.5604 GB, free: 5.801 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.193e-05/0.1155, allocations: 12.17 kB / 0.5604 GB, free: 5.789 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002448/0.1157, allocations: 174.7 kB / 0.5606 GB, free: 5.594 MB / 430.1 MB Notification: Performance of pre-optimization done (n=10): time 1.422e-06/0.1158, allocations: 0 / 0.5606 GB, free: 5.594 MB / 430.1 MB Notification: Performance of matching and sorting (n=10): time 0.0006258/0.1164, allocations: 348.7 kB / 0.5609 GB, free: 5.234 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.17e-05/0.1165, allocations: 166.2 kB / 0.5611 GB, free: 5.035 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001311/0.1166, allocations: 186.5 kB / 0.5613 GB, free: 4.844 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.857e-05/0.1166, allocations: 29.7 kB / 0.5613 GB, free: 4.809 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.077e-05/0.1167, allocations: 116.3 kB / 0.5614 GB, free: 4.688 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.328e-05/0.1167, allocations: 23.66 kB / 0.5614 GB, free: 4.664 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.057e-05/0.1168, allocations: 41.7 kB / 0.5615 GB, free: 4.617 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 8.959e-05/0.1169, allocations: 330.8 kB / 0.5618 GB, free: 4.285 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001206/0.117, allocations: 47.97 kB / 0.5618 GB, free: 4.238 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001428/0.1172, allocations: 110.1 kB / 0.562 GB, free: 4.109 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002856/0.1175, allocations: 316.9 kB / 0.5623 GB, free: 3.738 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.1175, allocations: 0 / 0.5623 GB, free: 3.738 MB / 430.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0004628/0.1179, allocations: 348.1 kB / 0.5626 GB, free: 3.367 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.565e-05/0.118, allocations: 118.8 kB / 0.5627 GB, free: 3.227 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.591e-06/0.118, allocations: 4 kB / 0.5627 GB, free: 3.223 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.067e-06/0.118, allocations: 0 / 0.5627 GB, free: 3.223 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.514e-05/0.1181, allocations: 19.98 kB / 0.5627 GB, free: 3.203 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.362e-06/0.1181, allocations: 3.938 kB / 0.5627 GB, free: 3.199 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.956e-05/0.1182, allocations: 12.28 kB / 0.5627 GB, free: 3.188 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.772e-05/0.1183, allocations: 8 kB / 0.5627 GB, free: 3.18 MB / 430.1 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 (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.0001285/0.1184, allocations: 203 kB / 0.5629 GB, free: 2.961 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.255e-05/0.1184, allocations: 23.75 kB / 0.563 GB, free: 2.938 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.059e-05/0.1185, allocations: 13.41 kB / 0.563 GB, free: 2.926 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.253e-06/0.1185, allocations: 0 / 0.563 GB, free: 2.926 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.377e-06/0.1185, allocations: 0 / 0.563 GB, free: 2.926 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.244e-06/0.1185, allocations: 0 / 0.563 GB, free: 2.926 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006133/0.1191, allocations: 0.5991 MB / 0.5636 GB, free: 2.258 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.1191, allocations: 0 / 0.5636 GB, free: 2.258 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.213e-05/0.1192, allocations: 11.98 kB / 0.5636 GB, free: 2.246 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.385e-06/0.1192, allocations: 0 / 0.5636 GB, free: 2.246 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.913e-05/0.1192, allocations: 8 kB / 0.5636 GB, free: 2.238 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.292e-06/0.1192, allocations: 3.938 kB / 0.5636 GB, free: 2.234 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.1192, allocations: 7.938 kB / 0.5636 GB, free: 2.227 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004626/0.1197, allocations: 398.7 kB / 0.564 GB, free: 1.809 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.514e-05/0.1197, allocations: 92.91 kB / 0.5641 GB, free: 1.699 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.357e-05/0.1198, allocations: 4 kB / 0.5641 GB, free: 1.695 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001065/0.1199, allocations: 7.984 kB / 0.5641 GB, free: 1.688 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.932e-05/0.1199, allocations: 15.92 kB / 0.5641 GB, free: 1.672 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.677e-05/0.12, allocations: 8 kB / 0.5641 GB, free: 1.664 MB / 430.1 MB Notification: Performance of sorting global known variables: time 8.264e-05/0.12, allocations: 136.2 kB / 0.5642 GB, free: 1.531 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.12, allocations: 0 / 0.5642 GB, free: 1.531 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0002646/0.1203, allocations: 36 kB / 0.5643 GB, free: 1.496 MB / 430.1 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.0007579/0.1211, allocations: 0.9636 MB / 0.5652 GB, free: 0.4961 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0003928/0.1215, allocations: 357.8 kB / 0.5655 GB, free: 100 kB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.413e-06/0.1215, allocations: 0 / 0.5655 GB, free: 100 kB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002183/0.1217, allocations: 214.7 kB / 0.5657 GB, free: 15.86 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002712/0.122, allocations: 23.92 kB / 0.5658 GB, free: 15.84 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002005/0.124, allocations: 2.126 MB / 0.5678 GB, free: 13.57 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001916/0.1242, allocations: 0.7043 MB / 0.5685 GB, free: 12.84 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 5.649e-05/0.1243, allocations: 24.53 kB / 0.5686 GB, free: 12.82 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.334e-05/0.1243, allocations: 39.36 kB / 0.5686 GB, free: 12.78 MB / 446.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1243, allocations: 0 / 0.5686 GB, free: 12.78 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5718/0.6961, allocations: 3.391 MB / 0.5719 GB, free: 9.5 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001767/0.6963, allocations: 200.7 kB / 0.5721 GB, free: 9.242 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.889/2.585, allocations: 0 / 0.5721 GB, free: 9.242 MB / 446.1 MB (rm -f IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.CSVWriter.pipe ; mkfifo IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.CSVWriter.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.CSVWriter.pipe >> ../files/IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.CSVWriter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Utilities_IO_Files_Examples_CSVWriter_fmu --startTime=-1.21 --stopTime=10 --timeout=50 --tolerance=1e-06 IBPSA_latest_IBPSA_Utilities_IO_Files_Examples_CSVWriter.fmu > IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1)