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.001478/0.001478, 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.001511/0.001511, allocations: 191.9 kB / 16.25 MB, free: 6.633 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.404/1.404, allocations: 222.9 MB / 239.9 MB, free: 4.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9988/0.9988, allocations: 135.1 MB / 425.2 MB, free: 11.93 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002271/0.002272, allocations: 59.31 kB / 0.505 GB, free: 5.539 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1981/0.2004, allocations: 80.93 MB / 0.584 GB, free: 4.773 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.CSVWriter): time 0.003172/0.2036, allocations: 1.651 MB / 0.5856 GB, free: 3.105 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.000986/0.2047, allocations: 0.6001 MB / 0.5862 GB, free: 2.5 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.971e-05/0.2048, allocations: 4 kB / 0.5862 GB, free: 2.496 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001629/0.205, allocations: 23.84 kB / 0.5862 GB, free: 2.473 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001971/0.2052, allocations: 40.55 kB / 0.5863 GB, free: 2.438 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003769/0.2055, allocations: 99.84 kB / 0.5864 GB, free: 2.34 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002587/0.2058, allocations: 199.6 kB / 0.5865 GB, free: 2.145 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001302/0.2059, allocations: 29.06 kB / 0.5866 GB, free: 2.113 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002492/0.2062, allocations: 83.75 kB / 0.5867 GB, free: 2.031 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002011/0.2064, allocations: 87.66 kB / 0.5867 GB, free: 1.945 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 6.011e-05/0.2065, allocations: 16 kB / 0.5867 GB, free: 1.93 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001105/0.2066, allocations: 27.98 kB / 0.5868 GB, free: 1.902 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001171/0.2067, allocations: 31.91 kB / 0.5868 GB, free: 1.871 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001247/0.2069, allocations: 71.66 kB / 0.5869 GB, free: 1.801 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003295/0.2072, allocations: 167.8 kB / 0.587 GB, free: 1.637 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.018e-05/0.2072, allocations: 0 / 0.587 GB, free: 1.637 MB / 494.1 MB Notification: Performance of FrontEnd: time 4.248e-06/0.2072, allocations: 7.938 kB / 0.587 GB, free: 1.629 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.401e-05/0.2072, allocations: 0 / 0.587 GB, free: 1.629 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.0009361/0.2082, allocations: 0.5523 MB / 0.5876 GB, free: 1.004 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.537e-05/0.2082, allocations: 12.03 kB / 0.5876 GB, free: 0.9922 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.33e-05/0.2083, allocations: 38.75 kB / 0.5876 GB, free: 0.9453 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.939e-05/0.2084, allocations: 16.84 kB / 0.5876 GB, free: 0.9297 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003798/0.2088, allocations: 236.9 kB / 0.5879 GB, free: 0.6602 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.155e-05/0.2088, allocations: 8.375 kB / 0.5879 GB, free: 0.6523 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.707e-05/0.2088, allocations: 12.38 kB / 0.5879 GB, free: 0.6406 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003378/0.2092, allocations: 121.5 kB / 0.588 GB, free: 0.5156 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.231e-05/0.2092, allocations: 0 / 0.588 GB, free: 0.5156 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.976e-05/0.2092, allocations: 0 / 0.588 GB, free: 0.5156 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.265e-06/0.2092, allocations: 8 kB / 0.588 GB, free: 0.5078 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002114/0.2095, allocations: 67.94 kB / 0.5881 GB, free: 452 kB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008286/0.2103, allocations: 408.6 kB / 0.5885 GB, free: 15.99 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002032/0.2105, allocations: 94.52 kB / 0.5886 GB, free: 15.89 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001545/0.2107, allocations: 76.81 kB / 0.5886 GB, free: 15.81 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 3.268e-05/0.2107, allocations: 4 kB / 0.5886 GB, free: 15.81 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003875/0.2111, allocations: 182.7 kB / 0.5888 GB, free: 15.61 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=10): time 1.874e-06/0.2111, allocations: 0 / 0.5888 GB, free: 15.61 MB / 0.4981 GB Notification: Performance of matching and sorting (n=10): time 0.0007458/0.2119, allocations: 356.9 kB / 0.5892 GB, free: 15.24 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.613e-05/0.212, allocations: 166.1 kB / 0.5893 GB, free: 15.04 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001648/0.2121, allocations: 188.1 kB / 0.5895 GB, free: 14.85 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.524e-05/0.2122, allocations: 29.7 kB / 0.5895 GB, free: 14.81 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 6.919e-05/0.2123, allocations: 108.4 kB / 0.5896 GB, free: 14.7 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.007e-05/0.2123, allocations: 27.64 kB / 0.5896 GB, free: 14.67 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.29e-05/0.2124, allocations: 41.7 kB / 0.5897 GB, free: 14.62 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001025/0.2125, allocations: 330.8 kB / 0.59 GB, free: 14.29 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001297/0.2126, allocations: 47.97 kB / 0.59 GB, free: 14.25 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001544/0.2128, allocations: 102.8 kB / 0.5901 GB, free: 14.12 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003174/0.2131, allocations: 316.9 kB / 0.5904 GB, free: 13.75 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.906e-06/0.2131, allocations: 0 / 0.5904 GB, free: 13.75 MB / 0.4981 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005079/0.2136, allocations: 344 kB / 0.5908 GB, free: 13.38 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 7.578e-05/0.2137, allocations: 121.1 kB / 0.5909 GB, free: 13.24 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.053e-06/0.2137, allocations: 3.984 kB / 0.5909 GB, free: 13.24 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.183e-05/0.2137, allocations: 4.25 kB / 0.5909 GB, free: 13.23 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001016/0.2139, allocations: 23.98 kB / 0.5909 GB, free: 13.21 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.953e-06/0.2139, allocations: 4 kB / 0.5909 GB, free: 13.21 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.785e-05/0.214, allocations: 11.91 kB / 0.5909 GB, free: 13.2 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.076e-05/0.214, allocations: 11.98 kB / 0.591 GB, free: 13.18 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.0001694/0.2142, allocations: 201.1 kB / 0.5911 GB, free: 12.96 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.454e-05/0.2142, allocations: 11.91 kB / 0.5912 GB, free: 12.95 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.792e-05/0.2143, allocations: 13.41 kB / 0.5912 GB, free: 12.93 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.899e-06/0.2143, allocations: 3.984 kB / 0.5912 GB, free: 12.93 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.618e-06/0.2143, allocations: 8 kB / 0.5912 GB, free: 12.92 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.087e-06/0.2143, allocations: 4 kB / 0.5912 GB, free: 12.92 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006859/0.215, allocations: 0.5835 MB / 0.5918 GB, free: 12.27 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.215, allocations: 0 / 0.5918 GB, free: 12.27 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.523e-05/0.2151, allocations: 11.98 kB / 0.5918 GB, free: 12.25 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.699e-06/0.2151, allocations: 4 kB / 0.5918 GB, free: 12.25 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.368e-05/0.2151, allocations: 15.97 kB / 0.5918 GB, free: 12.23 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.2151, allocations: 4 kB / 0.5918 GB, free: 12.23 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.557e-06/0.2151, allocations: 3.938 kB / 0.5918 GB, free: 12.23 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005308/0.2157, allocations: 402.8 kB / 0.5922 GB, free: 11.8 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.5e-05/0.2157, allocations: 88.92 kB / 0.5923 GB, free: 11.7 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.583e-05/0.2157, allocations: 4 kB / 0.5923 GB, free: 11.7 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001164/0.2159, allocations: 8 kB / 0.5923 GB, free: 11.69 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.161e-05/0.2159, allocations: 19.92 kB / 0.5923 GB, free: 11.67 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.664e-05/0.2159, allocations: 7.984 kB / 0.5923 GB, free: 11.66 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 9.499e-05/0.216, allocations: 132.3 kB / 0.5924 GB, free: 11.53 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.31e-07/0.216, allocations: 0 / 0.5924 GB, free: 11.53 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002808/0.2163, allocations: 36 kB / 0.5925 GB, free: 11.5 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.0008865/0.2172, allocations: 0.9486 MB / 0.5934 GB, free: 10.51 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0004627/0.2177, allocations: 369.8 kB / 0.5937 GB, free: 10.1 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.2177, allocations: 4.125 kB / 0.5937 GB, free: 10.1 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002268/0.2179, allocations: 206.7 kB / 0.5939 GB, free: 9.871 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003119/0.2183, allocations: 26.42 kB / 0.594 GB, free: 9.848 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002376/0.2207, allocations: 2.129 MB / 0.596 GB, free: 7.574 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002685/0.2209, allocations: 0.708 MB / 0.5967 GB, free: 6.84 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 6.692e-05/0.221, allocations: 16.55 kB / 0.5967 GB, free: 6.824 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.337e-05/0.2211, allocations: 39.42 kB / 0.5968 GB, free: 6.785 MB / 0.4981 GB Notification: Performance of SimCode: time 1.443e-06/0.2211, allocations: 0 / 0.5968 GB, free: 6.785 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01518/0.2363, allocations: 3.495 MB / 0.6002 GB, free: 3.434 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0004224/0.2367, allocations: 193.9 kB / 0.6004 GB, free: 3.18 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.855/2.092, allocations: 0 / 0.6004 GB, free: 3.18 MB / 0.4981 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/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)