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.00122/0.00122, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001456/0.001456, allocations: 189.3 kB / 16.25 MB, free: 6.629 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.358/1.358, allocations: 222.9 MB / 239.9 MB, free: 4.508 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.3 MB, free: 1.891 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001212/0.001212, allocations: 60.09 kB / 0.5014 GB, free: 4.059 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3953/0.3965, allocations: 80.2 MB / 0.5797 GB, free: 4.527 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.CSVWriter): time 0.002937/0.3995, allocations: 1.667 MB / 0.5813 GB, free: 3.371 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008435/0.4004, allocations: 0.6148 MB / 0.5819 GB, free: 2.941 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.418e-05/0.4005, allocations: 2.219 kB / 0.5819 GB, free: 2.941 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001921/0.4007, allocations: 10.72 kB / 0.5819 GB, free: 2.938 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001978/0.4009, allocations: 43.16 kB / 0.582 GB, free: 2.914 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003821/0.4013, allocations: 104.2 kB / 0.5821 GB, free: 2.855 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003106/0.4016, allocations: 192.5 kB / 0.5822 GB, free: 2.773 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001355/0.4017, allocations: 27.92 kB / 0.5823 GB, free: 2.762 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001701/0.4019, allocations: 87.34 kB / 0.5824 GB, free: 2.727 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001483/0.4021, allocations: 86.92 kB / 0.5824 GB, free: 2.688 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 4.538e-05/0.4021, allocations: 13.69 kB / 0.5825 GB, free: 2.688 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.279e-05/0.4022, allocations: 26.62 kB / 0.5825 GB, free: 2.684 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 9.249e-05/0.4023, allocations: 32.72 kB / 0.5825 GB, free: 2.668 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001135/0.4024, allocations: 71.52 kB / 0.5826 GB, free: 2.629 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002811/0.4027, allocations: 167.2 kB / 0.5827 GB, free: 2.562 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.564e-06/0.4027, allocations: 0.9688 kB / 0.5827 GB, free: 2.562 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.4027, allocations: 0 / 0.5827 GB, free: 2.562 MB / 430.1 MB Notification: Performance of Transformations before backend: time 6.623e-06/0.4027, allocations: 0 / 0.5827 GB, free: 2.562 MB / 430.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.0007416/0.4035, allocations: 0.5578 MB / 0.5833 GB, free: 2.016 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.646e-05/0.4035, allocations: 10.03 kB / 0.5833 GB, free: 2.016 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.03e-05/0.4036, allocations: 39.34 kB / 0.5833 GB, free: 1.973 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.157e-05/0.4037, allocations: 20.56 kB / 0.5833 GB, free: 1.965 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003663/0.404, allocations: 239.1 kB / 0.5836 GB, free: 1.73 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.097e-05/0.4041, allocations: 11.75 kB / 0.5836 GB, free: 1.727 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.702e-05/0.4041, allocations: 10.66 kB / 0.5836 GB, free: 1.727 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003783/0.4045, allocations: 115.3 kB / 0.5837 GB, free: 1.672 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.155e-05/0.4045, allocations: 0 / 0.5837 GB, free: 1.672 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.547e-05/0.4046, allocations: 3.234 kB / 0.5837 GB, free: 1.672 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.454e-06/0.4046, allocations: 2.031 kB / 0.5837 GB, free: 1.672 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002406/0.4048, allocations: 75.91 kB / 0.5838 GB, free: 1.648 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006523/0.4055, allocations: 414.7 kB / 0.5842 GB, free: 1.324 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001944/0.4057, allocations: 90.64 kB / 0.5843 GB, free: 1.277 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001588/0.4058, allocations: 79.55 kB / 0.5843 GB, free: 1.246 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.359e-05/0.4059, allocations: 6.156 kB / 0.5843 GB, free: 1.242 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002589/0.4061, allocations: 178 kB / 0.5845 GB, free: 1.109 MB / 430.1 MB Notification: Performance of pre-optimization done (n=10): time 1.553e-06/0.4062, allocations: 1.281 kB / 0.5845 GB, free: 1.109 MB / 430.1 MB Notification: Performance of matching and sorting (n=10): time 0.0007362/0.4069, allocations: 349.8 kB / 0.5849 GB, free: 0.9453 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.809e-05/0.407, allocations: 162.7 kB / 0.585 GB, free: 0.7578 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001703/0.4071, allocations: 176.7 kB / 0.5852 GB, free: 0.6328 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 2.07e-05/0.4072, allocations: 33.67 kB / 0.5852 GB, free: 0.5977 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.396e-05/0.4072, allocations: 107 kB / 0.5853 GB, free: 0.4961 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.644e-05/0.4073, allocations: 29.64 kB / 0.5853 GB, free: 484 kB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.323e-05/0.4074, allocations: 44.03 kB / 0.5854 GB, free: 456 kB / 430.1 MB Notification: Performance of setup shared object (initialization): time 6.464e-05/0.4074, allocations: 326.7 kB / 0.5857 GB, free: 128 kB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001381/0.4076, allocations: 55.14 kB / 0.5857 GB, free: 112 kB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001653/0.4077, allocations: 101.2 kB / 0.5858 GB, free: 32 kB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003953/0.4081, allocations: 309.1 kB / 0.5861 GB, free: 15.74 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.487e-06/0.4082, allocations: 4.656 kB / 0.5861 GB, free: 15.73 MB / 446.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005998/0.4088, allocations: 351.6 kB / 0.5865 GB, free: 15.51 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.842e-05/0.4089, allocations: 116.2 kB / 0.5866 GB, free: 15.39 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.064e-06/0.4089, allocations: 1.969 kB / 0.5866 GB, free: 15.39 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.609e-05/0.4089, allocations: 3.781 kB / 0.5866 GB, free: 15.39 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000126/0.409, allocations: 20.19 kB / 0.5866 GB, free: 15.38 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.186e-05/0.4091, allocations: 11.2 kB / 0.5866 GB, free: 15.38 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001049/0.4092, allocations: 17.78 kB / 0.5866 GB, free: 15.37 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.5e-05/0.4092, allocations: 9.031 kB / 0.5866 GB, free: 15.37 MB / 446.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.0002012/0.4094, allocations: 199.7 kB / 0.5868 GB, free: 15.18 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.512e-05/0.4094, allocations: 12.84 kB / 0.5869 GB, free: 15.17 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.368e-05/0.4095, allocations: 15.38 kB / 0.5869 GB, free: 15.16 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.539e-06/0.4095, allocations: 2.109 kB / 0.5869 GB, free: 15.16 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.17e-06/0.4095, allocations: 0 / 0.5869 GB, free: 15.16 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.456e-06/0.4095, allocations: 5.828 kB / 0.5869 GB, free: 15.16 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008796/0.4104, allocations: 0.587 MB / 0.5874 GB, free: 14.71 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.108e-06/0.4104, allocations: 1.844 kB / 0.5874 GB, free: 14.71 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.05e-05/0.4105, allocations: 14.45 kB / 0.5875 GB, free: 14.71 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.336e-06/0.4105, allocations: 0.8438 kB / 0.5875 GB, free: 14.71 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.94e-05/0.4105, allocations: 10.81 kB / 0.5875 GB, free: 14.71 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.035e-06/0.4106, allocations: 2.719 kB / 0.5875 GB, free: 14.71 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.4106, allocations: 7.938 kB / 0.5875 GB, free: 14.7 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006187/0.4112, allocations: 398.5 kB / 0.5879 GB, free: 14.45 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.048e-05/0.4113, allocations: 85.92 kB / 0.5879 GB, free: 14.35 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.772e-05/0.4113, allocations: 8.703 kB / 0.588 GB, free: 14.34 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001179/0.4114, allocations: 7.328 kB / 0.588 GB, free: 14.34 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.703e-05/0.4115, allocations: 17.12 kB / 0.588 GB, free: 14.33 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.166e-05/0.4115, allocations: 13.17 kB / 0.588 GB, free: 14.33 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0001613/0.4117, allocations: 134.1 kB / 0.5881 GB, free: 14.23 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4117, allocations: 0 / 0.5881 GB, free: 14.23 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0003103/0.412, allocations: 35.83 kB / 0.5882 GB, free: 14.23 MB / 446.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.001073/0.4131, allocations: 0.9524 MB / 0.5891 GB, free: 13.43 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.000544/0.4136, allocations: 359.5 kB / 0.5894 GB, free: 13.14 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.4136, allocations: 0.5 kB / 0.5894 GB, free: 13.14 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002618/0.4139, allocations: 216.5 kB / 0.5896 GB, free: 12.98 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003146/0.4142, allocations: 28.97 kB / 0.5897 GB, free: 12.97 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002838/0.4171, allocations: 2.113 MB / 0.5917 GB, free: 11.29 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003289/0.4174, allocations: 0.7122 MB / 0.5924 GB, free: 10.58 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 7.549e-05/0.4175, allocations: 24.3 kB / 0.5924 GB, free: 10.58 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.153e-05/0.4176, allocations: 38.5 kB / 0.5925 GB, free: 10.55 MB / 446.1 MB Notification: Performance of SimCode: time 3.01e-07/0.4176, allocations: 3.938 kB / 0.5925 GB, free: 10.55 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3312/0.7488, allocations: 3.495 MB / 0.5959 GB, free: 9.801 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001761/0.7491, allocations: 187.7 kB / 0.5961 GB, free: 9.543 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.842/2.591, allocations: 0 / 0.5961 GB, free: 9.543 MB / 446.1 MB (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)