Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.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: "" <> buildModelFMU(IBPSA.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_IO_Files_Examples_CSVWriter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="IBPSA_latest_IBPSA_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.001872/0.001872, allocations: 102 kB / 16.4 MB, free: 6.5 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.002025/0.002025, allocations: 193.2 kB / 17.34 MB, free: 5.742 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.926/1.926, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 1.218/1.218, allocations: 115.3 MB / 406.5 MB, free: 6.168 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002241/0.002241, allocations: 64.08 kB / 0.5572 GB, free: 32.43 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3324/0.3347, allocations: 76.18 MB / 0.6316 GB, free: 4.891 MB / 478.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.IO.Files.Examples.CSVWriter): time 0.005532/0.3403, allocations: 1.599 MB / 0.6331 GB, free: 3.277 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.001762/0.3421, allocations: 0.6118 MB / 0.6337 GB, free: 2.66 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001762/0.3424, allocations: 4 kB / 0.6337 GB, free: 2.656 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002649/0.3427, allocations: 31.78 kB / 0.6338 GB, free: 2.625 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003795/0.3431, allocations: 35.77 kB / 0.6338 GB, free: 2.59 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007748/0.3439, allocations: 115.7 kB / 0.6339 GB, free: 2.477 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005162/0.3444, allocations: 191.6 kB / 0.6341 GB, free: 2.289 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000193/0.3446, allocations: 29.09 kB / 0.6341 GB, free: 2.262 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003037/0.3449, allocations: 87.75 kB / 0.6342 GB, free: 2.176 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002368/0.3452, allocations: 87.66 kB / 0.6343 GB, free: 2.09 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 7.99e-05/0.3453, allocations: 16 kB / 0.6343 GB, free: 2.074 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001353/0.3454, allocations: 24 kB / 0.6343 GB, free: 2.051 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001404/0.3456, allocations: 31.89 kB / 0.6344 GB, free: 2.02 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001629/0.3458, allocations: 79.66 kB / 0.6344 GB, free: 1.941 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004615/0.3462, allocations: 174.3 kB / 0.6346 GB, free: 1.773 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.614e-06/0.3463, allocations: 0 / 0.6346 GB, free: 1.773 MB / 478.1 MB Notification: Performance of FrontEnd: time 2.605e-06/0.3463, allocations: 0 / 0.6346 GB, free: 1.773 MB / 478.1 MB Notification: Performance of Transformations before backend: time 1.082e-05/0.3463, allocations: 0 / 0.6346 GB, free: 1.773 MB / 478.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.001235/0.3475, allocations: 0.5454 MB / 0.6351 GB, free: 1.156 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.186e-05/0.3476, allocations: 16.02 kB / 0.6352 GB, free: 1.141 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.507e-05/0.3477, allocations: 38.75 kB / 0.6352 GB, free: 1.094 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001302/0.3479, allocations: 16.75 kB / 0.6352 GB, free: 1.078 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007192/0.3486, allocations: 240.7 kB / 0.6354 GB, free: 0.8047 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.442e-05/0.3487, allocations: 12.38 kB / 0.6354 GB, free: 0.793 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.773e-05/0.3487, allocations: 12.38 kB / 0.6355 GB, free: 0.7812 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004127/0.3491, allocations: 121.4 kB / 0.6356 GB, free: 0.6562 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.505e-05/0.3492, allocations: 0 / 0.6356 GB, free: 0.6562 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.444e-05/0.3492, allocations: 4 kB / 0.6356 GB, free: 0.6523 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.843e-06/0.3492, allocations: 0 / 0.6356 GB, free: 0.6523 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003042/0.3495, allocations: 79.88 kB / 0.6357 GB, free: 0.5742 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001098/0.3507, allocations: 420.5 kB / 0.6361 GB, free: 116 kB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003184/0.351, allocations: 86.53 kB / 0.6361 GB, free: 20 kB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002838/0.3513, allocations: 80.81 kB / 0.6362 GB, free: 15.94 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.652e-05/0.3513, allocations: 0 / 0.6362 GB, free: 15.94 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004252/0.3518, allocations: 178.8 kB / 0.6364 GB, free: 15.74 MB / 494.1 MB Notification: Performance of pre-optimization done (n=10): time 2.946e-06/0.3518, allocations: 0 / 0.6364 GB, free: 15.74 MB / 494.1 MB Notification: Performance of matching and sorting (n=10): time 0.001226/0.353, allocations: 348.9 kB / 0.6367 GB, free: 15.38 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001547/0.3532, allocations: 178.1 kB / 0.6369 GB, free: 15.17 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003925/0.3536, allocations: 174.6 kB / 0.6371 GB, free: 14.98 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 4.316e-05/0.3537, allocations: 33.7 kB / 0.6371 GB, free: 14.94 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001198/0.3538, allocations: 108.4 kB / 0.6372 GB, free: 14.83 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.575e-05/0.3539, allocations: 23.66 kB / 0.6372 GB, free: 14.8 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001295/0.354, allocations: 41.7 kB / 0.6373 GB, free: 14.76 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001862/0.3542, allocations: 330.8 kB / 0.6376 GB, free: 14.43 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002252/0.3545, allocations: 47.97 kB / 0.6376 GB, free: 14.38 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000293/0.3548, allocations: 102.8 kB / 0.6377 GB, free: 14.25 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005834/0.3554, allocations: 312.9 kB / 0.638 GB, free: 13.89 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.096e-05/0.3554, allocations: 4 kB / 0.638 GB, free: 13.88 MB / 494.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0009275/0.3563, allocations: 344.1 kB / 0.6383 GB, free: 13.52 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001455/0.3565, allocations: 122.7 kB / 0.6385 GB, free: 13.37 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.532e-05/0.3565, allocations: 4 kB / 0.6385 GB, free: 13.37 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.433e-05/0.3566, allocations: 0 / 0.6385 GB, free: 13.37 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001881/0.3568, allocations: 19.98 kB / 0.6385 GB, free: 13.35 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.154e-05/0.3568, allocations: 0 / 0.6385 GB, free: 13.35 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001812/0.357, allocations: 8.25 kB / 0.6385 GB, free: 13.34 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.622e-05/0.357, allocations: 19.98 kB / 0.6385 GB, free: 13.32 MB / 494.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.0003084/0.3573, allocations: 206.1 kB / 0.6387 GB, free: 13.1 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.311e-05/0.3574, allocations: 19.81 kB / 0.6387 GB, free: 13.08 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.31e-05/0.3575, allocations: 13.41 kB / 0.6387 GB, free: 13.06 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.35e-06/0.3575, allocations: 8.219 kB / 0.6387 GB, free: 13.05 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.174e-06/0.3575, allocations: 0 / 0.6387 GB, free: 13.05 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.977e-06/0.3576, allocations: 3.984 kB / 0.6388 GB, free: 13.05 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001363/0.3589, allocations: 0.5914 MB / 0.6393 GB, free: 12.39 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.891e-06/0.359, allocations: 0 / 0.6393 GB, free: 12.39 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001078/0.3591, allocations: 11.98 kB / 0.6393 GB, free: 12.38 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.095e-06/0.3591, allocations: 3.984 kB / 0.6393 GB, free: 12.37 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.586e-05/0.3591, allocations: 8 kB / 0.6394 GB, free: 12.36 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.888e-06/0.3592, allocations: 0 / 0.6394 GB, free: 12.36 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.521e-06/0.3592, allocations: 3.938 kB / 0.6394 GB, free: 12.36 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009553/0.3601, allocations: 406.7 kB / 0.6397 GB, free: 11.93 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.756e-05/0.3602, allocations: 88.92 kB / 0.6398 GB, free: 11.83 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.866e-05/0.3603, allocations: 4 kB / 0.6398 GB, free: 11.82 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002011/0.3605, allocations: 8 kB / 0.6398 GB, free: 11.82 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.928e-05/0.3606, allocations: 11.92 kB / 0.6399 GB, free: 11.8 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.075e-05/0.3607, allocations: 4 kB / 0.6399 GB, free: 11.8 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0002099/0.3609, allocations: 135.2 kB / 0.64 GB, free: 11.67 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.3609, allocations: 0 / 0.64 GB, free: 11.67 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0005666/0.3615, allocations: 40 kB / 0.64 GB, free: 11.63 MB / 494.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.001577/0.3631, allocations: 0.9594 MB / 0.641 GB, free: 10.64 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0008632/0.364, allocations: 357.4 kB / 0.6413 GB, free: 10.24 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.968e-06/0.364, allocations: 0 / 0.6413 GB, free: 10.24 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003779/0.3644, allocations: 206.8 kB / 0.6415 GB, free: 10.01 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006295/0.365, allocations: 30.67 kB / 0.6415 GB, free: 9.984 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004399/0.3694, allocations: 2.112 MB / 0.6436 GB, free: 7.723 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004461/0.3699, allocations: 0.7157 MB / 0.6443 GB, free: 6.98 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0001393/0.3701, allocations: 16.55 kB / 0.6443 GB, free: 6.965 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000113/0.3702, allocations: 35.42 kB / 0.6443 GB, free: 6.93 MB / 494.1 MB Notification: Performance of SimCode: time 1.082e-06/0.3702, allocations: 3.938 kB / 0.6443 GB, free: 6.926 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03979/0.41, allocations: 3.706 MB / 0.648 GB, free: 3.316 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.74/13.15, allocations: 352 / 0.648 GB, free: 3.316 MB / 494.1 MB (rm -f IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.CSVWriter.pipe ; mkfifo IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.CSVWriter.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.CSVWriter.pipe >> ../files/IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.CSVWriter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Utilities_IO_Files_Examples_CSVWriter_fmu --startTime=-1.21 --stopTime=10 --timeout=50 --tolerance=1e-06 IBPSA_latest_IBPSA_Utilities_IO_Files_Examples_CSVWriter.fmu > IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1)