Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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.001395/0.001395, allocations: 118.9 kB / 17.17 MB, free: 5.977 MB / 14.72 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.001671/0.001671, allocations: 211.3 kB / 20.13 MB, free: 3.035 MB / 14.72 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 1.5/1.5, allocations: 230.6 MB / 253.5 MB, free: 15.11 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo): time 0.002527/0.002527, allocations: 282.5 kB / 309.8 MB, free: 3.453 MB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo): time 1.063/1.063, allocations: 180.6 MB / 0.5338 GB, free: 12.8 MB / 398.1 MB " [Timeout remaining time 179] Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 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(BuildingSystems.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_IO_Files_Examples_CSVWriter",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_IO_Files_Examples_CSVWriter",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: NcDataReader2 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: BuildingSystems 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.002988/0.002988, allocations: 95.86 kB / 0.7347 GB, free: 2.543 MB / 0.4981 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5908/0.5938, allocations: 95.34 MB / 0.8278 GB, free: 3.055 MB / 0.5762 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.IO.Files.Examples.CSVWriter): time 0.002756/0.5966, allocations: 1.638 MB / 0.8294 GB, free: 1.926 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.001144/0.5977, allocations: 0.6838 MB / 0.83 GB, free: 1.457 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.88e-05/0.5978, allocations: 4.969 kB / 0.83 GB, free: 1.453 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0001951/0.598, allocations: 24.66 kB / 0.8301 GB, free: 1.434 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0002342/0.5983, allocations: 45.28 kB / 0.8301 GB, free: 1.406 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004452/0.5987, allocations: 127.6 kB / 0.8302 GB, free: 1.336 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0002705/0.599, allocations: 186.4 kB / 0.8304 GB, free: 1.254 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000129/0.5991, allocations: 28.61 kB / 0.8304 GB, free: 1.234 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002008/0.5993, allocations: 83.3 kB / 0.8305 GB, free: 1.207 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001363/0.5994, allocations: 84.72 kB / 0.8306 GB, free: 1.172 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 3.783e-05/0.5995, allocations: 17.23 kB / 0.8306 GB, free: 1.168 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 9.157e-05/0.5996, allocations: 29.53 kB / 0.8306 GB, free: 1.164 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 9.216e-05/0.5997, allocations: 36.62 kB / 0.8307 GB, free: 1.145 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 9.269e-05/0.5998, allocations: 73.06 kB / 0.8308 GB, free: 1.105 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0002864/0.6, allocations: 171.6 kB / 0.8309 GB, free: 1.039 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/0.6, allocations: 3.938 kB / 0.8309 GB, free: 1.035 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.944e-06/0.6, allocations: 0 / 0.8309 GB, free: 1.035 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 9.298e-06/0.6001, allocations: 6.75 kB / 0.8309 GB, free: 1.031 MB / 0.5762 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.0006881/0.6007, allocations: 0.5657 MB / 0.8315 GB, free: 488 kB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.26e-05/0.6008, allocations: 10.5 kB / 0.8315 GB, free: 488 kB / 0.5762 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.834e-05/0.6008, allocations: 192 / 0.8315 GB, free: 488 kB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.203e-05/0.6008, allocations: 41.59 kB / 0.8315 GB, free: 444 kB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002145/0.6011, allocations: 23.09 kB / 0.8315 GB, free: 440 kB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003031/0.6014, allocations: 245.4 kB / 0.8318 GB, free: 200 kB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.647e-05/0.6014, allocations: 11.64 kB / 0.8318 GB, free: 196 kB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.484e-05/0.6014, allocations: 14.62 kB / 0.8318 GB, free: 192 kB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002752/0.6017, allocations: 111.4 kB / 0.8319 GB, free: 140 kB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.032e-05/0.6017, allocations: 3.984 kB / 0.8319 GB, free: 136 kB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.634e-05/0.6017, allocations: 6.688 kB / 0.8319 GB, free: 132 kB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.58e-06/0.6017, allocations: 0.5625 kB / 0.8319 GB, free: 132 kB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001958/0.6019, allocations: 77.28 kB / 0.832 GB, free: 108 kB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007093/0.6026, allocations: 411.6 kB / 0.8324 GB, free: 15.79 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002192/0.6028, allocations: 80.73 kB / 0.8325 GB, free: 15.74 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001597/0.603, allocations: 67.17 kB / 0.8325 GB, free: 15.72 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 2.423e-05/0.603, allocations: 10.77 kB / 0.8325 GB, free: 15.71 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002859/0.6033, allocations: 171.9 kB / 0.8327 GB, free: 15.58 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=10): time 1.463e-06/0.6033, allocations: 0 / 0.8327 GB, free: 15.58 MB / 0.5919 GB Notification: Performance of matching and sorting (n=10): time 0.0007987/0.6041, allocations: 359 kB / 0.833 GB, free: 15.41 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001151/0.6042, allocations: 166.6 kB / 0.8332 GB, free: 15.22 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001883/0.6044, allocations: 189.2 kB / 0.8334 GB, free: 15.09 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 3.194e-05/0.6044, allocations: 28.3 kB / 0.8334 GB, free: 15.05 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 9.183e-05/0.6045, allocations: 111.3 kB / 0.8335 GB, free: 14.95 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 3.437e-05/0.6046, allocations: 26.45 kB / 0.8335 GB, free: 14.93 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.994e-05/0.6046, allocations: 43.22 kB / 0.8336 GB, free: 14.9 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001789/0.6048, allocations: 326.3 kB / 0.8339 GB, free: 14.58 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001457/0.605, allocations: 51.61 kB / 0.8339 GB, free: 14.57 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001939/0.6052, allocations: 108.4 kB / 0.8341 GB, free: 14.48 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003803/0.6055, allocations: 310.3 kB / 0.8343 GB, free: 14.2 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.396e-06/0.6056, allocations: 0.7031 kB / 0.8343 GB, free: 14.2 MB / 0.5919 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005729/0.6061, allocations: 350.2 kB / 0.8347 GB, free: 13.98 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001027/0.6062, allocations: 121.7 kB / 0.8348 GB, free: 13.85 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.022e-06/0.6062, allocations: 2.203 kB / 0.8348 GB, free: 13.85 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.995e-05/0.6063, allocations: 1.562 kB / 0.8348 GB, free: 13.85 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001228/0.6064, allocations: 25.98 kB / 0.8348 GB, free: 13.84 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.965e-06/0.6064, allocations: 2.391 kB / 0.8348 GB, free: 13.84 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001009/0.6065, allocations: 17.53 kB / 0.8348 GB, free: 13.83 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.113e-05/0.6065, allocations: 24.84 kB / 0.8349 GB, free: 13.82 MB / 0.5919 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.0001863/0.6067, allocations: 191.7 kB / 0.8351 GB, free: 13.63 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.935e-05/0.6067, allocations: 21.47 kB / 0.8351 GB, free: 13.62 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.549e-05/0.6068, allocations: 19.88 kB / 0.8351 GB, free: 13.61 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.316e-06/0.6068, allocations: 1.969 kB / 0.8351 GB, free: 13.61 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/0.6068, allocations: 0 / 0.8351 GB, free: 13.61 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.769e-06/0.6068, allocations: 0.7969 kB / 0.8351 GB, free: 13.61 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008443/0.6076, allocations: 0.5921 MB / 0.8357 GB, free: 13.16 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.884e-06/0.6076, allocations: 1.625 kB / 0.8357 GB, free: 13.16 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.801e-05/0.6077, allocations: 14.58 kB / 0.8357 GB, free: 13.16 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.803e-06/0.6077, allocations: 0 / 0.8357 GB, free: 13.16 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.198e-05/0.6077, allocations: 7.594 kB / 0.8357 GB, free: 13.16 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.719e-06/0.6077, allocations: 7.844 kB / 0.8357 GB, free: 13.15 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.6077, allocations: 0 / 0.8357 GB, free: 13.15 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006239/0.6084, allocations: 415.8 kB / 0.8361 GB, free: 12.89 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 5.825e-05/0.6084, allocations: 91.59 kB / 0.8362 GB, free: 12.78 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.403e-05/0.6085, allocations: 3.719 kB / 0.8362 GB, free: 12.78 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001298/0.6086, allocations: 13 kB / 0.8362 GB, free: 12.78 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.767e-05/0.6086, allocations: 9.547 kB / 0.8362 GB, free: 12.77 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.985e-05/0.6087, allocations: 7.062 kB / 0.8362 GB, free: 12.77 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0001158/0.6088, allocations: 129.8 kB / 0.8363 GB, free: 12.68 MB / 0.5919 GB Notification: Performance of sort global known variables: time 9e-08/0.6088, allocations: 1.656 kB / 0.8363 GB, free: 12.68 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0002908/0.6091, allocations: 30.3 kB / 0.8364 GB, free: 12.68 MB / 0.5919 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.001105/0.6102, allocations: 0.9765 MB / 0.8373 GB, free: 11.88 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.000586/0.6108, allocations: 354.6 kB / 0.8377 GB, free: 11.59 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.6108, allocations: 0 / 0.8377 GB, free: 11.59 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0002676/0.611, allocations: 189.3 kB / 0.8378 GB, free: 11.44 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003159/0.6113, allocations: 23.06 kB / 0.8379 GB, free: 11.43 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002802/0.6141, allocations: 2.123 MB / 0.8399 GB, free: 9.766 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000372/0.6145, allocations: 0.7144 MB / 0.8406 GB, free: 9.062 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 7.48e-05/0.6146, allocations: 19.25 kB / 0.8407 GB, free: 9.062 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.684e-05/0.6147, allocations: 37.08 kB / 0.8407 GB, free: 9.035 MB / 0.5919 GB Notification: Performance of SimCode: time 2.9e-07/0.6147, allocations: 0 / 0.8407 GB, free: 9.035 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02233/0.637, allocations: 3.734 MB / 0.8443 GB, free: 8.367 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.268/8.905, allocations: 8.031 kB / 0.8443 GB, free: 8.363 MB / 0.5919 GB " [Timeout remaining time 651] (rm -f BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.CSVWriter.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.CSVWriter.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.CSVWriter.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.CSVWriter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_IO_Files_Examples_CSVWriter_fmu --startTime=-1.21 --stopTime=10 --stepSize=0.004484 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_IO_Files_Examples_CSVWriter.fmu > BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 12.857788667024579] Failed to read output from testmodel.py, exit status != 0: 9.034523649024777 9.058243744 8.45426916 Calling exit ...