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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0007494/0.0007494, allocations: 109.9 kB / 18.93 MB, free: 1.27 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0008751/0.0008751, allocations: 217.7 kB / 22.26 MB, free: 3.703 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.98/0.98, allocations: 230.6 MB / 256 MB, free: 9.816 MB / 202.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/package.mo", uses=false) [Timeout 180] "[/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/Examples/PPD12/Structure.mo:531:21-531:190:writable] Warning: Lexer treating \\ as \\\\, since \\e is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/Examples/PPD12/Structure.mo:531:21-531:198:writable] Warning: Lexer treating \\ as \\\\, since \\< is not a valid Modelica escape sequence. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/package.mo): time 0.7853/0.7853, allocations: 203.8 MB / 0.5042 GB, free: 10.72 MB / 410.7 MB " [Timeout remaining time 179] Using package IDEAS with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(IDEAS.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="IDEAS_dev_IDEAS_Utilities_IO_Files_Examples_CSVWriter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="IDEAS_dev_IDEAS_Utilities_IO_Files_Examples_CSVWriter",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: IDEAS requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0009216/0.0009216, allocations: 70.84 kB / 0.7182 GB, free: 4.355 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5492/0.5502, allocations: 102 MB / 0.8179 GB, free: 1.262 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.CSVWriter): time 0.002055/0.5522, allocations: 1.637 MB / 0.8195 GB, free: 144 kB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0007221/0.5529, allocations: 0.7008 MB / 0.8201 GB, free: 15.66 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.786e-05/0.553, allocations: 2.125 kB / 0.8201 GB, free: 15.66 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0001469/0.5531, allocations: 24.83 kB / 0.8202 GB, free: 15.64 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0001897/0.5533, allocations: 47.52 kB / 0.8202 GB, free: 15.61 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002784/0.5536, allocations: 126 kB / 0.8203 GB, free: 15.54 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0002183/0.5538, allocations: 192.8 kB / 0.8205 GB, free: 15.46 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001034/0.5539, allocations: 18.12 kB / 0.8205 GB, free: 15.45 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001658/0.5541, allocations: 90.19 kB / 0.8206 GB, free: 15.41 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001195/0.5542, allocations: 89.02 kB / 0.8207 GB, free: 15.37 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 3.269e-05/0.5543, allocations: 17.3 kB / 0.8207 GB, free: 15.37 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 7.519e-05/0.5543, allocations: 38.59 kB / 0.8208 GB, free: 15.36 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 7.617e-05/0.5544, allocations: 23.44 kB / 0.8208 GB, free: 15.35 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 8.416e-05/0.5545, allocations: 82.7 kB / 0.8209 GB, free: 15.3 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0002427/0.5547, allocations: 170.3 kB / 0.821 GB, free: 15.23 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 4.528e-06/0.5547, allocations: 0 / 0.821 GB, free: 15.23 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.984e-06/0.5547, allocations: 4 kB / 0.821 GB, free: 15.23 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 6.863e-06/0.5547, allocations: 1.891 kB / 0.821 GB, free: 15.23 MB / 0.6198 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.0005763/0.5553, allocations: 0.4937 MB / 0.8215 GB, free: 14.77 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.08e-05/0.5554, allocations: 8.625 kB / 0.8215 GB, free: 14.77 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.416e-05/0.5554, allocations: 38.94 kB / 0.8216 GB, free: 14.73 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001461/0.5555, allocations: 28.45 kB / 0.8216 GB, free: 14.72 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002952/0.5558, allocations: 182.1 kB / 0.8218 GB, free: 14.56 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.839e-05/0.5559, allocations: 7.688 kB / 0.8218 GB, free: 14.55 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.867e-05/0.5559, allocations: 11.28 kB / 0.8218 GB, free: 14.55 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002293/0.5561, allocations: 119.1 kB / 0.8219 GB, free: 14.5 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.536e-06/0.5561, allocations: 1.719 kB / 0.8219 GB, free: 14.5 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.363e-05/0.5561, allocations: 1.531 kB / 0.8219 GB, free: 14.5 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.057e-06/0.5561, allocations: 6.375 kB / 0.8219 GB, free: 14.49 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001177/0.5563, allocations: 68.97 kB / 0.822 GB, free: 14.48 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005422/0.5568, allocations: 393.2 kB / 0.8223 GB, free: 14.18 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000141/0.5569, allocations: 77.83 kB / 0.8224 GB, free: 14.14 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001035/0.5571, allocations: 66.69 kB / 0.8225 GB, free: 14.12 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 2.771e-05/0.5571, allocations: 9.328 kB / 0.8225 GB, free: 14.11 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001898/0.5573, allocations: 182.2 kB / 0.8227 GB, free: 13.97 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=10): time 1.253e-06/0.5573, allocations: 0 / 0.8227 GB, free: 13.97 MB / 0.6198 GB Notification: Performance of matching and sorting (n=10): time 0.0005009/0.5578, allocations: 355.6 kB / 0.823 GB, free: 13.81 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.938e-05/0.5579, allocations: 172.5 kB / 0.8232 GB, free: 13.61 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001406/0.558, allocations: 181.3 kB / 0.8233 GB, free: 13.48 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.86e-05/0.558, allocations: 29.98 kB / 0.8234 GB, free: 13.45 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 6.106e-05/0.5581, allocations: 116.4 kB / 0.8235 GB, free: 13.34 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 2.466e-05/0.5581, allocations: 24.45 kB / 0.8235 GB, free: 13.32 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.652e-05/0.5582, allocations: 41.08 kB / 0.8235 GB, free: 13.3 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 8.476e-05/0.5582, allocations: 330.9 kB / 0.8239 GB, free: 12.97 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.936e-05/0.5583, allocations: 51.14 kB / 0.8239 GB, free: 12.96 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002784/0.5586, allocations: 105 kB / 0.824 GB, free: 12.88 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002203/0.5588, allocations: 308.6 kB / 0.8243 GB, free: 12.59 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.5588, allocations: 1.344 kB / 0.8243 GB, free: 12.59 MB / 0.6198 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003602/0.5592, allocations: 354.8 kB / 0.8246 GB, free: 12.37 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 6.087e-05/0.5593, allocations: 122.8 kB / 0.8248 GB, free: 12.24 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.563e-06/0.5593, allocations: 2.5 kB / 0.8248 GB, free: 12.24 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.385e-05/0.5593, allocations: 2.562 kB / 0.8248 GB, free: 12.24 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.174e-05/0.5594, allocations: 16.11 kB / 0.8248 GB, free: 12.24 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.059e-05/0.5594, allocations: 3.047 kB / 0.8248 GB, free: 12.24 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.778e-05/0.5594, allocations: 13.95 kB / 0.8248 GB, free: 12.23 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.196e-05/0.5595, allocations: 13.55 kB / 0.8248 GB, free: 12.23 MB / 0.6198 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.0001289/0.5596, allocations: 205.3 kB / 0.825 GB, free: 12.03 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.327e-05/0.5596, allocations: 17.88 kB / 0.825 GB, free: 12.02 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.422e-05/0.5596, allocations: 14.95 kB / 0.825 GB, free: 12 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.367e-06/0.5596, allocations: 1.125 kB / 0.825 GB, free: 12 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.399e-06/0.5596, allocations: 0 / 0.825 GB, free: 12 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.378e-06/0.5597, allocations: 2.016 kB / 0.825 GB, free: 12 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006027/0.5603, allocations: 0.5633 MB / 0.8256 GB, free: 11.59 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/0.5603, allocations: 9.734 kB / 0.8256 GB, free: 11.59 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.656e-05/0.5603, allocations: 10.02 kB / 0.8256 GB, free: 11.59 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.767e-06/0.5603, allocations: 1.984 kB / 0.8256 GB, free: 11.59 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.236e-05/0.5603, allocations: 6.688 kB / 0.8256 GB, free: 11.59 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.144e-06/0.5603, allocations: 5.156 kB / 0.8256 GB, free: 11.58 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/0.5603, allocations: 7.922 kB / 0.8256 GB, free: 11.57 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004073/0.5607, allocations: 415.5 kB / 0.826 GB, free: 11.31 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 1.428e-05/0.5608, allocations: 12.95 kB / 0.826 GB, free: 11.3 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.424e-05/0.5608, allocations: 4.953 kB / 0.826 GB, free: 11.3 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.824e-05/0.5608, allocations: 10.88 kB / 0.826 GB, free: 11.3 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.588e-05/0.5609, allocations: 14.58 kB / 0.8261 GB, free: 11.29 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.373e-05/0.5609, allocations: 7.922 kB / 0.8261 GB, free: 11.29 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 7.831e-05/0.561, allocations: 137 kB / 0.8262 GB, free: 11.2 MB / 0.6198 GB Notification: Performance of sort global known variables: time 9e-08/0.561, allocations: 0 / 0.8262 GB, free: 11.2 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0001946/0.5612, allocations: 30.2 kB / 0.8262 GB, free: 11.2 MB / 0.6198 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.0006353/0.5618, allocations: 0.9678 MB / 0.8272 GB, free: 10.39 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0003181/0.5621, allocations: 361.4 kB / 0.8275 GB, free: 10.1 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 1.744e-06/0.5621, allocations: 0 / 0.8275 GB, free: 10.1 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0001357/0.5623, allocations: 181.4 kB / 0.8277 GB, free: 9.953 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002114/0.5625, allocations: 26.97 kB / 0.8277 GB, free: 9.941 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001858/0.5643, allocations: 2.117 MB / 0.8298 GB, free: 8.277 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002333/0.5646, allocations: 0.7145 MB / 0.8305 GB, free: 7.574 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 6.316e-05/0.5646, allocations: 19.61 kB / 0.8305 GB, free: 7.574 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.236e-05/0.5647, allocations: 37.52 kB / 0.8305 GB, free: 7.547 MB / 0.6198 GB Notification: Performance of SimCode: time 7.61e-07/0.5647, allocations: 1.188 kB / 0.8305 GB, free: 7.547 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01901/0.5837, allocations: 3.844 MB / 0.8343 GB, free: 6.852 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.811/7.395, allocations: 3.5 kB / 0.8343 GB, free: 6.852 MB / 0.6198 GB " [Timeout remaining time 653] (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 & python3 -m fmpy simulate --output-file IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.CSVWriter_res.csv --start-time -1.21 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004484 IDEAS_dev_IDEAS_Utilities_IO_Files_Examples_CSVWriter.fmu > IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 10.482412577839568] Failed to read output from testmodel.py, exit status != 0: 7.473225296009332 7.484855818 6.928141922 Calling exit ...