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.001064/0.001064, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001043/0.001043, allocations: 198.3 kB / 16.54 MB, free: 6.672 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.323/1.323, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.727/0.727, allocations: 132.2 MB / 422.6 MB, free: 1.75 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002221/0.002222, allocations: 60.47 kB / 0.5019 GB, free: 3.754 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5783/0.5805, allocations: 80.2 MB / 0.5802 GB, free: 4.566 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.CSVWriter): time 0.002902/0.5835, allocations: 1.602 MB / 0.5818 GB, free: 3.457 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.001006/0.5845, allocations: 0.6169 MB / 0.5824 GB, free: 3.027 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.466e-05/0.5846, allocations: 2 kB / 0.5824 GB, free: 3.027 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001635/0.5848, allocations: 21.09 kB / 0.5824 GB, free: 3.012 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001993/0.585, allocations: 43.3 kB / 0.5824 GB, free: 2.984 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004028/0.5854, allocations: 119.1 kB / 0.5825 GB, free: 2.918 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002728/0.5857, allocations: 192.3 kB / 0.5827 GB, free: 2.836 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001391/0.5858, allocations: 28.88 kB / 0.5828 GB, free: 2.824 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001566/0.586, allocations: 86.25 kB / 0.5828 GB, free: 2.789 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001499/0.5861, allocations: 83.78 kB / 0.5829 GB, free: 2.754 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 4.558e-05/0.5862, allocations: 13 kB / 0.5829 GB, free: 2.754 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.678e-05/0.5863, allocations: 23.91 kB / 0.5829 GB, free: 2.754 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 9.503e-05/0.5864, allocations: 31.06 kB / 0.583 GB, free: 2.738 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001083/0.5865, allocations: 77.53 kB / 0.5831 GB, free: 2.695 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002854/0.5868, allocations: 165.8 kB / 0.5832 GB, free: 2.629 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.568e-06/0.5868, allocations: 0 / 0.5832 GB, free: 2.629 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.5868, allocations: 5 kB / 0.5832 GB, free: 2.625 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.175e-05/0.5868, allocations: 0 / 0.5832 GB, free: 2.625 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.0006396/0.5875, allocations: 0.5578 MB / 0.5838 GB, free: 2.078 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.925e-05/0.5875, allocations: 13.84 kB / 0.5838 GB, free: 2.074 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.708e-05/0.5875, allocations: 39.81 kB / 0.5838 GB, free: 2.031 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.793e-05/0.5876, allocations: 15.97 kB / 0.5838 GB, free: 2.027 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002707/0.5879, allocations: 231.1 kB / 0.584 GB, free: 1.801 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.499e-05/0.5879, allocations: 11.22 kB / 0.5841 GB, free: 1.797 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.385e-05/0.5879, allocations: 15.09 kB / 0.5841 GB, free: 1.793 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002753/0.5882, allocations: 122.5 kB / 0.5842 GB, free: 1.73 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.287e-06/0.5882, allocations: 1.156 kB / 0.5842 GB, free: 1.73 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.713e-05/0.5883, allocations: 2.375 kB / 0.5842 GB, free: 1.73 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.871e-06/0.5883, allocations: 4.984 kB / 0.5842 GB, free: 1.727 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002027/0.5885, allocations: 68.61 kB / 0.5843 GB, free: 1.711 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006174/0.5891, allocations: 418.8 kB / 0.5847 GB, free: 1.383 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001952/0.5893, allocations: 88.06 kB / 0.5847 GB, free: 1.34 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001597/0.5895, allocations: 74.86 kB / 0.5848 GB, free: 1.312 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.854e-05/0.5895, allocations: 2 kB / 0.5848 GB, free: 1.312 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002707/0.5898, allocations: 182.2 kB / 0.585 GB, free: 1.176 MB / 430.1 MB Notification: Performance of pre-optimization done (n=10): time 1.613e-06/0.5898, allocations: 3.938 kB / 0.585 GB, free: 1.172 MB / 430.1 MB Notification: Performance of matching and sorting (n=10): time 0.0007605/0.5906, allocations: 343 kB / 0.5853 GB, free: 1.016 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.95e-05/0.5906, allocations: 162.9 kB / 0.5855 GB, free: 0.8281 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001683/0.5908, allocations: 182 kB / 0.5857 GB, free: 0.6992 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 2.128e-05/0.5908, allocations: 33.11 kB / 0.5857 GB, free: 0.6641 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.632e-05/0.5909, allocations: 116 kB / 0.5858 GB, free: 0.5547 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.928e-05/0.591, allocations: 29.39 kB / 0.5858 GB, free: 0.5312 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.902e-05/0.591, allocations: 43.09 kB / 0.5859 GB, free: 0.5039 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 6.037e-05/0.5911, allocations: 327.7 kB / 0.5862 GB, free: 188 kB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001513/0.5913, allocations: 50.62 kB / 0.5862 GB, free: 176 kB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001618/0.5914, allocations: 112.5 kB / 0.5863 GB, free: 88 kB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003583/0.5918, allocations: 313.3 kB / 0.5866 GB, free: 15.79 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.5918, allocations: 0 / 0.5866 GB, free: 15.79 MB / 446.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005938/0.5924, allocations: 343.9 kB / 0.587 GB, free: 15.58 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.102e-05/0.5925, allocations: 120.2 kB / 0.5871 GB, free: 15.45 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.287e-06/0.5925, allocations: 2.312 kB / 0.5871 GB, free: 15.45 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.737e-05/0.5925, allocations: 7 kB / 0.5871 GB, free: 15.45 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001131/0.5926, allocations: 16.19 kB / 0.5871 GB, free: 15.45 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.437e-06/0.5927, allocations: 3.75 kB / 0.5871 GB, free: 15.45 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001044/0.5928, allocations: 17.28 kB / 0.5871 GB, free: 15.44 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.135e-05/0.5928, allocations: 8.766 kB / 0.5871 GB, free: 15.44 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.0001613/0.593, allocations: 207.2 kB / 0.5873 GB, free: 15.24 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.45e-05/0.593, allocations: 13.89 kB / 0.5873 GB, free: 15.23 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.989e-05/0.5931, allocations: 14.86 kB / 0.5874 GB, free: 15.22 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.689e-06/0.5931, allocations: 5.766 kB / 0.5874 GB, free: 15.22 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/0.5931, allocations: 0 / 0.5874 GB, free: 15.22 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.809e-06/0.5931, allocations: 0.5625 kB / 0.5874 GB, free: 15.22 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008134/0.5939, allocations: 0.5883 MB / 0.5879 GB, free: 14.77 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.5939, allocations: 0.75 kB / 0.5879 GB, free: 14.77 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.776e-05/0.594, allocations: 11.77 kB / 0.5879 GB, free: 14.77 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.715e-06/0.594, allocations: 1.25 kB / 0.5879 GB, free: 14.77 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.857e-05/0.594, allocations: 10.19 kB / 0.588 GB, free: 14.77 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.596e-06/0.5941, allocations: 2.359 kB / 0.588 GB, free: 14.77 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.667e-06/0.5941, allocations: 3.938 kB / 0.588 GB, free: 14.77 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005992/0.5947, allocations: 407.4 kB / 0.5883 GB, free: 14.5 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.397e-05/0.5947, allocations: 85.45 kB / 0.5884 GB, free: 14.41 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.203e-05/0.5948, allocations: 4.297 kB / 0.5884 GB, free: 14.41 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001177/0.5949, allocations: 15.77 kB / 0.5884 GB, free: 14.4 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.507e-05/0.595, allocations: 13.36 kB / 0.5885 GB, free: 14.39 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.002e-05/0.595, allocations: 7.688 kB / 0.5885 GB, free: 14.39 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0001167/0.5951, allocations: 138.4 kB / 0.5886 GB, free: 14.29 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5951, allocations: 0 / 0.5886 GB, free: 14.29 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0003053/0.5954, allocations: 39.73 kB / 0.5886 GB, free: 14.29 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.001052/0.5965, allocations: 0.9478 MB / 0.5896 GB, free: 13.49 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0005873/0.5971, allocations: 363.2 kB / 0.5899 GB, free: 13.2 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.5971, allocations: 0 / 0.5899 GB, free: 13.2 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002718/0.5974, allocations: 212.2 kB / 0.5901 GB, free: 13.04 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003289/0.5977, allocations: 32.22 kB / 0.5901 GB, free: 13.02 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002799/0.6005, allocations: 2.095 MB / 0.5922 GB, free: 11.36 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003036/0.6009, allocations: 0.7091 MB / 0.5929 GB, free: 10.66 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 7.49e-05/0.6009, allocations: 23.45 kB / 0.5929 GB, free: 10.66 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.583e-05/0.601, allocations: 37.97 kB / 0.5929 GB, free: 10.63 MB / 446.1 MB Notification: Performance of SimCode: time 3.91e-07/0.601, allocations: 0 / 0.5929 GB, free: 10.63 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02197/0.623, allocations: 3.577 MB / 0.5964 GB, free: 9.707 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.762/8.385, allocations: 9.406 kB / 0.5964 GB, free: 9.699 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)