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.0009512/0.0009512, allocations: 90.52 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.007463/0.007463, allocations: 169.5 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.328/1.328, allocations: 223.3 MB / 240.3 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7416/0.7416, allocations: 132.3 MB / 423.8 MB, free: 1.977 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000323/0.000323, allocations: 11.94 kB / 0.5041 GB, free: 3.797 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3692/0.3696, allocations: 81.58 MB / 0.5837 GB, free: 3.879 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.CSVWriter): time 0.001593/0.3712, allocations: 1.32 MB / 0.585 GB, free: 2.926 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008665/0.3721, allocations: 0.6264 MB / 0.5856 GB, free: 2.496 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.663e-05/0.3722, allocations: 1.375 kB / 0.5856 GB, free: 2.496 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001378/0.3723, allocations: 14.45 kB / 0.5857 GB, free: 2.488 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001697/0.3725, allocations: 36.19 kB / 0.5857 GB, free: 2.469 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003275/0.3728, allocations: 106.2 kB / 0.5858 GB, free: 2.41 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001983/0.373, allocations: 164.9 kB / 0.586 GB, free: 2.344 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001112/0.3732, allocations: 20.58 kB / 0.586 GB, free: 2.34 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001381/0.3733, allocations: 78.38 kB / 0.5861 GB, free: 2.309 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001275/0.3734, allocations: 83.14 kB / 0.5861 GB, free: 2.273 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 3.112e-05/0.3735, allocations: 6.031 kB / 0.5861 GB, free: 2.273 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.038e-05/0.3735, allocations: 18.42 kB / 0.5862 GB, free: 2.27 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 7.736e-05/0.3736, allocations: 23.09 kB / 0.5862 GB, free: 2.262 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 9.492e-05/0.3737, allocations: 94.23 kB / 0.5863 GB, free: 2.195 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002459/0.374, allocations: 151.8 kB / 0.5864 GB, free: 2.148 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.06e-06/0.374, allocations: 0 / 0.5864 GB, free: 2.148 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.923e-06/0.374, allocations: 0.625 kB / 0.5864 GB, free: 2.148 MB / 430.1 MB Notification: Performance of Transformations before backend: time 4.238e-06/0.374, allocations: 0 / 0.5864 GB, free: 2.148 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.0005288/0.3745, allocations: 0.5307 MB / 0.5869 GB, free: 1.609 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.806e-05/0.3746, allocations: 9.344 kB / 0.5869 GB, free: 1.609 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.472e-05/0.3746, allocations: 36.14 kB / 0.587 GB, free: 1.57 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.01e-05/0.3747, allocations: 17.41 kB / 0.587 GB, free: 1.566 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002385/0.3749, allocations: 242.3 kB / 0.5872 GB, free: 1.328 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.759e-05/0.375, allocations: 6.875 kB / 0.5872 GB, free: 1.328 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.578e-05/0.375, allocations: 19.75 kB / 0.5872 GB, free: 1.32 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002828/0.3753, allocations: 119.6 kB / 0.5874 GB, free: 1.266 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.021e-05/0.3753, allocations: 0 / 0.5874 GB, free: 1.266 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.021e-05/0.3753, allocations: 5.844 kB / 0.5874 GB, free: 1.262 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.849e-06/0.3753, allocations: 2.125 kB / 0.5874 GB, free: 1.262 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002226/0.3756, allocations: 75.98 kB / 0.5874 GB, free: 1.246 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005948/0.3762, allocations: 423.2 kB / 0.5878 GB, free: 0.918 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001968/0.3764, allocations: 100.3 kB / 0.5879 GB, free: 0.8672 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001664/0.3766, allocations: 77.53 kB / 0.588 GB, free: 0.8398 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.277e-05/0.3766, allocations: 2.5 kB / 0.588 GB, free: 0.8398 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002731/0.3769, allocations: 186.3 kB / 0.5882 GB, free: 0.7031 MB / 430.1 MB Notification: Performance of pre-optimization done (n=10): time 1.493e-06/0.3769, allocations: 4 kB / 0.5882 GB, free: 0.6992 MB / 430.1 MB Notification: Performance of matching and sorting (n=10): time 0.0007822/0.3777, allocations: 366.4 kB / 0.5885 GB, free: 0.5312 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.515e-05/0.3777, allocations: 166.2 kB / 0.5887 GB, free: 348 kB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001507/0.3779, allocations: 176.5 kB / 0.5889 GB, free: 216 kB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.846e-05/0.3779, allocations: 34.33 kB / 0.5889 GB, free: 180 kB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.892e-05/0.378, allocations: 107.6 kB / 0.589 GB, free: 76 kB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.664e-05/0.378, allocations: 25.23 kB / 0.589 GB, free: 56 kB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.422e-05/0.3781, allocations: 21.89 kB / 0.5891 GB, free: 36 kB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001316/0.3782, allocations: 332.3 kB / 0.5894 GB, free: 15.71 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001503/0.3783, allocations: 55.06 kB / 0.5894 GB, free: 15.7 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000179/0.3785, allocations: 107.7 kB / 0.5895 GB, free: 15.62 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003967/0.3789, allocations: 319.9 kB / 0.5898 GB, free: 15.32 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.885e-06/0.379, allocations: 1.125 kB / 0.5898 GB, free: 15.32 MB / 446.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005964/0.3796, allocations: 355.8 kB / 0.5902 GB, free: 15.11 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.809e-05/0.3796, allocations: 124.9 kB / 0.5903 GB, free: 14.97 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.172e-06/0.3797, allocations: 1.5 kB / 0.5903 GB, free: 14.97 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.451e-05/0.3797, allocations: 3.672 kB / 0.5903 GB, free: 14.97 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001119/0.3798, allocations: 25.34 kB / 0.5903 GB, free: 14.96 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.805e-06/0.3798, allocations: 3.438 kB / 0.5903 GB, free: 14.96 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001083/0.3799, allocations: 24.88 kB / 0.5903 GB, free: 14.95 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.057e-05/0.38, allocations: 8.391 kB / 0.5904 GB, free: 14.95 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.0001568/0.3801, allocations: 198.5 kB / 0.5905 GB, free: 14.76 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.181e-05/0.3802, allocations: 14.92 kB / 0.5906 GB, free: 14.76 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.621e-05/0.3802, allocations: 18.08 kB / 0.5906 GB, free: 14.74 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.964e-06/0.3802, allocations: 1.375 kB / 0.5906 GB, free: 14.74 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/0.3802, allocations: 1.375 kB / 0.5906 GB, free: 14.74 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/0.3802, allocations: 4.688 kB / 0.5906 GB, free: 14.74 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007814/0.381, allocations: 0.5912 MB / 0.5912 GB, free: 14.3 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.595e-06/0.381, allocations: 0.9375 kB / 0.5912 GB, free: 14.3 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.443e-05/0.3811, allocations: 17.44 kB / 0.5912 GB, free: 14.29 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.695e-06/0.3811, allocations: 1.172 kB / 0.5912 GB, free: 14.29 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.887e-05/0.3811, allocations: 5.844 kB / 0.5912 GB, free: 14.29 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.915e-06/0.3811, allocations: 1.438 kB / 0.5912 GB, free: 14.29 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.421e-06/0.3812, allocations: 3.938 kB / 0.5912 GB, free: 14.29 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000588/0.3818, allocations: 411.4 kB / 0.5916 GB, free: 14.03 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.936e-05/0.3818, allocations: 95.02 kB / 0.5917 GB, free: 13.93 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.451e-05/0.3819, allocations: 4.422 kB / 0.5917 GB, free: 13.93 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001189/0.382, allocations: 9.141 kB / 0.5917 GB, free: 13.93 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4e-05/0.382, allocations: 18.72 kB / 0.5917 GB, free: 13.91 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.18e-05/0.3821, allocations: 11.81 kB / 0.5917 GB, free: 13.91 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0001049/0.3822, allocations: 131.3 kB / 0.5918 GB, free: 13.82 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3822, allocations: 0 / 0.5918 GB, free: 13.82 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002963/0.3825, allocations: 39.48 kB / 0.5919 GB, free: 13.81 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.0009486/0.3834, allocations: 0.9741 MB / 0.5928 GB, free: 13 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0005632/0.384, allocations: 369 kB / 0.5932 GB, free: 12.71 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.384, allocations: 0 / 0.5932 GB, free: 12.71 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002838/0.3843, allocations: 211.4 kB / 0.5934 GB, free: 12.55 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003588/0.3847, allocations: 25.36 kB / 0.5934 GB, free: 12.55 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0026/0.3873, allocations: 2.146 MB / 0.5955 GB, free: 10.86 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002375/0.3875, allocations: 0.7089 MB / 0.5962 GB, free: 10.16 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 6.919e-05/0.3876, allocations: 23.67 kB / 0.5962 GB, free: 10.16 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.369e-05/0.3877, allocations: 37.22 kB / 0.5963 GB, free: 10.13 MB / 446.1 MB Notification: Performance of SimCode: time 2.9e-07/0.3877, allocations: 5.094 kB / 0.5963 GB, free: 10.12 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0124/0.4001, allocations: 3.327 MB / 0.5995 GB, free: 9.383 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001504/0.4003, allocations: 188.6 kB / 0.5997 GB, free: 9.129 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.793/2.194, allocations: 0.9688 kB / 0.5997 GB, free: 9.129 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)