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/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-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.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(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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005671/0.005671, allocations: 96.7 kB / 15.73 MB, free: 6.062 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.00114/0.00114, allocations: 197.5 kB / 16.68 MB, free: 5.984 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.362/1.362, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.959/0.959, allocations: 135.1 MB / 425.7 MB, free: 11.91 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00133/0.00133, allocations: 67.88 kB / 0.5851 GB, free: 3.91 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3943/0.3956, allocations: 80.92 MB / 0.6641 GB, free: 7.652 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.CSVWriter): time 0.002349/0.398, allocations: 1.616 MB / 0.6657 GB, free: 6.395 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.000756/0.3987, allocations: 0.6061 MB / 0.6663 GB, free: 5.918 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.638e-05/0.3988, allocations: 5.344 kB / 0.6663 GB, free: 5.914 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.00013/0.399, allocations: 25.81 kB / 0.6663 GB, free: 5.891 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0001792/0.3992, allocations: 38.14 kB / 0.6664 GB, free: 5.863 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003267/0.3995, allocations: 116.6 kB / 0.6665 GB, free: 5.777 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0002059/0.3997, allocations: 196.4 kB / 0.6667 GB, free: 5.668 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001094/0.3998, allocations: 33.23 kB / 0.6667 GB, free: 5.645 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001261/0.4, allocations: 81.38 kB / 0.6668 GB, free: 5.602 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001276/0.4001, allocations: 83.19 kB / 0.6669 GB, free: 5.547 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 3.801e-05/0.4001, allocations: 13.47 kB / 0.6669 GB, free: 5.547 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 6.866e-05/0.4002, allocations: 30.14 kB / 0.6669 GB, free: 5.539 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 8.19e-05/0.4003, allocations: 27.31 kB / 0.6669 GB, free: 5.523 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 9.186e-05/0.4004, allocations: 83.31 kB / 0.667 GB, free: 5.465 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002078/0.4006, allocations: 171.4 kB / 0.6672 GB, free: 5.344 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.066e-06/0.4006, allocations: 1.25 kB / 0.6672 GB, free: 5.344 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.373e-06/0.4006, allocations: 0 / 0.6672 GB, free: 5.344 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 4.839e-06/0.4006, allocations: 0 / 0.6672 GB, free: 5.344 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.0005159/0.4012, allocations: 0.5575 MB / 0.6677 GB, free: 4.773 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.335e-05/0.4012, allocations: 9.438 kB / 0.6677 GB, free: 4.773 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.673e-05/0.4012, allocations: 39.78 kB / 0.6678 GB, free: 4.73 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.406e-05/0.4013, allocations: 27 kB / 0.6678 GB, free: 4.715 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000271/0.4016, allocations: 241.2 kB / 0.668 GB, free: 4.465 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.661e-05/0.4016, allocations: 14.53 kB / 0.668 GB, free: 4.457 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.177e-05/0.4016, allocations: 11.25 kB / 0.6681 GB, free: 4.457 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002405/0.4019, allocations: 112.6 kB / 0.6682 GB, free: 4.383 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.926e-06/0.4019, allocations: 3.984 kB / 0.6682 GB, free: 4.379 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.686e-05/0.4019, allocations: 2.156 kB / 0.6682 GB, free: 4.379 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.438e-06/0.4019, allocations: 1.469 kB / 0.6682 GB, free: 4.379 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001881/0.4021, allocations: 70.95 kB / 0.6682 GB, free: 4.348 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005468/0.4027, allocations: 423.7 kB / 0.6686 GB, free: 3.949 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001771/0.4029, allocations: 87.97 kB / 0.6687 GB, free: 3.895 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001456/0.403, allocations: 83.77 kB / 0.6688 GB, free: 3.848 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.401e-05/0.4031, allocations: 5.188 kB / 0.6688 GB, free: 3.844 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000227/0.4033, allocations: 173.2 kB / 0.669 GB, free: 3.691 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=10): time 1.894e-06/0.4033, allocations: 0 / 0.669 GB, free: 3.691 MB / 0.4981 GB Notification: Performance of matching and sorting (n=10): time 0.0006831/0.404, allocations: 355.1 kB / 0.6693 GB, free: 3.484 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.731e-05/0.4041, allocations: 164.4 kB / 0.6695 GB, free: 3.293 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001306/0.4042, allocations: 178.7 kB / 0.6696 GB, free: 3.148 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.869e-05/0.4042, allocations: 32.67 kB / 0.6697 GB, free: 3.113 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 4.769e-05/0.4043, allocations: 112.3 kB / 0.6698 GB, free: 3.004 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.474e-05/0.4043, allocations: 27.59 kB / 0.6698 GB, free: 2.98 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.751e-05/0.4044, allocations: 39.61 kB / 0.6698 GB, free: 2.953 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 4.922e-05/0.4044, allocations: 326.5 kB / 0.6702 GB, free: 2.629 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001285/0.4046, allocations: 48.22 kB / 0.6702 GB, free: 2.609 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001445/0.4047, allocations: 105.1 kB / 0.6703 GB, free: 2.516 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002785/0.405, allocations: 317.6 kB / 0.6706 GB, free: 2.203 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/0.405, allocations: 1.531 kB / 0.6706 GB, free: 2.203 MB / 0.4981 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0004693/0.4055, allocations: 348.2 kB / 0.6709 GB, free: 1.957 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 4.713e-05/0.4055, allocations: 124.4 kB / 0.6711 GB, free: 1.82 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.663e-06/0.4056, allocations: 2.156 kB / 0.6711 GB, free: 1.82 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.67e-05/0.4056, allocations: 3.406 kB / 0.6711 GB, free: 1.82 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001128/0.4057, allocations: 16.2 kB / 0.6711 GB, free: 1.816 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.945e-06/0.4057, allocations: 6.812 kB / 0.6711 GB, free: 1.812 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001031/0.4058, allocations: 16.91 kB / 0.6711 GB, free: 1.805 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.037e-05/0.4059, allocations: 16.25 kB / 0.6711 GB, free: 1.797 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.0001128/0.406, allocations: 196 kB / 0.6713 GB, free: 1.602 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.495e-05/0.406, allocations: 16.59 kB / 0.6713 GB, free: 1.594 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.269e-05/0.4061, allocations: 17.36 kB / 0.6713 GB, free: 1.582 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.736e-06/0.4061, allocations: 0.9375 kB / 0.6713 GB, free: 1.582 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.4061, allocations: 1.469 kB / 0.6713 GB, free: 1.582 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.815e-06/0.4061, allocations: 0 / 0.6713 GB, free: 1.582 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005991/0.4067, allocations: 0.5856 MB / 0.6719 GB, free: 1.078 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.4067, allocations: 0 / 0.6719 GB, free: 1.078 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.423e-05/0.4068, allocations: 17.27 kB / 0.6719 GB, free: 1.07 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.734e-06/0.4068, allocations: 0 / 0.6719 GB, free: 1.07 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.886e-05/0.4068, allocations: 9.203 kB / 0.6719 GB, free: 1.066 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.525e-06/0.4068, allocations: 9.062 kB / 0.6719 GB, free: 1.059 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-06/0.4068, allocations: 3.938 kB / 0.6719 GB, free: 1.055 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004618/0.4073, allocations: 399.1 kB / 0.6723 GB, free: 0.7695 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 2.504e-05/0.4073, allocations: 89.05 kB / 0.6724 GB, free: 0.668 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.716e-05/0.4074, allocations: 5.094 kB / 0.6724 GB, free: 0.668 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001182/0.4075, allocations: 13.89 kB / 0.6724 GB, free: 0.6602 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.689e-05/0.4075, allocations: 6.625 kB / 0.6724 GB, free: 0.6562 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.749e-05/0.4076, allocations: 10.67 kB / 0.6724 GB, free: 0.6523 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 7.122e-05/0.4076, allocations: 130.1 kB / 0.6726 GB, free: 0.5508 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4076, allocations: 0 / 0.6726 GB, free: 0.5508 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002902/0.4079, allocations: 42.16 kB / 0.6726 GB, free: 0.5391 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.0008234/0.4088, allocations: 0.9606 MB / 0.6735 GB, free: 15.7 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0005091/0.4093, allocations: 359.2 kB / 0.6739 GB, free: 15.39 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.4093, allocations: 0 / 0.6739 GB, free: 15.39 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.000246/0.4095, allocations: 205.9 kB / 0.6741 GB, free: 15.22 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000315/0.4099, allocations: 23.89 kB / 0.6741 GB, free: 15.21 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002435/0.4123, allocations: 2.108 MB / 0.6762 GB, free: 13.41 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002699/0.4126, allocations: 0.7149 MB / 0.6769 GB, free: 12.7 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 7.12e-05/0.4127, allocations: 24.98 kB / 0.6769 GB, free: 12.68 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.364e-05/0.4128, allocations: 34.14 kB / 0.6769 GB, free: 12.66 MB / 0.5137 GB Notification: Performance of SimCode: time 3.5e-07/0.4128, allocations: 0 / 0.6769 GB, free: 12.66 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01891/0.4317, allocations: 3.631 MB / 0.6805 GB, free: 10.75 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.616/8.047, allocations: 7.969 kB / 0.6805 GB, free: 10.75 MB / 0.5137 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 & python3 -m fmpy simulate --output-file IDEAS_dev_IDEAS.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 IDEAS_dev_IDEAS_Utilities_IO_Files_Examples_CSVWriter.fmu > IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1)