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.001034/0.001035, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001107/0.001107, allocations: 192.1 kB / 16.13 MB, free: 6.664 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.325/1.325, allocations: 222.9 MB / 239.8 MB, free: 4.578 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.928/0.928, allocations: 135.1 MB / 425.1 MB, free: 11.87 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001251/0.001251, allocations: 61.3 kB / 0.5048 GB, free: 5.648 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2095/0.2107, allocations: 80.92 MB / 0.5838 GB, free: 4.887 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.CSVWriter): time 0.005654/0.2164, allocations: 1.655 MB / 0.5854 GB, free: 3.215 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0018/0.2183, allocations: 0.6274 MB / 0.586 GB, free: 2.582 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001107/0.2184, allocations: 0 / 0.586 GB, free: 2.582 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000207/0.2186, allocations: 19.92 kB / 0.5861 GB, free: 2.562 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002682/0.2189, allocations: 35.83 kB / 0.5861 GB, free: 2.527 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006404/0.2196, allocations: 107.8 kB / 0.5862 GB, free: 2.422 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003074/0.2199, allocations: 159.6 kB / 0.5864 GB, free: 2.266 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001759/0.2201, allocations: 25.11 kB / 0.5864 GB, free: 2.238 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002794/0.2204, allocations: 75.75 kB / 0.5864 GB, free: 2.164 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002255/0.2206, allocations: 83.66 kB / 0.5865 GB, free: 2.082 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 6.022e-05/0.2207, allocations: 8 kB / 0.5865 GB, free: 2.074 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001032/0.2208, allocations: 20 kB / 0.5866 GB, free: 2.055 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000114/0.221, allocations: 19.92 kB / 0.5866 GB, free: 2.035 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001731/0.2211, allocations: 71.7 kB / 0.5866 GB, free: 1.965 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000367/0.2215, allocations: 159.7 kB / 0.5868 GB, free: 1.809 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.422e-06/0.2215, allocations: 0 / 0.5868 GB, free: 1.809 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.2216, allocations: 4 kB / 0.5868 GB, free: 1.805 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.259e-05/0.2216, allocations: 0 / 0.5868 GB, free: 1.805 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.0009978/0.2226, allocations: 0.5601 MB / 0.5873 GB, free: 1.172 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.814e-05/0.2226, allocations: 12.03 kB / 0.5874 GB, free: 1.16 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.621e-05/0.2227, allocations: 38.73 kB / 0.5874 GB, free: 1.113 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.331e-05/0.2228, allocations: 12.84 kB / 0.5874 GB, free: 1.102 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003695/0.2232, allocations: 241.6 kB / 0.5876 GB, free: 0.8281 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.35e-05/0.2232, allocations: 4.375 kB / 0.5876 GB, free: 0.8242 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.234e-05/0.2232, allocations: 20.38 kB / 0.5877 GB, free: 0.8047 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000286/0.2235, allocations: 117.5 kB / 0.5878 GB, free: 0.6836 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.008e-05/0.2235, allocations: 0 / 0.5878 GB, free: 0.6836 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.881e-05/0.2236, allocations: 4 kB / 0.5878 GB, free: 0.6797 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.609e-06/0.2236, allocations: 4 kB / 0.5878 GB, free: 0.6758 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002013/0.2238, allocations: 67.83 kB / 0.5878 GB, free: 0.6094 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006609/0.2245, allocations: 420.6 kB / 0.5882 GB, free: 152 kB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001861/0.2247, allocations: 90.56 kB / 0.5883 GB, free: 52 kB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001765/0.2248, allocations: 72.81 kB / 0.5884 GB, free: 15.98 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.905e-05/0.2249, allocations: 4 kB / 0.5884 GB, free: 15.97 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002822/0.2252, allocations: 182.8 kB / 0.5886 GB, free: 15.77 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=10): time 2.895e-06/0.2252, allocations: 7.984 kB / 0.5886 GB, free: 15.76 MB / 0.4981 GB Notification: Performance of matching and sorting (n=10): time 0.0007617/0.2259, allocations: 348.7 kB / 0.5889 GB, free: 15.4 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001136/0.2261, allocations: 166.2 kB / 0.5891 GB, free: 15.2 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001981/0.2263, allocations: 184.1 kB / 0.5893 GB, free: 15.02 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.987e-05/0.2263, allocations: 37.7 kB / 0.5893 GB, free: 14.97 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 8.63e-05/0.2264, allocations: 108.4 kB / 0.5894 GB, free: 14.86 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.863e-05/0.2265, allocations: 27.64 kB / 0.5894 GB, free: 14.83 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.938e-05/0.2266, allocations: 37.7 kB / 0.5895 GB, free: 14.79 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001229/0.2267, allocations: 330.8 kB / 0.5898 GB, free: 14.46 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000134/0.2268, allocations: 47.95 kB / 0.5898 GB, free: 14.41 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001688/0.227, allocations: 113.9 kB / 0.5899 GB, free: 14.28 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003502/0.2274, allocations: 309 kB / 0.5902 GB, free: 13.91 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.025e-06/0.2274, allocations: 0 / 0.5902 GB, free: 13.91 MB / 0.4981 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005567/0.2279, allocations: 348.2 kB / 0.5906 GB, free: 13.54 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 9.473e-05/0.228, allocations: 120.8 kB / 0.5907 GB, free: 13.4 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.203e-06/0.2281, allocations: 0 / 0.5907 GB, free: 13.4 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.335e-05/0.2281, allocations: 4 kB / 0.5907 GB, free: 13.4 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001132/0.2282, allocations: 19.92 kB / 0.5907 GB, free: 13.38 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.786e-06/0.2282, allocations: 4 kB / 0.5907 GB, free: 13.38 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001116/0.2283, allocations: 19.89 kB / 0.5907 GB, free: 13.36 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.129e-05/0.2284, allocations: 8 kB / 0.5907 GB, free: 13.35 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.0001703/0.2285, allocations: 197.9 kB / 0.5909 GB, free: 13.13 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.877e-05/0.2286, allocations: 11.91 kB / 0.5909 GB, free: 13.12 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.256e-05/0.2286, allocations: 21.39 kB / 0.5909 GB, free: 13.09 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.25e-06/0.2286, allocations: 0 / 0.5909 GB, free: 13.09 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.2286, allocations: 8.219 kB / 0.5909 GB, free: 13.09 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.054e-06/0.2287, allocations: 0 / 0.5909 GB, free: 13.09 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007267/0.2294, allocations: 0.5874 MB / 0.5915 GB, free: 12.43 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.747e-06/0.2294, allocations: 4 kB / 0.5915 GB, free: 12.43 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.387e-05/0.2295, allocations: 15.94 kB / 0.5915 GB, free: 12.41 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.555e-06/0.2295, allocations: 0 / 0.5915 GB, free: 12.41 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.998e-05/0.2295, allocations: 7.984 kB / 0.5915 GB, free: 12.4 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.944e-06/0.2295, allocations: 0 / 0.5915 GB, free: 12.4 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.128e-06/0.2295, allocations: 3.938 kB / 0.5916 GB, free: 12.4 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005457/0.2301, allocations: 406.6 kB / 0.5919 GB, free: 11.97 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.815e-05/0.2301, allocations: 88.92 kB / 0.592 GB, free: 11.87 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.034e-05/0.2302, allocations: 8 kB / 0.592 GB, free: 11.86 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001156/0.2303, allocations: 11.98 kB / 0.592 GB, free: 11.85 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.338e-05/0.2304, allocations: 15.92 kB / 0.5921 GB, free: 11.83 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.784e-05/0.2304, allocations: 8 kB / 0.5921 GB, free: 11.82 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001041/0.2305, allocations: 132.3 kB / 0.5922 GB, free: 11.7 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2305, allocations: 0 / 0.5922 GB, free: 11.7 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002995/0.2308, allocations: 40 kB / 0.5922 GB, free: 11.66 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.0009462/0.2318, allocations: 0.9547 MB / 0.5932 GB, free: 10.66 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0004715/0.2322, allocations: 357.5 kB / 0.5935 GB, free: 10.27 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.2323, allocations: 0 / 0.5935 GB, free: 10.27 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002533/0.2325, allocations: 206.7 kB / 0.5937 GB, free: 10.04 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003393/0.2329, allocations: 31.88 kB / 0.5937 GB, free: 10.02 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002656/0.2355, allocations: 2.138 MB / 0.5958 GB, free: 7.738 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002743/0.2358, allocations: 0.7043 MB / 0.5965 GB, free: 7.008 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 7.368e-05/0.2359, allocations: 24.53 kB / 0.5965 GB, free: 6.984 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.1e-05/0.236, allocations: 35.42 kB / 0.5966 GB, free: 6.949 MB / 0.4981 GB Notification: Performance of SimCode: time 2.01e-07/0.236, allocations: 0 / 0.5966 GB, free: 6.949 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01556/0.2516, allocations: 3.387 MB / 0.5999 GB, free: 3.691 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001903/0.2518, allocations: 187.2 kB / 0.6001 GB, free: 3.438 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.786/2.038, allocations: 0 / 0.6001 GB, free: 3.438 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)