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.001279/0.001279, allocations: 102 kB / 16.4 MB, free: 6.492 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.001253/0.001253, allocations: 195.8 kB / 17.34 MB, free: 5.766 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.387/1.387, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7108/0.7108, allocations: 115.3 MB / 406.5 MB, free: 6.133 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0012/0.0012, allocations: 65.77 kB / 0.5572 GB, free: 32.41 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1255/0.1268, allocations: 76.17 MB / 0.6316 GB, free: 4.926 MB / 478.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.IO.Files.Examples.CSVWriter): time 0.002699/0.1295, allocations: 1.601 MB / 0.6331 GB, free: 3.312 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009586/0.1305, allocations: 0.6118 MB / 0.6337 GB, free: 2.695 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.259e-05/0.1306, allocations: 4 kB / 0.6337 GB, free: 2.691 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001492/0.1308, allocations: 31.78 kB / 0.6338 GB, free: 2.66 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001994/0.131, allocations: 43.7 kB / 0.6338 GB, free: 2.617 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000397/0.1314, allocations: 111.8 kB / 0.6339 GB, free: 2.508 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002427/0.1316, allocations: 191.6 kB / 0.6341 GB, free: 2.32 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001141/0.1317, allocations: 25.11 kB / 0.6341 GB, free: 2.297 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001613/0.1319, allocations: 87.75 kB / 0.6342 GB, free: 2.211 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001279/0.132, allocations: 91.66 kB / 0.6343 GB, free: 2.121 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 3.467e-05/0.1321, allocations: 12 kB / 0.6343 GB, free: 2.109 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.629e-05/0.1322, allocations: 27.98 kB / 0.6343 GB, free: 2.082 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 8.099e-05/0.1322, allocations: 27.91 kB / 0.6344 GB, free: 2.055 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 9.574e-05/0.1323, allocations: 75.66 kB / 0.6344 GB, free: 1.98 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002235/0.1326, allocations: 174.3 kB / 0.6346 GB, free: 1.812 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.426e-06/0.1326, allocations: 0 / 0.6346 GB, free: 1.812 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.183e-06/0.1326, allocations: 0 / 0.6346 GB, free: 1.812 MB / 478.1 MB Notification: Performance of Transformations before backend: time 8.766e-06/0.1326, allocations: 0 / 0.6346 GB, free: 1.812 MB / 478.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.0006464/0.1333, allocations: 0.5571 MB / 0.6351 GB, free: 1.184 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.589e-05/0.1333, allocations: 8.031 kB / 0.6351 GB, free: 1.176 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.986e-05/0.1333, allocations: 34.75 kB / 0.6352 GB, free: 1.133 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.961e-05/0.1334, allocations: 24.75 kB / 0.6352 GB, free: 1.109 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003044/0.1337, allocations: 244.7 kB / 0.6354 GB, free: 0.832 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.703e-05/0.1338, allocations: 4.375 kB / 0.6354 GB, free: 0.8281 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.582e-05/0.1338, allocations: 20.36 kB / 0.6355 GB, free: 0.8086 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002681/0.1341, allocations: 113.4 kB / 0.6356 GB, free: 0.6914 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.883e-06/0.1341, allocations: 4 kB / 0.6356 GB, free: 0.6875 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.542e-05/0.1341, allocations: 0 / 0.6356 GB, free: 0.6875 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.538e-06/0.1341, allocations: 7.984 kB / 0.6356 GB, free: 0.6797 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001889/0.1343, allocations: 63.95 kB / 0.6356 GB, free: 0.6172 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006143/0.1349, allocations: 424.5 kB / 0.636 GB, free: 156 kB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001891/0.1351, allocations: 86.53 kB / 0.6361 GB, free: 60 kB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001757/0.1353, allocations: 80.84 kB / 0.6362 GB, free: 15.97 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.496e-05/0.1354, allocations: 7.938 kB / 0.6362 GB, free: 15.97 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002591/0.1356, allocations: 178.8 kB / 0.6364 GB, free: 15.77 MB / 494.1 MB Notification: Performance of pre-optimization done (n=10): time 1.563e-06/0.1356, allocations: 0 / 0.6364 GB, free: 15.77 MB / 494.1 MB Notification: Performance of matching and sorting (n=10): time 0.0007179/0.1364, allocations: 356.8 kB / 0.6367 GB, free: 15.4 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.664e-05/0.1365, allocations: 162.2 kB / 0.6369 GB, free: 15.21 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001572/0.1366, allocations: 186.5 kB / 0.6371 GB, free: 15.01 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.413e-05/0.1367, allocations: 33.7 kB / 0.6371 GB, free: 14.97 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.212e-05/0.1367, allocations: 104.4 kB / 0.6372 GB, free: 14.86 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.275e-05/0.1368, allocations: 31.64 kB / 0.6372 GB, free: 14.83 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.094e-05/0.1368, allocations: 37.7 kB / 0.6373 GB, free: 14.79 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001102/0.137, allocations: 326.8 kB / 0.6376 GB, free: 14.46 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001357/0.1371, allocations: 47.97 kB / 0.6376 GB, free: 14.41 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001674/0.1373, allocations: 106.8 kB / 0.6377 GB, free: 14.28 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003263/0.1376, allocations: 312.9 kB / 0.638 GB, free: 13.91 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.1376, allocations: 0 / 0.638 GB, free: 13.91 MB / 494.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005202/0.1382, allocations: 344.2 kB / 0.6383 GB, free: 13.55 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.932e-05/0.1382, allocations: 122.8 kB / 0.6385 GB, free: 13.4 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.5e-06/0.1383, allocations: 3.938 kB / 0.6385 GB, free: 13.4 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.484e-05/0.1383, allocations: 4 kB / 0.6385 GB, free: 13.39 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001108/0.1384, allocations: 15.98 kB / 0.6385 GB, free: 13.38 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.384e-06/0.1384, allocations: 4 kB / 0.6385 GB, free: 13.38 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000101/0.1385, allocations: 11.98 kB / 0.6385 GB, free: 13.36 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.174e-05/0.1385, allocations: 12 kB / 0.6385 GB, free: 13.35 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.0001533/0.1387, allocations: 206.9 kB / 0.6387 GB, free: 13.13 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.384e-05/0.1387, allocations: 15.81 kB / 0.6387 GB, free: 13.11 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.978e-05/0.1388, allocations: 21.39 kB / 0.6387 GB, free: 13.09 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.014e-06/0.1388, allocations: 3.938 kB / 0.6387 GB, free: 13.08 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.817e-06/0.1388, allocations: 0 / 0.6387 GB, free: 13.08 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.015e-06/0.1388, allocations: 0 / 0.6387 GB, free: 13.08 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006989/0.1395, allocations: 0.5875 MB / 0.6393 GB, free: 12.43 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.1395, allocations: 4 kB / 0.6393 GB, free: 12.42 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.881e-05/0.1396, allocations: 11.98 kB / 0.6393 GB, free: 12.41 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.304e-06/0.1396, allocations: 0 / 0.6393 GB, free: 12.41 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.126e-05/0.1396, allocations: 12.27 kB / 0.6393 GB, free: 12.4 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/0.1396, allocations: 0 / 0.6393 GB, free: 12.4 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.316e-06/0.1397, allocations: 7.938 kB / 0.6394 GB, free: 12.39 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005376/0.1402, allocations: 402.6 kB / 0.6397 GB, free: 11.97 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.292e-05/0.1403, allocations: 88.92 kB / 0.6398 GB, free: 11.86 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.502e-05/0.1403, allocations: 4 kB / 0.6398 GB, free: 11.86 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001196/0.1404, allocations: 11.98 kB / 0.6398 GB, free: 11.85 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.293e-05/0.1405, allocations: 7.938 kB / 0.6398 GB, free: 11.84 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.111e-05/0.1405, allocations: 15.98 kB / 0.6399 GB, free: 11.82 MB / 494.1 MB Notification: Performance of sorting global known variables: time 9.507e-05/0.1406, allocations: 127.2 kB / 0.64 GB, free: 11.7 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1406, allocations: 0 / 0.64 GB, free: 11.7 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002917/0.1409, allocations: 32 kB / 0.64 GB, free: 11.67 MB / 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.0008768/0.1418, allocations: 0.9629 MB / 0.641 GB, free: 10.67 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0004679/0.1423, allocations: 373.4 kB / 0.6413 GB, free: 10.26 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.1423, allocations: 0 / 0.6413 GB, free: 10.26 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002219/0.1425, allocations: 194.8 kB / 0.6415 GB, free: 10.04 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003155/0.1428, allocations: 31.17 kB / 0.6415 GB, free: 10.02 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00233/0.1452, allocations: 2.11 MB / 0.6436 GB, free: 7.758 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002441/0.1454, allocations: 0.7157 MB / 0.6443 GB, free: 7.016 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 6.945e-05/0.1455, allocations: 24.52 kB / 0.6443 GB, free: 6.992 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.516e-05/0.1456, allocations: 39.42 kB / 0.6443 GB, free: 6.953 MB / 494.1 MB Notification: Performance of SimCode: time 2.8e-07/0.1456, allocations: 0 / 0.6443 GB, free: 6.953 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01922/0.1648, allocations: 3.691 MB / 0.6479 GB, free: 3.352 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.785/7.95, allocations: 7.531 kB / 0.648 GB, free: 3.348 MB / 494.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)