Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_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_dev_IDEAS_Utilities_IO_Files_Examples_CSVWriter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="IDEAS_dev_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.001569/0.001569, allocations: 173.9 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.8315/0.8315, allocations: 133.6 MB / 141.6 MB, free: 2.879 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.411/1.411, allocations: 221.5 MB / 395.5 MB, free: 10.78 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.0009613/0.0009612, allocations: 90.77 kB / 478.2 MB, free: 1.328 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 1.852e-05/1.865e-05, allocations: 4 kB / 0.5536 GB, free: 8.957 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4298/0.4299, allocations: 82.3 MB / 0.6339 GB, free: 40.74 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1532/0.5832, allocations: 112.7 MB / 0.744 GB, free: 9.973 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002682/0.5835, allocations: 75.95 kB / 0.744 GB, free: 9.898 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.01379/0.5973, allocations: 5.031 MB / 0.749 GB, free: 4.84 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.543e-06/0.5973, allocations: 0 / 0.749 GB, free: 4.84 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 1.611e-05/0.5974, allocations: 4 kB / 0.749 GB, free: 4.836 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.0006115/0.598, allocations: 0.5127 MB / 0.7495 GB, free: 4.254 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.337e-05/0.598, allocations: 16.03 kB / 0.7495 GB, free: 4.238 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.857e-05/0.5981, allocations: 19.81 kB / 0.7495 GB, free: 4.219 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003109/0.5984, allocations: 230.7 kB / 0.7497 GB, free: 3.953 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.791e-05/0.5985, allocations: 8 kB / 0.7497 GB, free: 3.945 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.233e-05/0.5985, allocations: 11.94 kB / 0.7497 GB, free: 3.934 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001412/0.5987, allocations: 47.98 kB / 0.7498 GB, free: 3.887 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001633/0.5988, allocations: 89.64 kB / 0.7499 GB, free: 3.793 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.195e-05/0.5989, allocations: 7.984 kB / 0.7499 GB, free: 3.785 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.8e-05/0.5989, allocations: 0 / 0.7499 GB, free: 3.785 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.199e-06/0.5989, allocations: 0 / 0.7499 GB, free: 3.785 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006661/0.5996, allocations: 401.1 kB / 0.7503 GB, free: 3.355 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000142/0.5997, allocations: 70.56 kB / 0.7503 GB, free: 3.277 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.939e-05/0.5998, allocations: 61 kB / 0.7504 GB, free: 3.215 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 2.781e-05/0.5999, allocations: 7.969 kB / 0.7504 GB, free: 3.207 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001969/0.6001, allocations: 166.8 kB / 0.7506 GB, free: 3.02 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=10): time 1.954e-06/0.6001, allocations: 0 / 0.7506 GB, free: 3.02 MB / 0.5261 GB Notification: Performance of matching and sorting (n=10): time 0.0004319/0.6005, allocations: 201.5 kB / 0.7507 GB, free: 2.816 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.238e-05/0.6006, allocations: 170.1 kB / 0.7509 GB, free: 2.613 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001539/0.6008, allocations: 157.7 kB / 0.7511 GB, free: 2.449 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 2.437e-05/0.6008, allocations: 33.7 kB / 0.7511 GB, free: 2.41 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 7.367e-05/0.6009, allocations: 108.3 kB / 0.7512 GB, free: 2.297 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 2.787e-05/0.6009, allocations: 27.7 kB / 0.7512 GB, free: 2.27 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.191e-05/0.601, allocations: 0 / 0.7512 GB, free: 2.27 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001238/0.6011, allocations: 330.8 kB / 0.7515 GB, free: 1.938 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.67e-05/0.6012, allocations: 35.92 kB / 0.7516 GB, free: 1.902 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001094/0.6013, allocations: 94.86 kB / 0.7517 GB, free: 1.785 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.191e-05/0.6014, allocations: 43.97 kB / 0.7517 GB, free: 1.742 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.6014, allocations: 0 / 0.7517 GB, free: 1.742 MB / 0.5261 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003548/0.6018, allocations: 205.3 kB / 0.7519 GB, free: 1.535 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 8.446e-05/0.6018, allocations: 118.7 kB / 0.752 GB, free: 1.395 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.907e-06/0.6019, allocations: 4 kB / 0.752 GB, free: 1.391 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.632e-05/0.6019, allocations: 4 kB / 0.752 GB, free: 1.387 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001208/0.602, allocations: 19.92 kB / 0.752 GB, free: 1.367 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.815e-06/0.602, allocations: 4 kB / 0.752 GB, free: 1.363 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001111/0.6021, allocations: 16.16 kB / 0.7521 GB, free: 1.348 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.821e-05/0.6022, allocations: 15.98 kB / 0.7521 GB, free: 1.332 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.000153/0.6023, allocations: 189.8 kB / 0.7523 GB, free: 1.129 MB / 0.5261 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0003396/0.6027, allocations: 197.5 kB / 0.7524 GB, free: 0.9297 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.099e-05/0.6027, allocations: 19.81 kB / 0.7525 GB, free: 0.9102 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.52e-05/0.6028, allocations: 13.84 kB / 0.7525 GB, free: 0.9023 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.155e-06/0.6028, allocations: 0 / 0.7525 GB, free: 0.9023 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.99e-06/0.6028, allocations: 0 / 0.7525 GB, free: 0.9023 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.936e-06/0.6028, allocations: 11.92 kB / 0.7525 GB, free: 0.8906 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005235/0.6033, allocations: 475 kB / 0.7529 GB, free: 392 kB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.844e-06/0.6033, allocations: 0 / 0.7529 GB, free: 392 kB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.26e-05/0.6034, allocations: 19.92 kB / 0.753 GB, free: 372 kB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.595e-06/0.6034, allocations: 0 / 0.753 GB, free: 372 kB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.445e-05/0.6035, allocations: 11.98 kB / 0.753 GB, free: 360 kB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.877e-06/0.6035, allocations: 4 kB / 0.753 GB, free: 356 kB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.364e-06/0.6035, allocations: 3.938 kB / 0.753 GB, free: 352 kB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003675/0.6039, allocations: 303.2 kB / 0.7533 GB, free: 32 kB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 7.355e-05/0.6039, allocations: 96.91 kB / 0.7534 GB, free: 15.92 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.153e-05/0.604, allocations: 4 kB / 0.7534 GB, free: 15.91 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001167/0.6041, allocations: 12 kB / 0.7534 GB, free: 15.9 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.954e-05/0.6042, allocations: 11.92 kB / 0.7534 GB, free: 15.89 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.91e-05/0.6042, allocations: 7.984 kB / 0.7534 GB, free: 15.88 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 9.59e-05/0.6043, allocations: 123.2 kB / 0.7535 GB, free: 15.76 MB / 0.5417 GB Notification: Performance of sort global known variables: time 2.6e-07/0.6043, allocations: 8 kB / 0.7535 GB, free: 15.75 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0002838/0.6046, allocations: 28 kB / 0.7535 GB, free: 15.73 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.0008081/0.6054, allocations: 0.8694 MB / 0.7544 GB, free: 14.83 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0003475/0.6058, allocations: 329.5 kB / 0.7547 GB, free: 14.46 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 3.546e-06/0.6058, allocations: 4 kB / 0.7547 GB, free: 14.46 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0001853/0.606, allocations: 190.7 kB / 0.7549 GB, free: 14.25 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002261/0.6062, allocations: 13.28 kB / 0.7549 GB, free: 14.23 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006215/0.6068, allocations: 238.9 kB / 0.7551 GB, free: 13.96 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002697/0.6071, allocations: 0.7119 MB / 0.7558 GB, free: 13.23 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 6.818e-05/0.6072, allocations: 20.53 kB / 0.7558 GB, free: 13.21 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001124/0.6073, allocations: 39.42 kB / 0.7559 GB, free: 13.17 MB / 0.5417 GB Notification: Performance of SimCode: time 4.11e-07/0.6073, allocations: 0 / 0.7559 GB, free: 13.17 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02329/0.6306, allocations: 2.956 MB / 0.7588 GB, free: 10.24 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002515/0.631, allocations: 126.2 kB / 0.7589 GB, free: 10.05 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.637/2.268, allocations: 4 kB / 0.7589 GB, free: 10.05 MB / 0.5417 GB (rm -f IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.CSVWriter.pipe ; mkfifo IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.CSVWriter.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.CSVWriter.pipe >> ../files/IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.CSVWriter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Utilities_IO_Files_Examples_CSVWriter_fmu --startTime=-1.21 --stopTime=10 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Utilities_IO_Files_Examples_CSVWriter.fmu > IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1)