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: translateModel(IDEAS.Utilities.IO.Files.Examples.CSVWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.CSVWriter") translateModel(IDEAS.Utilities.IO.Files.Examples.CSVWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_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.006895/0.006895, allocations: 97.62 kB / 15.73 MB, free: 6.047 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.00121/0.00121, allocations: 201.5 kB / 16.68 MB, free: 5.969 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.36/1.36, allocations: 222.9 MB / 240.4 MB, free: 4.207 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9155/0.9155, allocations: 135.1 MB / 425.7 MB, free: 12 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001211/0.001211, allocations: 63.89 kB / 0.5856 GB, free: 3.336 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3991/0.4003, allocations: 80.9 MB / 0.6646 GB, free: 7.602 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.CSVWriter): time 0.00234/0.4027, allocations: 1.608 MB / 0.6662 GB, free: 6.348 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0007593/0.4035, allocations: 0.6109 MB / 0.6668 GB, free: 5.867 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.167e-05/0.4036, allocations: 1.594 kB / 0.6668 GB, free: 5.867 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001381/0.4037, allocations: 17.45 kB / 0.6668 GB, free: 5.852 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0001902/0.4039, allocations: 50.98 kB / 0.6669 GB, free: 5.812 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003455/0.4043, allocations: 107.6 kB / 0.667 GB, free: 5.734 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0002134/0.4045, allocations: 205 kB / 0.6672 GB, free: 5.617 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001014/0.4046, allocations: 24.73 kB / 0.6672 GB, free: 5.602 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001246/0.4047, allocations: 93.89 kB / 0.6673 GB, free: 5.547 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001121/0.4048, allocations: 79.47 kB / 0.6673 GB, free: 5.496 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 3.805e-05/0.4049, allocations: 13.59 kB / 0.6674 GB, free: 5.496 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 6.413e-05/0.405, allocations: 28.91 kB / 0.6674 GB, free: 5.488 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 7.298e-05/0.405, allocations: 30.97 kB / 0.6674 GB, free: 5.469 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 8.364e-05/0.4051, allocations: 72.28 kB / 0.6675 GB, free: 5.422 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002056/0.4053, allocations: 176.4 kB / 0.6677 GB, free: 5.301 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.4053, allocations: 0 / 0.6677 GB, free: 5.301 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.222e-06/0.4053, allocations: 0 / 0.6677 GB, free: 5.301 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 6.071e-06/0.4054, allocations: 1.469 kB / 0.6677 GB, free: 5.301 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.0005317/0.4059, allocations: 0.5615 MB / 0.6682 GB, free: 4.727 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.006e-05/0.4059, allocations: 8.75 kB / 0.6682 GB, free: 4.727 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.389e-05/0.406, allocations: 23.72 kB / 0.6682 GB, free: 4.715 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002224/0.4062, allocations: 237 kB / 0.6685 GB, free: 4.469 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.528e-05/0.4062, allocations: 12.31 kB / 0.6685 GB, free: 4.465 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.68e-05/0.4063, allocations: 10.16 kB / 0.6685 GB, free: 4.465 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002347/0.4065, allocations: 123.9 kB / 0.6686 GB, free: 4.379 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.664e-06/0.4065, allocations: 0 / 0.6686 GB, free: 4.379 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.583e-05/0.4066, allocations: 2.594 kB / 0.6686 GB, free: 4.379 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.747e-06/0.4066, allocations: 5.094 kB / 0.6686 GB, free: 4.375 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001851/0.4068, allocations: 67.61 kB / 0.6687 GB, free: 4.348 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004873/0.4072, allocations: 423.5 kB / 0.6691 GB, free: 3.949 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001739/0.4074, allocations: 87.38 kB / 0.6692 GB, free: 3.895 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001383/0.4076, allocations: 83.59 kB / 0.6692 GB, free: 3.848 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.192e-05/0.4076, allocations: 2.312 kB / 0.6692 GB, free: 3.848 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002065/0.4078, allocations: 172.6 kB / 0.6694 GB, free: 3.695 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=10): time 1.422e-06/0.4078, allocations: 0 / 0.6694 GB, free: 3.695 MB / 0.4981 GB Notification: Performance of matching and sorting (n=10): time 0.0006382/0.4085, allocations: 359.1 kB / 0.6698 GB, free: 3.484 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.318e-05/0.4085, allocations: 172.5 kB / 0.6699 GB, free: 3.285 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001229/0.4087, allocations: 174 kB / 0.6701 GB, free: 3.145 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.71e-05/0.4087, allocations: 34.27 kB / 0.6701 GB, free: 3.109 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 4.33e-05/0.4087, allocations: 111.7 kB / 0.6702 GB, free: 3 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.16e-05/0.4088, allocations: 27.62 kB / 0.6702 GB, free: 2.977 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.246e-05/0.4088, allocations: 40.11 kB / 0.6703 GB, free: 2.949 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 4.191e-05/0.4089, allocations: 325.2 kB / 0.6706 GB, free: 2.625 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001291/0.409, allocations: 57.8 kB / 0.6707 GB, free: 2.598 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001376/0.4091, allocations: 100.5 kB / 0.6707 GB, free: 2.508 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002497/0.4094, allocations: 310 kB / 0.671 GB, free: 2.203 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.345e-06/0.4094, allocations: 3.938 kB / 0.671 GB, free: 2.199 MB / 0.4981 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0004501/0.4099, allocations: 344.9 kB / 0.6714 GB, free: 1.957 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 4.227e-05/0.4099, allocations: 121.5 kB / 0.6715 GB, free: 1.824 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.14e-06/0.4099, allocations: 1.75 kB / 0.6715 GB, free: 1.824 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.254e-05/0.41, allocations: 2.875 kB / 0.6715 GB, free: 1.824 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001007/0.4101, allocations: 20.08 kB / 0.6715 GB, free: 1.816 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.382e-06/0.4101, allocations: 6.625 kB / 0.6715 GB, free: 1.812 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.472e-05/0.4102, allocations: 20.69 kB / 0.6715 GB, free: 1.801 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.037e-05/0.4102, allocations: 12.84 kB / 0.6716 GB, free: 1.797 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 9.981e-05/0.4103, allocations: 199.7 kB / 0.6717 GB, free: 1.598 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.15e-05/0.4103, allocations: 16.97 kB / 0.6718 GB, free: 1.59 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.077e-05/0.4104, allocations: 17.42 kB / 0.6718 GB, free: 1.578 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.535e-06/0.4104, allocations: 1.312 kB / 0.6718 GB, free: 1.578 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.336e-06/0.4104, allocations: 0 / 0.6718 GB, free: 1.578 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.487e-06/0.4104, allocations: 1.375 kB / 0.6718 GB, free: 1.578 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005673/0.411, allocations: 0.585 MB / 0.6723 GB, free: 1.074 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.411, allocations: 0 / 0.6723 GB, free: 1.074 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.256e-05/0.4111, allocations: 13.09 kB / 0.6724 GB, free: 1.07 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.176e-06/0.4111, allocations: 3.984 kB / 0.6724 GB, free: 1.066 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.934e-05/0.4111, allocations: 13.59 kB / 0.6724 GB, free: 1.059 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.984e-06/0.4111, allocations: 1.219 kB / 0.6724 GB, free: 1.059 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.253e-06/0.4111, allocations: 3.938 kB / 0.6724 GB, free: 1.055 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004789/0.4116, allocations: 403.2 kB / 0.6728 GB, free: 0.7656 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 2.28e-05/0.4116, allocations: 88.11 kB / 0.6729 GB, free: 0.6641 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.256e-05/0.4117, allocations: 4.188 kB / 0.6729 GB, free: 0.6641 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001145/0.4118, allocations: 14.58 kB / 0.6729 GB, free: 0.6562 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.441e-05/0.4118, allocations: 7.562 kB / 0.6729 GB, free: 0.6523 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.923e-05/0.4118, allocations: 14.58 kB / 0.6729 GB, free: 0.6445 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 7.802e-05/0.4119, allocations: 126.1 kB / 0.673 GB, free: 0.5469 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4119, allocations: 4 kB / 0.673 GB, free: 0.543 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002888/0.4122, allocations: 42.7 kB / 0.6731 GB, free: 0.5312 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.0001915/0.4124, allocations: 125 kB / 0.6732 GB, free: 440 kB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0004075/0.4128, allocations: 366.2 kB / 0.6735 GB, free: 112 kB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.4129, allocations: 1.312 kB / 0.6735 GB, free: 112 kB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002264/0.4131, allocations: 205.3 kB / 0.6737 GB, free: 15.94 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003/0.4134, allocations: 18.98 kB / 0.6737 GB, free: 15.93 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005873/0.414, allocations: 289.9 kB / 0.674 GB, free: 15.72 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002691/0.4143, allocations: 0.7156 MB / 0.6747 GB, free: 15 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 6.718e-05/0.4144, allocations: 20.34 kB / 0.6747 GB, free: 14.99 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.408e-05/0.4144, allocations: 13.78 kB / 0.6747 GB, free: 14.98 MB / 0.5137 GB Notification: Performance of SimCode: time 2.41e-07/0.4144, allocations: 0 / 0.6747 GB, free: 14.98 MB / 0.5137 GB Notification: Performance of Templates: time 0.005041/0.4194, allocations: 2.073 MB / 0.6768 GB, free: 13.93 MB / 0.5137 GB make -j1 -f IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.CSVWriter.makefile (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 & ./IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.CSVWriter -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1)