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.005541/0.005541, allocations: 101.1 kB / 15.73 MB, free: 6.039 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.001282/0.001282, allocations: 190.4 kB / 16.67 MB, free: 5.977 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.428/1.428, allocations: 222.9 MB / 240.4 MB, free: 4.176 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7534/0.7534, allocations: 132.2 MB / 422.7 MB, free: 1.613 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001302/0.001302, allocations: 64.08 kB / 0.5813 GB, free: 7.547 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4272/0.4285, allocations: 80.21 MB / 0.6597 GB, free: 10.55 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.CSVWriter): time 0.002519/0.4311, allocations: 1.593 MB / 0.6612 GB, free: 9.441 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0008283/0.4319, allocations: 0.614 MB / 0.6618 GB, free: 9.016 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.707e-05/0.432, allocations: 1.469 kB / 0.6618 GB, free: 9.016 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001404/0.4322, allocations: 21.38 kB / 0.6618 GB, free: 9 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0001979/0.4324, allocations: 48.02 kB / 0.6619 GB, free: 8.973 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003782/0.4328, allocations: 118.4 kB / 0.662 GB, free: 8.906 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0002556/0.433, allocations: 194 kB / 0.6622 GB, free: 8.824 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001131/0.4331, allocations: 27.5 kB / 0.6622 GB, free: 8.809 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001629/0.4333, allocations: 91.09 kB / 0.6623 GB, free: 8.77 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001404/0.4335, allocations: 87.95 kB / 0.6624 GB, free: 8.73 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 3.724e-05/0.4335, allocations: 12.66 kB / 0.6624 GB, free: 8.73 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 7.153e-05/0.4336, allocations: 23.02 kB / 0.6624 GB, free: 8.73 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 8.232e-05/0.4337, allocations: 32.78 kB / 0.6625 GB, free: 8.715 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 9.569e-05/0.4338, allocations: 72.39 kB / 0.6625 GB, free: 8.676 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002307/0.434, allocations: 174.1 kB / 0.6627 GB, free: 8.574 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 2.985e-06/0.434, allocations: 0 / 0.6627 GB, free: 8.574 MB / 0.4981 GB Notification: Performance of FrontEnd: time 8.62e-07/0.434, allocations: 0 / 0.6627 GB, free: 8.574 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 6.152e-06/0.434, allocations: 1.094 kB / 0.6627 GB, free: 8.574 MB / 0.4981 GB 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.0005781/0.4346, allocations: 0.5581 MB / 0.6632 GB, free: 8.008 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.422e-05/0.4347, allocations: 8.844 kB / 0.6632 GB, free: 8.008 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.14e-05/0.4347, allocations: 20.03 kB / 0.6633 GB, free: 8 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002694/0.435, allocations: 239.9 kB / 0.6635 GB, free: 7.75 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.618e-05/0.435, allocations: 6.875 kB / 0.6635 GB, free: 7.75 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.915e-05/0.4351, allocations: 15.81 kB / 0.6635 GB, free: 7.746 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002381/0.4353, allocations: 120 kB / 0.6636 GB, free: 7.664 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.854e-06/0.4353, allocations: 0 / 0.6636 GB, free: 7.664 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.706e-05/0.4354, allocations: 2.688 kB / 0.6636 GB, free: 7.664 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.2e-06/0.4354, allocations: 1.281 kB / 0.6636 GB, free: 7.664 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001767/0.4355, allocations: 66.17 kB / 0.6637 GB, free: 7.637 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005256/0.4361, allocations: 428.3 kB / 0.6641 GB, free: 7.234 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000172/0.4363, allocations: 87.12 kB / 0.6642 GB, free: 7.18 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001421/0.4364, allocations: 80.56 kB / 0.6643 GB, free: 7.137 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.555e-05/0.4364, allocations: 1.281 kB / 0.6643 GB, free: 7.137 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002118/0.4367, allocations: 177.6 kB / 0.6644 GB, free: 6.98 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=10): time 1.553e-06/0.4367, allocations: 4 kB / 0.6644 GB, free: 6.977 MB / 0.4981 GB Notification: Performance of matching and sorting (n=10): time 0.0006493/0.4373, allocations: 350.4 kB / 0.6648 GB, free: 6.773 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.991e-05/0.4374, allocations: 172.8 kB / 0.6649 GB, free: 6.574 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001261/0.4375, allocations: 177.9 kB / 0.6651 GB, free: 6.43 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.856e-05/0.4375, allocations: 33.64 kB / 0.6651 GB, free: 6.395 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 4.695e-05/0.4376, allocations: 108.1 kB / 0.6652 GB, free: 6.289 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.441e-05/0.4376, allocations: 27.83 kB / 0.6653 GB, free: 6.266 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.451e-05/0.4377, allocations: 42.7 kB / 0.6653 GB, free: 6.234 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 4.566e-05/0.4377, allocations: 326.3 kB / 0.6656 GB, free: 5.91 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001235/0.4379, allocations: 53.36 kB / 0.6657 GB, free: 5.887 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001336/0.438, allocations: 100.5 kB / 0.6658 GB, free: 5.797 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000247/0.4383, allocations: 313.5 kB / 0.6661 GB, free: 5.488 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.846e-06/0.4383, allocations: 5 kB / 0.6661 GB, free: 5.484 MB / 0.4981 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0004741/0.4388, allocations: 344.9 kB / 0.6664 GB, free: 5.242 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 4.623e-05/0.4388, allocations: 121.2 kB / 0.6665 GB, free: 5.109 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.741e-06/0.4388, allocations: 8.219 kB / 0.6665 GB, free: 5.105 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.35e-05/0.4389, allocations: 0 / 0.6665 GB, free: 5.105 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000104/0.439, allocations: 17.11 kB / 0.6665 GB, free: 5.102 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.993e-06/0.439, allocations: 2.75 kB / 0.6665 GB, free: 5.102 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.507e-05/0.4391, allocations: 16.36 kB / 0.6666 GB, free: 5.094 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.244e-05/0.4391, allocations: 16.11 kB / 0.6666 GB, free: 5.086 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.0001137/0.4392, allocations: 197 kB / 0.6668 GB, free: 4.891 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.338e-05/0.4393, allocations: 16.97 kB / 0.6668 GB, free: 4.883 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.485e-05/0.4393, allocations: 25.73 kB / 0.6668 GB, free: 4.855 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.685e-06/0.4393, allocations: 1 kB / 0.6668 GB, free: 4.855 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.4393, allocations: 0 / 0.6668 GB, free: 4.855 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.4393, allocations: 1.312 kB / 0.6668 GB, free: 4.855 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006372/0.44, allocations: 0.5856 MB / 0.6674 GB, free: 4.352 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.44, allocations: 0 / 0.6674 GB, free: 4.352 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.418e-05/0.4401, allocations: 7.688 kB / 0.6674 GB, free: 4.352 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.214e-06/0.4401, allocations: 1.5 kB / 0.6674 GB, free: 4.352 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.01e-05/0.4401, allocations: 13.45 kB / 0.6674 GB, free: 4.344 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.383e-06/0.4401, allocations: 0 / 0.6674 GB, free: 4.344 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/0.4401, allocations: 3.938 kB / 0.6674 GB, free: 4.34 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000486/0.4406, allocations: 403.4 kB / 0.6678 GB, free: 4.051 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.205e-05/0.4406, allocations: 89.05 kB / 0.6679 GB, free: 3.949 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.363e-05/0.4407, allocations: 4.031 kB / 0.6679 GB, free: 3.949 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001104/0.4408, allocations: 13.83 kB / 0.6679 GB, free: 3.941 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.369e-05/0.4408, allocations: 12 kB / 0.6679 GB, free: 3.934 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.327e-05/0.4409, allocations: 17.64 kB / 0.6679 GB, free: 3.922 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 8.418e-05/0.441, allocations: 126.9 kB / 0.668 GB, free: 3.824 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.41e-07/0.441, allocations: 0 / 0.668 GB, free: 3.824 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003044/0.4413, allocations: 42.83 kB / 0.6681 GB, free: 3.812 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.0002035/0.4415, allocations: 128.5 kB / 0.6682 GB, free: 3.707 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0004339/0.4419, allocations: 359.7 kB / 0.6685 GB, free: 3.395 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.4419, allocations: 0 / 0.6685 GB, free: 3.395 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002021/0.4422, allocations: 205.5 kB / 0.6687 GB, free: 3.223 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003085/0.4425, allocations: 28.67 kB / 0.6688 GB, free: 3.207 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005996/0.4431, allocations: 291 kB / 0.669 GB, free: 3 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001463/0.4432, allocations: 0.7069 MB / 0.6697 GB, free: 2.289 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 6.524e-05/0.4433, allocations: 21.84 kB / 0.6698 GB, free: 2.281 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.12e-05/0.4433, allocations: 12.56 kB / 0.6698 GB, free: 2.273 MB / 0.4981 GB Notification: Performance of SimCode: time 5.61e-07/0.4434, allocations: 4 kB / 0.6698 GB, free: 2.27 MB / 0.4981 GB Notification: Performance of Templates: time 0.004901/0.4483, allocations: 2.074 MB / 0.6718 GB, free: 1.211 MB / 0.4981 GB 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)