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.001295/0.001295, allocations: 105.2 kB / 16.35 MB, free: 6.285 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.001199/0.001199, allocations: 193.5 kB / 17.29 MB, free: 5.863 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.326/1.326, allocations: 222.9 MB / 241 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7895/0.7895, allocations: 132.2 MB / 423.3 MB, free: 6.566 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001285/0.001285, allocations: 55.91 kB / 0.5032 GB, free: 10.94 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3625/0.3638, allocations: 80.19 MB / 0.5815 GB, free: 27.57 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.CSVWriter): time 0.003514/0.3673, allocations: 1.609 MB / 0.5831 GB, free: 26.33 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.001131/0.3685, allocations: 0.6135 MB / 0.5837 GB, free: 25.85 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002049/0.3687, allocations: 6.562 kB / 0.5837 GB, free: 25.85 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002463/0.369, allocations: 13.11 kB / 0.5837 GB, free: 25.84 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00037/0.3694, allocations: 46.84 kB / 0.5837 GB, free: 25.8 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005325/0.3699, allocations: 117.3 kB / 0.5838 GB, free: 25.71 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003548/0.3703, allocations: 202.3 kB / 0.584 GB, free: 25.6 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001611/0.3705, allocations: 26.03 kB / 0.5841 GB, free: 25.59 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002049/0.3707, allocations: 82.95 kB / 0.5841 GB, free: 25.55 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001555/0.3709, allocations: 90.16 kB / 0.5842 GB, free: 25.49 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 4.913e-05/0.3709, allocations: 13.22 kB / 0.5842 GB, free: 25.49 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001001/0.371, allocations: 24.59 kB / 0.5843 GB, free: 25.48 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 9.937e-05/0.3711, allocations: 27.61 kB / 0.5843 GB, free: 25.47 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001167/0.3712, allocations: 76.36 kB / 0.5844 GB, free: 25.42 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002992/0.3715, allocations: 162.6 kB / 0.5845 GB, free: 25.3 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.262e-06/0.3716, allocations: 0 / 0.5845 GB, free: 25.3 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.3716, allocations: 1 kB / 0.5845 GB, free: 25.3 MB / 446.1 MB Notification: Performance of Transformations before backend: time 9.678e-06/0.3716, allocations: 0 / 0.5845 GB, free: 25.3 MB / 446.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.0009375/0.3725, allocations: 0.5614 MB / 0.5851 GB, free: 24.74 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.595e-05/0.3726, allocations: 11.69 kB / 0.5851 GB, free: 24.74 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001038/0.3727, allocations: 19.34 kB / 0.5851 GB, free: 24.73 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005056/0.3732, allocations: 244.8 kB / 0.5853 GB, free: 24.48 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.336e-05/0.3733, allocations: 6.5 kB / 0.5853 GB, free: 24.48 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.534e-05/0.3733, allocations: 16.25 kB / 0.5853 GB, free: 24.47 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003581/0.3737, allocations: 118.1 kB / 0.5855 GB, free: 24.39 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.278e-05/0.3737, allocations: 1.375 kB / 0.5855 GB, free: 24.39 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.275e-05/0.3737, allocations: 2.625 kB / 0.5855 GB, free: 24.39 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.293e-06/0.3737, allocations: 1.344 kB / 0.5855 GB, free: 24.39 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002115/0.374, allocations: 69.48 kB / 0.5855 GB, free: 24.36 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006364/0.3746, allocations: 414.2 kB / 0.5859 GB, free: 23.98 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001715/0.3748, allocations: 93.06 kB / 0.586 GB, free: 23.92 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001335/0.3749, allocations: 75.91 kB / 0.5861 GB, free: 23.88 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.638e-05/0.375, allocations: 2.75 kB / 0.5861 GB, free: 23.88 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002214/0.3752, allocations: 184.2 kB / 0.5863 GB, free: 23.72 MB / 446.1 MB Notification: Performance of pre-optimization done (n=10): time 2.224e-06/0.3752, allocations: 0 / 0.5863 GB, free: 23.72 MB / 446.1 MB Notification: Performance of matching and sorting (n=10): time 0.0007798/0.376, allocations: 346.3 kB / 0.5866 GB, free: 23.52 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.354e-05/0.3761, allocations: 170 kB / 0.5868 GB, free: 23.32 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001891/0.3763, allocations: 173.7 kB / 0.5869 GB, free: 23.18 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 2.841e-05/0.3763, allocations: 35.3 kB / 0.587 GB, free: 23.15 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.583e-05/0.3764, allocations: 104.4 kB / 0.5871 GB, free: 23.05 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.033e-05/0.3764, allocations: 31.25 kB / 0.5871 GB, free: 23.02 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.799e-05/0.3765, allocations: 39.17 kB / 0.5871 GB, free: 22.99 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 7.73e-05/0.3766, allocations: 331.5 kB / 0.5874 GB, free: 22.66 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001361/0.3768, allocations: 50.98 kB / 0.5875 GB, free: 22.64 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001515/0.3769, allocations: 109.3 kB / 0.5876 GB, free: 22.55 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002743/0.3772, allocations: 307.3 kB / 0.5879 GB, free: 22.25 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.657e-06/0.3772, allocations: 1.5 kB / 0.5879 GB, free: 22.25 MB / 446.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0004801/0.3777, allocations: 346.8 kB / 0.5882 GB, free: 22.01 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.779e-05/0.3778, allocations: 120.7 kB / 0.5883 GB, free: 21.88 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.852e-06/0.3778, allocations: 6.172 kB / 0.5883 GB, free: 21.87 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.614e-05/0.3778, allocations: 2.469 kB / 0.5883 GB, free: 21.87 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001127/0.3779, allocations: 18.17 kB / 0.5884 GB, free: 21.87 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.454e-06/0.3779, allocations: 10.66 kB / 0.5884 GB, free: 21.86 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001107/0.3781, allocations: 25.33 kB / 0.5884 GB, free: 21.84 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.232e-05/0.3781, allocations: 8.906 kB / 0.5884 GB, free: 21.84 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.0001147/0.3782, allocations: 195.2 kB / 0.5886 GB, free: 21.65 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.514e-05/0.3782, allocations: 23.19 kB / 0.5886 GB, free: 21.64 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.583e-05/0.3783, allocations: 21.2 kB / 0.5886 GB, free: 21.62 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.946e-06/0.3783, allocations: 1.188 kB / 0.5886 GB, free: 21.62 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.3783, allocations: 0 / 0.5886 GB, free: 21.62 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.877e-06/0.3783, allocations: 0 / 0.5886 GB, free: 21.62 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006085/0.3789, allocations: 0.5837 MB / 0.5892 GB, free: 21.12 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.3789, allocations: 0 / 0.5892 GB, free: 21.12 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.312e-05/0.379, allocations: 13.22 kB / 0.5892 GB, free: 21.12 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.856e-06/0.379, allocations: 2.406 kB / 0.5892 GB, free: 21.12 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.992e-05/0.379, allocations: 13.05 kB / 0.5892 GB, free: 21.11 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.575e-06/0.379, allocations: 1.531 kB / 0.5892 GB, free: 21.11 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.3791, allocations: 3.938 kB / 0.5892 GB, free: 21.11 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004844/0.3795, allocations: 401.5 kB / 0.5896 GB, free: 20.82 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.037e-05/0.3796, allocations: 84.83 kB / 0.5897 GB, free: 20.72 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.708e-05/0.3796, allocations: 8.094 kB / 0.5897 GB, free: 20.72 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001127/0.3797, allocations: 14.36 kB / 0.5897 GB, free: 20.71 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.243e-05/0.3798, allocations: 7.25 kB / 0.5897 GB, free: 20.71 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.884e-05/0.3798, allocations: 14.14 kB / 0.5897 GB, free: 20.7 MB / 446.1 MB Notification: Performance of sorting global known variables: time 8.659e-05/0.3799, allocations: 133.4 kB / 0.5899 GB, free: 20.6 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3799, allocations: 0 / 0.5899 GB, free: 20.6 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0003297/0.3803, allocations: 39.28 kB / 0.5899 GB, free: 20.59 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.0002145/0.3805, allocations: 124.2 kB / 0.59 GB, free: 20.49 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.000411/0.3809, allocations: 365.9 kB / 0.5904 GB, free: 20.17 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.3809, allocations: 0 / 0.5904 GB, free: 20.17 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001847/0.3811, allocations: 201.8 kB / 0.5906 GB, free: 20 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003138/0.3814, allocations: 23.92 kB / 0.5906 GB, free: 19.99 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005377/0.382, allocations: 279.5 kB / 0.5908 GB, free: 19.79 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001351/0.3821, allocations: 0.7089 MB / 0.5915 GB, free: 19.08 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 6.65e-05/0.3822, allocations: 26.06 kB / 0.5916 GB, free: 19.07 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.172e-05/0.3822, allocations: 13.78 kB / 0.5916 GB, free: 19.06 MB / 446.1 MB Notification: Performance of SimCode: time 2.1e-07/0.3822, allocations: 0 / 0.5916 GB, free: 19.06 MB / 446.1 MB Notification: Performance of Templates: time 0.004597/0.3868, allocations: 2.082 MB / 0.5936 GB, free: 17.18 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 -s cvode -lv LOG_STATS > IDEAS_IDEAS.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1)