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.001008/0.001008, allocations: 103.7 kB / 16.39 MB, free: 6.371 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.001008/0.001008, allocations: 198.4 kB / 17.33 MB, free: 5.844 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.27/1.27, allocations: 222.9 MB / 241 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7305/0.7305, allocations: 122.9 MB / 414 MB, free: 15.75 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001202/0.001202, allocations: 70.36 kB / 0.5679 GB, free: 28.99 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1206/0.1218, allocations: 77.93 MB / 0.644 GB, free: 9.555 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.IO.Files.Examples.CSVWriter): time 0.002522/0.1243, allocations: 1.599 MB / 0.6456 GB, free: 7.945 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008765/0.1252, allocations: 0.6167 MB / 0.6462 GB, free: 7.324 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.11e-05/0.1253, allocations: 0 / 0.6462 GB, free: 7.324 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001375/0.1255, allocations: 23.8 kB / 0.6462 GB, free: 7.301 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001897/0.1257, allocations: 39.77 kB / 0.6463 GB, free: 7.262 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003623/0.126, allocations: 111.8 kB / 0.6464 GB, free: 7.152 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002255/0.1263, allocations: 195.6 kB / 0.6466 GB, free: 6.961 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001062/0.1264, allocations: 37.09 kB / 0.6466 GB, free: 6.926 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001325/0.1265, allocations: 87.69 kB / 0.6467 GB, free: 6.84 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001169/0.1266, allocations: 83.72 kB / 0.6468 GB, free: 6.758 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.413e-05/0.1267, allocations: 16 kB / 0.6468 GB, free: 6.742 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.169e-05/0.1268, allocations: 24 kB / 0.6468 GB, free: 6.719 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 8.162e-05/0.1268, allocations: 27.91 kB / 0.6468 GB, free: 6.691 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 8.917e-05/0.1269, allocations: 75.64 kB / 0.6469 GB, free: 6.617 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000224/0.1272, allocations: 175.6 kB / 0.6471 GB, free: 6.445 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.985e-06/0.1272, allocations: 4 kB / 0.6471 GB, free: 6.441 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.1272, allocations: 0 / 0.6471 GB, free: 6.441 MB / 494.1 MB Notification: Performance of Transformations before backend: time 8.797e-06/0.1272, allocations: 0 / 0.6471 GB, free: 6.441 MB / 494.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.0006288/0.1278, allocations: 0.5523 MB / 0.6476 GB, free: 5.816 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.699e-05/0.1279, allocations: 16.61 kB / 0.6476 GB, free: 5.801 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.531e-05/0.1279, allocations: 38.75 kB / 0.6477 GB, free: 5.754 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.347e-05/0.128, allocations: 16.84 kB / 0.6477 GB, free: 5.738 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003026/0.1283, allocations: 244.2 kB / 0.6479 GB, free: 5.461 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.623e-05/0.1283, allocations: 12.38 kB / 0.6479 GB, free: 5.449 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.035e-05/0.1284, allocations: 12.38 kB / 0.6479 GB, free: 5.438 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002566/0.1286, allocations: 117.5 kB / 0.648 GB, free: 5.316 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.594e-06/0.1286, allocations: 0 / 0.648 GB, free: 5.316 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.847e-05/0.1287, allocations: 4 kB / 0.648 GB, free: 5.312 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.757e-06/0.1287, allocations: 3.938 kB / 0.6481 GB, free: 5.309 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002069/0.1289, allocations: 71.94 kB / 0.6481 GB, free: 5.238 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006046/0.1295, allocations: 412.8 kB / 0.6485 GB, free: 4.785 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001905/0.1297, allocations: 90.47 kB / 0.6486 GB, free: 4.688 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001629/0.1299, allocations: 76.81 kB / 0.6487 GB, free: 4.609 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.047e-05/0.1299, allocations: 160 / 0.6487 GB, free: 4.609 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002473/0.1302, allocations: 182.7 kB / 0.6488 GB, free: 4.406 MB / 494.1 MB Notification: Performance of pre-optimization done (n=10): time 1.473e-06/0.1302, allocations: 0 / 0.6488 GB, free: 4.406 MB / 494.1 MB Notification: Performance of matching and sorting (n=10): time 0.0007123/0.1309, allocations: 348.8 kB / 0.6492 GB, free: 4.047 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.279e-05/0.131, allocations: 170.2 kB / 0.6493 GB, free: 3.844 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001522/0.1311, allocations: 178.6 kB / 0.6495 GB, free: 3.656 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.411e-05/0.1312, allocations: 37.7 kB / 0.6495 GB, free: 3.613 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.505e-05/0.1312, allocations: 112.3 kB / 0.6497 GB, free: 3.496 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.762e-05/0.1313, allocations: 27.8 kB / 0.6497 GB, free: 3.469 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.372e-05/0.1314, allocations: 41.7 kB / 0.6497 GB, free: 3.422 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.782e-05/0.1315, allocations: 326.8 kB / 0.65 GB, free: 3.094 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001447/0.1316, allocations: 55.91 kB / 0.6501 GB, free: 3.039 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001636/0.1318, allocations: 102.8 kB / 0.6502 GB, free: 2.914 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003274/0.1321, allocations: 312.9 kB / 0.6505 GB, free: 2.547 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.339e-06/0.1321, allocations: 4 kB / 0.6505 GB, free: 2.543 MB / 494.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005226/0.1327, allocations: 340.4 kB / 0.6508 GB, free: 2.18 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.644e-05/0.1327, allocations: 118.8 kB / 0.6509 GB, free: 2.039 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.132e-06/0.1328, allocations: 4 kB / 0.6509 GB, free: 2.035 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.16e-05/0.1328, allocations: 0 / 0.6509 GB, free: 2.035 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001187/0.1329, allocations: 23.92 kB / 0.651 GB, free: 2.012 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.771e-06/0.1329, allocations: 288 / 0.651 GB, free: 2.012 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000109/0.133, allocations: 15.89 kB / 0.651 GB, free: 1.996 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.954e-05/0.1331, allocations: 15.94 kB / 0.651 GB, free: 1.98 MB / 494.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.0001484/0.1332, allocations: 214.4 kB / 0.6512 GB, free: 1.75 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.549e-05/0.1333, allocations: 19.91 kB / 0.6512 GB, free: 1.73 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.339e-05/0.1333, allocations: 9.406 kB / 0.6512 GB, free: 1.715 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.653e-06/0.1333, allocations: 4 kB / 0.6512 GB, free: 1.711 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.346e-06/0.1333, allocations: 0 / 0.6512 GB, free: 1.711 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.789e-06/0.1333, allocations: 3.984 kB / 0.6512 GB, free: 1.707 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006966/0.134, allocations: 0.5798 MB / 0.6518 GB, free: 1.059 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.637e-06/0.134, allocations: 4 kB / 0.6518 GB, free: 1.055 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.115e-05/0.1341, allocations: 19.98 kB / 0.6518 GB, free: 1.035 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.913e-06/0.1341, allocations: 0 / 0.6518 GB, free: 1.035 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.731e-05/0.1341, allocations: 4 kB / 0.6518 GB, free: 1.031 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.512e-06/0.1342, allocations: 0 / 0.6518 GB, free: 1.031 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/0.1342, allocations: 3.938 kB / 0.6518 GB, free: 1.027 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005405/0.1347, allocations: 410.7 kB / 0.6522 GB, free: 0.5977 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.216e-05/0.1348, allocations: 96.95 kB / 0.6523 GB, free: 496 kB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.868e-05/0.1348, allocations: 4 kB / 0.6523 GB, free: 492 kB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001225/0.1349, allocations: 8 kB / 0.6523 GB, free: 484 kB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.031e-05/0.135, allocations: 11.92 kB / 0.6523 GB, free: 472 kB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.596e-05/0.135, allocations: 4 kB / 0.6523 GB, free: 468 kB / 494.1 MB Notification: Performance of sorting global known variables: time 9.467e-05/0.1351, allocations: 132.3 kB / 0.6525 GB, free: 336 kB / 494.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1351, allocations: 0 / 0.6525 GB, free: 336 kB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002942/0.1354, allocations: 36 kB / 0.6525 GB, free: 300 kB / 494.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.000899/0.1363, allocations: 0.9597 MB / 0.6534 GB, free: 15.3 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0004694/0.1368, allocations: 361.4 kB / 0.6538 GB, free: 14.9 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 4.328e-06/0.1368, allocations: 0 / 0.6538 GB, free: 14.9 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002364/0.1371, allocations: 214.7 kB / 0.654 GB, free: 14.66 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003056/0.1374, allocations: 23.92 kB / 0.654 GB, free: 14.64 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002312/0.1397, allocations: 2.103 MB / 0.6561 GB, free: 12.39 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002308/0.1399, allocations: 0.7196 MB / 0.6568 GB, free: 11.64 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 6.568e-05/0.14, allocations: 20.48 kB / 0.6568 GB, free: 11.62 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.673e-05/0.1401, allocations: 31.42 kB / 0.6568 GB, free: 11.59 MB / 0.4981 GB Notification: Performance of SimCode: time 2.5e-07/0.1401, allocations: 0 / 0.6568 GB, free: 11.59 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01915/0.1592, allocations: 3.643 MB / 0.6604 GB, free: 8.047 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.448/7.607, allocations: 14.58 kB / 0.6604 GB, free: 8.035 MB / 0.4981 GB (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 & python3 -m fmpy simulate --output-file IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.CSVWriter_res.csv --start-time -1.21 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004484 IBPSA_latest_IBPSA_Utilities_IO_Files_Examples_CSVWriter.fmu > IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1)