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: translateModel(IDEAS.Utilities.IO.Files.Examples.CSVWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Utilities.IO.Files.Examples.CSVWriter") translateModel(IDEAS.Utilities.IO.Files.Examples.CSVWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Utilities.IO.Files.Examples.CSVWriter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007917/0.0007917, allocations: 91.14 kB / 15.36 MB, free: 0.7383 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.009346/0.009346, allocations: 170.9 kB / 16.26 MB, free: 6.613 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.368/1.368, allocations: 223.3 MB / 240.3 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8043/0.8043, allocations: 132.4 MB / 423.8 MB, free: 1.957 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003752/0.0003752, allocations: 8 kB / 0.504 GB, free: 3.891 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4647/0.4651, allocations: 81.58 MB / 0.5837 GB, free: 4.039 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.CSVWriter): time 0.001906/0.467, allocations: 1.314 MB / 0.585 GB, free: 3.094 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.001003/0.4681, allocations: 0.6281 MB / 0.5856 GB, free: 2.656 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.605e-05/0.4682, allocations: 2.5 kB / 0.5856 GB, free: 2.656 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000146/0.4683, allocations: 14.36 kB / 0.5856 GB, free: 2.648 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001957/0.4686, allocations: 39.09 kB / 0.5856 GB, free: 2.625 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00043/0.469, allocations: 101.8 kB / 0.5857 GB, free: 2.57 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002307/0.4692, allocations: 163.4 kB / 0.5859 GB, free: 2.504 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001221/0.4694, allocations: 23 kB / 0.5859 GB, free: 2.496 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001994/0.4696, allocations: 69.91 kB / 0.586 GB, free: 2.473 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001643/0.4697, allocations: 75.81 kB / 0.586 GB, free: 2.445 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 3.949e-05/0.4698, allocations: 5.594 kB / 0.586 GB, free: 2.445 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.838e-05/0.4699, allocations: 26.77 kB / 0.5861 GB, free: 2.434 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 8.404e-05/0.47, allocations: 31.89 kB / 0.5861 GB, free: 2.418 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001034/0.4701, allocations: 88.64 kB / 0.5862 GB, free: 2.355 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002734/0.4704, allocations: 155.6 kB / 0.5863 GB, free: 2.305 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.4704, allocations: 1.094 kB / 0.5863 GB, free: 2.305 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.4704, allocations: 0 / 0.5863 GB, free: 2.305 MB / 430.1 MB Notification: Performance of Transformations before backend: time 8.115e-06/0.4704, allocations: 0 / 0.5863 GB, free: 2.305 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.0006358/0.471, allocations: 0.527 MB / 0.5869 GB, free: 1.77 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.524e-05/0.4711, allocations: 17.91 kB / 0.5869 GB, free: 1.762 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.111e-05/0.4712, allocations: 16.16 kB / 0.5869 GB, free: 1.758 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002625/0.4714, allocations: 239.7 kB / 0.5871 GB, free: 1.523 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.71e-05/0.4715, allocations: 10.41 kB / 0.5871 GB, free: 1.52 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.087e-05/0.4715, allocations: 11.38 kB / 0.5871 GB, free: 1.52 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002875/0.4718, allocations: 119.2 kB / 0.5872 GB, free: 1.465 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.027e-06/0.4718, allocations: 0 / 0.5872 GB, free: 1.465 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.921e-05/0.4718, allocations: 2.625 kB / 0.5873 GB, free: 1.465 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.146e-06/0.4719, allocations: 6.312 kB / 0.5873 GB, free: 1.461 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002171/0.4721, allocations: 80.06 kB / 0.5873 GB, free: 1.441 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006379/0.4727, allocations: 420.7 kB / 0.5877 GB, free: 1.117 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002224/0.473, allocations: 93.27 kB / 0.5878 GB, free: 1.07 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001645/0.4731, allocations: 87.58 kB / 0.5879 GB, free: 1.035 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.69e-05/0.4732, allocations: 1.828 kB / 0.5879 GB, free: 1.035 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002817/0.4735, allocations: 186 kB / 0.5881 GB, free: 0.8984 MB / 430.1 MB Notification: Performance of pre-optimization done (n=10): time 1.693e-06/0.4735, allocations: 0 / 0.5881 GB, free: 0.8984 MB / 430.1 MB Notification: Performance of matching and sorting (n=10): time 0.0008202/0.4743, allocations: 366.5 kB / 0.5884 GB, free: 0.7305 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.004e-05/0.4744, allocations: 167 kB / 0.5886 GB, free: 0.5391 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001767/0.4746, allocations: 172 kB / 0.5888 GB, free: 424 kB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 2.502e-05/0.4746, allocations: 34.16 kB / 0.5888 GB, free: 388 kB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.65e-05/0.4747, allocations: 106.9 kB / 0.5889 GB, free: 284 kB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.825e-05/0.4747, allocations: 33.48 kB / 0.5889 GB, free: 256 kB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.052e-05/0.4747, allocations: 22.73 kB / 0.5889 GB, free: 236 kB / 430.1 MB Notification: Performance of setup shared object (initialization): time 9.798e-05/0.4748, allocations: 327.3 kB / 0.5893 GB, free: 15.91 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001545/0.475, allocations: 54.31 kB / 0.5893 GB, free: 15.9 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001914/0.4752, allocations: 113.6 kB / 0.5894 GB, free: 15.81 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004013/0.4756, allocations: 316.5 kB / 0.5897 GB, free: 15.52 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.138e-06/0.4756, allocations: 0.6094 kB / 0.5897 GB, free: 15.52 MB / 446.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.000626/0.4763, allocations: 359.8 kB / 0.5901 GB, free: 15.3 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.2e-05/0.4764, allocations: 119.1 kB / 0.5902 GB, free: 15.17 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.586e-06/0.4764, allocations: 2.562 kB / 0.5902 GB, free: 15.17 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.754e-05/0.4764, allocations: 2.891 kB / 0.5902 GB, free: 15.17 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001329/0.4765, allocations: 26.56 kB / 0.5902 GB, free: 15.16 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.578e-06/0.4766, allocations: 2.75 kB / 0.5902 GB, free: 15.16 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001231/0.4767, allocations: 20.44 kB / 0.5902 GB, free: 15.16 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.409e-05/0.4767, allocations: 9.484 kB / 0.5902 GB, free: 15.16 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.0001882/0.4769, allocations: 201.4 kB / 0.5904 GB, free: 14.96 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.019e-05/0.477, allocations: 13.03 kB / 0.5904 GB, free: 14.96 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.724e-05/0.477, allocations: 15.7 kB / 0.5905 GB, free: 14.95 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.301e-06/0.477, allocations: 5.188 kB / 0.5905 GB, free: 14.94 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.236e-06/0.477, allocations: 3.938 kB / 0.5905 GB, free: 14.94 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.36e-06/0.4771, allocations: 1.422 kB / 0.5905 GB, free: 14.94 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009703/0.478, allocations: 0.5887 MB / 0.591 GB, free: 14.5 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.949e-06/0.4781, allocations: 0 / 0.591 GB, free: 14.5 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.439e-05/0.4781, allocations: 20.52 kB / 0.5911 GB, free: 14.49 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.468e-06/0.4781, allocations: 1.031 kB / 0.5911 GB, free: 14.49 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.163e-05/0.4782, allocations: 11.12 kB / 0.5911 GB, free: 14.49 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.195e-06/0.4782, allocations: 0 / 0.5911 GB, free: 14.49 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.757e-06/0.4782, allocations: 5.562 kB / 0.5911 GB, free: 14.48 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007158/0.4789, allocations: 407 kB / 0.5915 GB, free: 14.23 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.503e-05/0.479, allocations: 90.56 kB / 0.5916 GB, free: 14.13 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.088e-05/0.479, allocations: 4.719 kB / 0.5916 GB, free: 14.13 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001345/0.4792, allocations: 13.2 kB / 0.5916 GB, free: 14.12 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.079e-05/0.4793, allocations: 14.77 kB / 0.5916 GB, free: 14.12 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.492e-05/0.4793, allocations: 7.094 kB / 0.5916 GB, free: 14.12 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0001415/0.4794, allocations: 135 kB / 0.5917 GB, free: 14.02 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4795, allocations: 4 kB / 0.5917 GB, free: 14.02 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0003482/0.4798, allocations: 40.67 kB / 0.5918 GB, free: 14.01 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.0002991/0.4801, allocations: 122.6 kB / 0.5919 GB, free: 13.91 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0006317/0.4808, allocations: 373 kB / 0.5922 GB, free: 13.62 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.926e-06/0.4808, allocations: 0 / 0.5922 GB, free: 13.62 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002907/0.4811, allocations: 207 kB / 0.5924 GB, free: 13.46 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003369/0.4814, allocations: 21.14 kB / 0.5925 GB, free: 13.46 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007091/0.4821, allocations: 330.6 kB / 0.5928 GB, free: 13.23 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003104/0.4825, allocations: 0.709 MB / 0.5935 GB, free: 12.54 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 8.604e-05/0.4826, allocations: 23.61 kB / 0.5935 GB, free: 12.53 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.118e-05/0.4826, allocations: 19.03 kB / 0.5935 GB, free: 12.52 MB / 446.1 MB Notification: Performance of SimCode: time 3.8e-07/0.4826, allocations: 0 / 0.5935 GB, free: 12.52 MB / 446.1 MB Notification: Performance of Templates: time 0.00647/0.4891, allocations: 1.988 MB / 0.5954 GB, free: 12.25 MB / 446.1 MB make -j1 -f IDEAS_IDEAS.Utilities.IO.Files.Examples.CSVWriter.makefile (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 & ./IDEAS_IDEAS.Utilities.IO.Files.Examples.CSVWriter -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_IDEAS.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1)