Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_IDEAS.Utilities.IO.Files.Examples.CSVWriter.conf.json 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/IDEAS 3.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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) Running command: "" <> buildModelFMU(IDEAS.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="IDEAS_IDEAS_Utilities_IO_Files_Examples_CSVWriter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="IDEAS_IDEAS_Utilities_IO_Files_Examples_CSVWriter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001226/0.001226, allocations: 176.2 kB / 7.648 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7871/0.7871, allocations: 133.6 MB / 141.6 MB, free: 2.895 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.58/1.58, allocations: 221.5 MB / 395.4 MB, free: 10.75 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008361/0.0008359, allocations: 101.2 kB / 478.2 MB, free: 1.305 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 1.768e-05/1.761e-05, allocations: 0 / 0.5535 GB, free: 8.938 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4667/0.4667, allocations: 82.31 MB / 0.6339 GB, free: 40.8 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1525/0.6193, allocations: 112.7 MB / 0.744 GB, free: 9.953 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00028/0.6196, allocations: 75.95 kB / 0.744 GB, free: 9.879 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.01372/0.6334, allocations: 5.019 MB / 0.749 GB, free: 4.832 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.462e-06/0.6334, allocations: 4 kB / 0.749 GB, free: 4.828 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 1.278e-05/0.6334, allocations: 0 / 0.749 GB, free: 4.828 MB / 0.5261 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.0006583/0.6341, allocations: 0.5243 MB / 0.7495 GB, free: 4.234 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.889e-05/0.6342, allocations: 8.031 kB / 0.7495 GB, free: 4.227 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.706e-05/0.6342, allocations: 23.75 kB / 0.7495 GB, free: 4.203 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003441/0.6346, allocations: 234.7 kB / 0.7497 GB, free: 3.934 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.682e-05/0.6346, allocations: 4 kB / 0.7497 GB, free: 3.93 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.278e-05/0.6347, allocations: 15.98 kB / 0.7497 GB, free: 3.914 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000145/0.6348, allocations: 43.98 kB / 0.7498 GB, free: 3.871 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001731/0.635, allocations: 97.58 kB / 0.7499 GB, free: 3.77 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.303e-05/0.635, allocations: 0 / 0.7499 GB, free: 3.77 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.804e-05/0.635, allocations: 4 kB / 0.7499 GB, free: 3.766 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.609e-06/0.6351, allocations: 4 kB / 0.7499 GB, free: 3.762 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007115/0.6358, allocations: 397.1 kB / 0.7503 GB, free: 3.336 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001465/0.6359, allocations: 78.55 kB / 0.7503 GB, free: 3.25 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001105/0.6361, allocations: 60.84 kB / 0.7504 GB, free: 3.188 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 3.143e-05/0.6361, allocations: 0 / 0.7504 GB, free: 3.188 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002989/0.6364, allocations: 166.8 kB / 0.7506 GB, free: 3 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=10): time 2.395e-06/0.6364, allocations: 0 / 0.7506 GB, free: 3 MB / 0.5261 GB Notification: Performance of matching and sorting (n=10): time 0.0005582/0.637, allocations: 205.7 kB / 0.7507 GB, free: 2.793 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001222/0.6371, allocations: 170.2 kB / 0.7509 GB, free: 2.59 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002021/0.6373, allocations: 153.7 kB / 0.7511 GB, free: 2.43 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 3.291e-05/0.6374, allocations: 29.7 kB / 0.7511 GB, free: 2.395 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.000103/0.6375, allocations: 112.3 kB / 0.7512 GB, free: 2.277 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 4.177e-05/0.6375, allocations: 23.7 kB / 0.7512 GB, free: 2.254 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.486e-05/0.6376, allocations: 4 kB / 0.7512 GB, free: 2.25 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001748/0.6377, allocations: 326.8 kB / 0.7515 GB, free: 1.922 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.835e-05/0.6378, allocations: 39.98 kB / 0.7516 GB, free: 1.883 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001449/0.638, allocations: 86.86 kB / 0.7517 GB, free: 1.773 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001071/0.6381, allocations: 47.91 kB / 0.7517 GB, free: 1.727 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.847e-06/0.6381, allocations: 8 kB / 0.7517 GB, free: 1.719 MB / 0.5261 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003805/0.6385, allocations: 197.3 kB / 0.7519 GB, free: 1.52 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 9.632e-05/0.6386, allocations: 114.8 kB / 0.752 GB, free: 1.383 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.328e-05/0.6386, allocations: 4.062 kB / 0.752 GB, free: 1.379 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.028e-05/0.6387, allocations: 11.88 kB / 0.752 GB, free: 1.367 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001332/0.6388, allocations: 24.17 kB / 0.752 GB, free: 1.344 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.386e-06/0.6388, allocations: 7.984 kB / 0.752 GB, free: 1.336 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000115/0.6389, allocations: 19.91 kB / 0.7521 GB, free: 1.316 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.399e-05/0.639, allocations: 8 kB / 0.7521 GB, free: 1.309 MB / 0.5261 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 ($PRE.combiTimeTableWriter.str,combiTimeTableWriter.str,$PRE.csvWriter.str,csvWriter.str,$whenCondition2,combiTimeTableWriter.sampleTrigger,$whenCondition1,csvWriter.sampleTrigger) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001878/0.6392, allocations: 181.9 kB / 0.7522 GB, free: 1.113 MB / 0.5261 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0003686/0.6395, allocations: 209.5 kB / 0.7524 GB, free: 0.9023 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.634e-05/0.6396, allocations: 15.81 kB / 0.7525 GB, free: 0.8867 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.065e-05/0.6396, allocations: 17.83 kB / 0.7525 GB, free: 0.875 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.445e-06/0.6396, allocations: 4 kB / 0.7525 GB, free: 0.8711 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.6397, allocations: 0 / 0.7525 GB, free: 0.8711 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.651e-06/0.6397, allocations: 3.953 kB / 0.7525 GB, free: 0.8672 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005561/0.6402, allocations: 475 kB / 0.7529 GB, free: 368 kB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.704e-06/0.6402, allocations: 0 / 0.7529 GB, free: 368 kB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.127e-05/0.6403, allocations: 11.98 kB / 0.753 GB, free: 356 kB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.781e-06/0.6403, allocations: 4 kB / 0.753 GB, free: 352 kB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.243e-05/0.6404, allocations: 8 kB / 0.753 GB, free: 344 kB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.964e-06/0.6404, allocations: 4 kB / 0.753 GB, free: 340 kB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.706e-06/0.6404, allocations: 0 / 0.753 GB, free: 340 kB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003963/0.6408, allocations: 315.2 kB / 0.7533 GB, free: 8 kB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 8.077e-05/0.6409, allocations: 92.92 kB / 0.7534 GB, free: 15.9 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.226e-05/0.6409, allocations: 15.97 kB / 0.7534 GB, free: 15.88 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001144/0.641, allocations: 4 kB / 0.7534 GB, free: 15.88 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.052e-05/0.6411, allocations: 7.984 kB / 0.7534 GB, free: 15.87 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.774e-05/0.6411, allocations: 12 kB / 0.7534 GB, free: 15.86 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0001022/0.6412, allocations: 127.2 kB / 0.7535 GB, free: 15.73 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6412, allocations: 0 / 0.7535 GB, free: 15.73 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0004233/0.6417, allocations: 35.98 kB / 0.7536 GB, free: 15.7 MB / 0.5417 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) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008662/0.6425, allocations: 0.8608 MB / 0.7544 GB, free: 14.81 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.000382/0.6429, allocations: 329.5 kB / 0.7547 GB, free: 14.44 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 3.647e-06/0.6429, allocations: 0 / 0.7547 GB, free: 14.44 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0002014/0.6432, allocations: 190.7 kB / 0.7549 GB, free: 14.23 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002475/0.6434, allocations: 18.72 kB / 0.7549 GB, free: 14.21 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006779/0.6441, allocations: 246.3 kB / 0.7551 GB, free: 13.94 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003227/0.6444, allocations: 0.7119 MB / 0.7558 GB, free: 13.2 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 7.451e-05/0.6445, allocations: 24.47 kB / 0.7559 GB, free: 13.18 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.29e-05/0.6446, allocations: 35.42 kB / 0.7559 GB, free: 13.14 MB / 0.5417 GB Notification: Performance of SimCode: time 2.5e-07/0.6446, allocations: 0 / 0.7559 GB, free: 13.14 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02323/0.6678, allocations: 2.945 MB / 0.7588 GB, free: 10.23 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001935/0.6681, allocations: 133.5 kB / 0.7589 GB, free: 10.03 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.682/2.35, allocations: 0 / 0.7589 GB, free: 10.03 MB / 0.5417 GB (rm -f IDEAS_IDEAS.Utilities.IO.Files.Examples.CSVWriter.pipe ; mkfifo IDEAS_IDEAS.Utilities.IO.Files.Examples.CSVWriter.pipe ; head -c 1048576 < IDEAS_IDEAS.Utilities.IO.Files.Examples.CSVWriter.pipe >> ../files/IDEAS_IDEAS.Utilities.IO.Files.Examples.CSVWriter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Utilities_IO_Files_Examples_CSVWriter_fmu --startTime=-1.21 --stopTime=10 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Utilities_IO_Files_Examples_CSVWriter.fmu > IDEAS_IDEAS.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1)