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.001428/0.001428, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001693/0.001693, allocations: 192.9 kB / 16.14 MB, free: 6.707 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.379/1.379, allocations: 222.9 MB / 239.8 MB, free: 4.602 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7598/0.7598, allocations: 132.2 MB / 422.1 MB, free: 2.035 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001215/0.001215, allocations: 66.53 kB / 0.5012 GB, free: 9.086 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2066/0.2078, allocations: 80.2 MB / 0.5795 GB, free: 9.105 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.CSVWriter): time 0.003666/0.2116, allocations: 1.651 MB / 0.5811 GB, free: 7.441 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001109/0.2127, allocations: 0.6312 MB / 0.5817 GB, free: 6.805 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.416e-05/0.2128, allocations: 0 / 0.5817 GB, free: 6.805 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001626/0.213, allocations: 23.84 kB / 0.5818 GB, free: 6.781 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001971/0.2132, allocations: 39.83 kB / 0.5818 GB, free: 6.742 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003926/0.2136, allocations: 103.9 kB / 0.5819 GB, free: 6.641 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001897/0.2138, allocations: 159.6 kB / 0.582 GB, free: 6.484 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001346/0.2139, allocations: 32.86 kB / 0.5821 GB, free: 6.449 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001488/0.2141, allocations: 79.69 kB / 0.5822 GB, free: 6.371 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001289/0.2142, allocations: 79.72 kB / 0.5822 GB, free: 6.293 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.384e-05/0.2143, allocations: 8 kB / 0.5822 GB, free: 6.285 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.24e-05/0.2143, allocations: 23.98 kB / 0.5823 GB, free: 6.262 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 9.261e-05/0.2144, allocations: 23.91 kB / 0.5823 GB, free: 6.238 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001046/0.2145, allocations: 71.66 kB / 0.5824 GB, free: 6.168 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002421/0.2148, allocations: 163.8 kB / 0.5825 GB, free: 6.008 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.062e-06/0.2148, allocations: 3.938 kB / 0.5825 GB, free: 6.004 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.2148, allocations: 0 / 0.5825 GB, free: 6.004 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.69e-06/0.2148, allocations: 0 / 0.5825 GB, free: 6.004 MB / 494.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.0007325/0.2156, allocations: 0.5536 MB / 0.5831 GB, free: 5.379 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.286e-05/0.2156, allocations: 12.03 kB / 0.5831 GB, free: 5.367 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.226e-05/0.2157, allocations: 34.75 kB / 0.5831 GB, free: 5.324 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.087e-05/0.2157, allocations: 12.84 kB / 0.5831 GB, free: 5.312 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003269/0.2161, allocations: 244.8 kB / 0.5833 GB, free: 5.035 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.215e-05/0.2161, allocations: 8.375 kB / 0.5833 GB, free: 5.027 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3e-05/0.2161, allocations: 16.38 kB / 0.5834 GB, free: 5.012 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002683/0.2164, allocations: 113.5 kB / 0.5835 GB, free: 4.895 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.905e-06/0.2164, allocations: 0 / 0.5835 GB, free: 4.895 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.815e-05/0.2165, allocations: 4 kB / 0.5835 GB, free: 4.891 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.343e-05/0.2165, allocations: 7.938 kB / 0.5835 GB, free: 4.883 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001927/0.2167, allocations: 67.88 kB / 0.5835 GB, free: 4.816 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006557/0.2173, allocations: 420.6 kB / 0.584 GB, free: 4.355 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000182/0.2175, allocations: 90.47 kB / 0.584 GB, free: 4.258 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001581/0.2177, allocations: 72.81 kB / 0.5841 GB, free: 4.184 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.585e-05/0.2177, allocations: 11.94 kB / 0.5841 GB, free: 4.172 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000265/0.218, allocations: 170.7 kB / 0.5843 GB, free: 3.98 MB / 494.1 MB Notification: Performance of pre-optimization done (n=10): time 1.413e-06/0.218, allocations: 4 kB / 0.5843 GB, free: 3.977 MB / 494.1 MB Notification: Performance of matching and sorting (n=10): time 0.0007394/0.2188, allocations: 348.9 kB / 0.5846 GB, free: 3.617 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001076/0.2189, allocations: 166.2 kB / 0.5848 GB, free: 3.418 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001754/0.2191, allocations: 182.5 kB / 0.585 GB, free: 3.23 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 3.016e-05/0.2191, allocations: 33.7 kB / 0.585 GB, free: 3.191 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.33e-05/0.2192, allocations: 108.4 kB / 0.5851 GB, free: 3.078 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.807e-05/0.2192, allocations: 23.66 kB / 0.5851 GB, free: 3.055 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.141e-05/0.2193, allocations: 37.7 kB / 0.5851 GB, free: 3.012 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001242/0.2194, allocations: 330.8 kB / 0.5855 GB, free: 2.68 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001366/0.2196, allocations: 55.89 kB / 0.5855 GB, free: 2.625 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001884/0.2198, allocations: 105.7 kB / 0.5856 GB, free: 2.5 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003405/0.2201, allocations: 312.9 kB / 0.5859 GB, free: 2.133 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.474e-06/0.2201, allocations: 0 / 0.5859 GB, free: 2.133 MB / 494.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005405/0.2207, allocations: 348.1 kB / 0.5862 GB, free: 1.762 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.808e-05/0.2208, allocations: 118.8 kB / 0.5864 GB, free: 1.621 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.162e-06/0.2208, allocations: 0 / 0.5864 GB, free: 1.621 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.556e-05/0.2208, allocations: 4 kB / 0.5864 GB, free: 1.617 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001247/0.2209, allocations: 19.92 kB / 0.5864 GB, free: 1.598 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.546e-06/0.221, allocations: 4 kB / 0.5864 GB, free: 1.594 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.947e-05/0.2211, allocations: 16.16 kB / 0.5864 GB, free: 1.578 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.198e-05/0.2211, allocations: 12 kB / 0.5864 GB, free: 1.566 MB / 494.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.0001897/0.2213, allocations: 206.3 kB / 0.5866 GB, free: 1.344 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.423e-05/0.2213, allocations: 15.91 kB / 0.5866 GB, free: 1.328 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.898e-05/0.2214, allocations: 13.41 kB / 0.5866 GB, free: 1.316 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.735e-06/0.2214, allocations: 0 / 0.5866 GB, free: 1.316 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.372e-06/0.2214, allocations: 4 kB / 0.5866 GB, free: 1.312 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.276e-06/0.2214, allocations: 0 / 0.5866 GB, free: 1.312 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007489/0.2222, allocations: 0.6032 MB / 0.5872 GB, free: 0.6406 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.436e-06/0.2222, allocations: 4 kB / 0.5872 GB, free: 0.6367 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.624e-05/0.2222, allocations: 15.98 kB / 0.5872 GB, free: 0.6211 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.174e-06/0.2223, allocations: 0 / 0.5872 GB, free: 0.6211 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.027e-05/0.2223, allocations: 4 kB / 0.5873 GB, free: 0.6172 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.2223, allocations: 0 / 0.5873 GB, free: 0.6172 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.2223, allocations: 3.938 kB / 0.5873 GB, free: 0.6133 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005553/0.2229, allocations: 402.6 kB / 0.5876 GB, free: 196 kB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.935e-05/0.2229, allocations: 89 kB / 0.5877 GB, free: 88 kB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.642e-05/0.223, allocations: 8 kB / 0.5877 GB, free: 80 kB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001094/0.2231, allocations: 8 kB / 0.5877 GB, free: 72 kB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.102e-05/0.2231, allocations: 11.92 kB / 0.5878 GB, free: 60 kB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.629e-05/0.2232, allocations: 8 kB / 0.5878 GB, free: 52 kB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001273/0.2233, allocations: 129.9 kB / 0.5879 GB, free: 15.93 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2233, allocations: 0 / 0.5879 GB, free: 15.93 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002908/0.2236, allocations: 44 kB / 0.5879 GB, free: 15.88 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.001017/0.2246, allocations: 0.9604 MB / 0.5889 GB, free: 14.89 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0004901/0.2251, allocations: 361.4 kB / 0.5892 GB, free: 14.48 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.2251, allocations: 0 / 0.5892 GB, free: 14.48 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002336/0.2254, allocations: 198.8 kB / 0.5894 GB, free: 14.27 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003288/0.2257, allocations: 31.66 kB / 0.5894 GB, free: 14.24 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00256/0.2283, allocations: 2.123 MB / 0.5915 GB, free: 11.96 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002979/0.2286, allocations: 0.7083 MB / 0.5922 GB, free: 11.23 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 7.152e-05/0.2287, allocations: 20.53 kB / 0.5922 GB, free: 11.21 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.946e-05/0.2287, allocations: 35.42 kB / 0.5922 GB, free: 11.18 MB / 0.4981 GB Notification: Performance of SimCode: time 4.91e-07/0.2288, allocations: 0 / 0.5922 GB, free: 11.18 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01485/0.2436, allocations: 3.406 MB / 0.5956 GB, free: 7.906 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002727/0.2439, allocations: 187.4 kB / 0.5957 GB, free: 7.652 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.874/2.118, allocations: 4 kB / 0.5958 GB, free: 7.648 MB / 0.4981 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)