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/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/IDEAS 3.0.0/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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(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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005667/0.005667, allocations: 101.8 kB / 15.73 MB, free: 6.035 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.001446/0.001446, allocations: 196.8 kB / 16.67 MB, free: 5.969 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.277/1.277, allocations: 222.9 MB / 240.4 MB, free: 4.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7511/0.7511, allocations: 132.2 MB / 422.7 MB, free: 1.719 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001513/0.001513, allocations: 59.91 kB / 0.5809 GB, free: 8.055 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4192/0.4208, allocations: 80.21 MB / 0.6592 GB, free: 9.922 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.CSVWriter): time 0.003111/0.4239, allocations: 1.594 MB / 0.6607 GB, free: 8.816 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.001015/0.425, allocations: 0.6124 MB / 0.6613 GB, free: 8.391 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001064/0.4251, allocations: 1.875 kB / 0.6613 GB, free: 8.391 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001589/0.4253, allocations: 21.8 kB / 0.6614 GB, free: 8.375 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0002879/0.4256, allocations: 44.34 kB / 0.6614 GB, free: 8.348 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.000509/0.4261, allocations: 118.4 kB / 0.6615 GB, free: 8.281 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0002838/0.4264, allocations: 193.7 kB / 0.6617 GB, free: 8.199 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001254/0.4265, allocations: 32.84 kB / 0.6617 GB, free: 8.18 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001776/0.4267, allocations: 82.62 kB / 0.6618 GB, free: 8.148 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001604/0.4269, allocations: 85.08 kB / 0.6619 GB, free: 8.113 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 6.301e-05/0.4269, allocations: 11.94 kB / 0.6619 GB, free: 8.113 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 9.601e-05/0.427, allocations: 38.83 kB / 0.6619 GB, free: 8.098 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 9.071e-05/0.4271, allocations: 24.08 kB / 0.662 GB, free: 8.09 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001016/0.4272, allocations: 76.08 kB / 0.662 GB, free: 8.047 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002975/0.4276, allocations: 167.5 kB / 0.6622 GB, free: 7.98 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 7.555e-06/0.4276, allocations: 5.953 kB / 0.6622 GB, free: 7.977 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.933e-06/0.4276, allocations: 0 / 0.6622 GB, free: 7.977 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 8.546e-06/0.4276, allocations: 0 / 0.6622 GB, free: 7.977 MB / 0.4981 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.0007152/0.4283, allocations: 0.5571 MB / 0.6627 GB, free: 7.43 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.028e-05/0.4284, allocations: 14.47 kB / 0.6628 GB, free: 7.426 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.707e-05/0.4284, allocations: 39.62 kB / 0.6628 GB, free: 7.383 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.727e-05/0.4285, allocations: 19.72 kB / 0.6628 GB, free: 7.375 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003125/0.4288, allocations: 234.5 kB / 0.663 GB, free: 7.148 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.875e-05/0.4288, allocations: 11.34 kB / 0.663 GB, free: 7.145 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.204e-05/0.4289, allocations: 11 kB / 0.6631 GB, free: 7.145 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003248/0.4292, allocations: 119.1 kB / 0.6632 GB, free: 7.086 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.15e-05/0.4292, allocations: 0 / 0.6632 GB, free: 7.086 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.263e-05/0.4292, allocations: 7.719 kB / 0.6632 GB, free: 7.082 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.811e-06/0.4292, allocations: 0 / 0.6632 GB, free: 7.082 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002114/0.4295, allocations: 69.36 kB / 0.6632 GB, free: 7.055 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000607/0.4301, allocations: 421.4 kB / 0.6636 GB, free: 6.66 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001812/0.4303, allocations: 90.41 kB / 0.6637 GB, free: 6.602 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001411/0.4304, allocations: 75.88 kB / 0.6638 GB, free: 6.562 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.972e-05/0.4305, allocations: 1.375 kB / 0.6638 GB, free: 6.562 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000231/0.4307, allocations: 177.2 kB / 0.664 GB, free: 6.406 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=10): time 1.533e-06/0.4307, allocations: 1.281 kB / 0.664 GB, free: 6.406 MB / 0.4981 GB Notification: Performance of matching and sorting (n=10): time 0.0007919/0.4315, allocations: 358.4 kB / 0.6643 GB, free: 6.195 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.711e-05/0.4316, allocations: 167.2 kB / 0.6645 GB, free: 6 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002071/0.4318, allocations: 174.9 kB / 0.6646 GB, free: 5.859 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.498e-05/0.4318, allocations: 33.48 kB / 0.6647 GB, free: 5.824 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 6.162e-05/0.4319, allocations: 107.7 kB / 0.6648 GB, free: 5.719 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.738e-05/0.4319, allocations: 28.08 kB / 0.6648 GB, free: 5.695 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.55e-05/0.432, allocations: 43.92 kB / 0.6648 GB, free: 5.664 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 5.501e-05/0.4321, allocations: 333.6 kB / 0.6652 GB, free: 5.332 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001395/0.4322, allocations: 53.23 kB / 0.6652 GB, free: 5.309 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001547/0.4324, allocations: 102.7 kB / 0.6653 GB, free: 5.219 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002855/0.4327, allocations: 310.1 kB / 0.6656 GB, free: 4.914 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.108e-06/0.4327, allocations: 4 kB / 0.6656 GB, free: 4.91 MB / 0.4981 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005323/0.4332, allocations: 348.8 kB / 0.6659 GB, free: 4.664 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 6.156e-05/0.4333, allocations: 120.3 kB / 0.6661 GB, free: 4.531 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.097e-06/0.4333, allocations: 2.406 kB / 0.6661 GB, free: 4.531 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.009e-05/0.4333, allocations: 2.438 kB / 0.6661 GB, free: 4.531 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001283/0.4335, allocations: 22.36 kB / 0.6661 GB, free: 4.523 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.176e-06/0.4335, allocations: 1.406 kB / 0.6661 GB, free: 4.523 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001197/0.4336, allocations: 17.23 kB / 0.6661 GB, free: 4.516 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.552e-05/0.4336, allocations: 11.81 kB / 0.6661 GB, free: 4.512 MB / 0.4981 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 (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.0001448/0.4338, allocations: 197.5 kB / 0.6663 GB, free: 4.316 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.985e-05/0.4338, allocations: 16.91 kB / 0.6663 GB, free: 4.309 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.124e-05/0.4339, allocations: 21.3 kB / 0.6663 GB, free: 4.285 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.556e-06/0.4339, allocations: 1.156 kB / 0.6663 GB, free: 4.285 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.313e-06/0.4339, allocations: 5.484 kB / 0.6663 GB, free: 4.281 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.177e-06/0.4339, allocations: 4 kB / 0.6664 GB, free: 4.277 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006809/0.4346, allocations: 0.5817 MB / 0.6669 GB, free: 3.777 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.296e-06/0.4346, allocations: 0 / 0.6669 GB, free: 3.777 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.881e-05/0.4347, allocations: 12.59 kB / 0.6669 GB, free: 3.773 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.958e-06/0.4347, allocations: 1.062 kB / 0.6669 GB, free: 3.773 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.142e-05/0.4347, allocations: 8.734 kB / 0.6669 GB, free: 3.77 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.454e-06/0.4347, allocations: 1.094 kB / 0.6669 GB, free: 3.77 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.4347, allocations: 3.938 kB / 0.6669 GB, free: 3.766 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005249/0.4353, allocations: 408.3 kB / 0.6673 GB, free: 3.473 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.093e-05/0.4353, allocations: 87.45 kB / 0.6674 GB, free: 3.371 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.08e-05/0.4354, allocations: 4.188 kB / 0.6674 GB, free: 3.371 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000114/0.4355, allocations: 14.61 kB / 0.6674 GB, free: 3.363 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.738e-05/0.4355, allocations: 11.12 kB / 0.6674 GB, free: 3.355 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.649e-05/0.4355, allocations: 13.05 kB / 0.6675 GB, free: 3.348 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 8.438e-05/0.4356, allocations: 135.7 kB / 0.6676 GB, free: 3.242 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4356, allocations: 0 / 0.6676 GB, free: 3.242 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.000314/0.436, allocations: 42.48 kB / 0.6676 GB, free: 3.23 MB / 0.4981 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) * 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.0007924/0.4368, allocations: 0.9467 MB / 0.6686 GB, free: 2.414 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0004026/0.4372, allocations: 362.5 kB / 0.6689 GB, free: 2.098 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.4372, allocations: 1.688 kB / 0.6689 GB, free: 2.098 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002283/0.4374, allocations: 212.4 kB / 0.6691 GB, free: 1.918 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003276/0.4378, allocations: 23.81 kB / 0.6691 GB, free: 1.906 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002419/0.4402, allocations: 2.107 MB / 0.6712 GB, free: 124 kB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002976/0.4405, allocations: 0.7082 MB / 0.6719 GB, free: 15.41 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 7.741e-05/0.4406, allocations: 20.84 kB / 0.6719 GB, free: 15.4 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.013e-05/0.4407, allocations: 32.83 kB / 0.6719 GB, free: 15.38 MB / 0.5137 GB Notification: Performance of SimCode: time 3.61e-07/0.4407, allocations: 0 / 0.6719 GB, free: 15.38 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02055/0.4612, allocations: 3.69 MB / 0.6755 GB, free: 13.45 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.658/8.119, allocations: 7.938 kB / 0.6755 GB, free: 13.45 MB / 0.5137 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/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)