Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.Printer.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.Printer,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Utilities_IO_Files_Examples_Printer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.Printer,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Utilities_IO_Files_Examples_Printer",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.413/1.413, allocations: 249.5 MB / 257 MB, free: 6.969 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001079/0.001079, allocations: 172.9 kB / 316.3 MB, free: 3.23 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.871/1.871, allocations: 205.3 MB / 0.5671 GB, free: 15.88 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008839/0.0008839, allocations: 101.6 kB / 0.6714 GB, free: 4.992 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.288e-05/2.291e-05, allocations: 4 kB / 0.7815 GB, free: 102.6 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2122/0.2122, allocations: 106.3 MB / 0.8853 GB, free: 12.18 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7505/0.9628, allocations: 133.7 MB / 1.016 GB, free: 3.742 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002211/0.963, allocations: 83.44 kB / 1.016 GB, free: 3.695 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.008559/0.9716, allocations: 2.964 MB / 1.019 GB, free: 1.172 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.062e-06/0.9716, allocations: 4 kB / 1.019 GB, free: 1.168 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 9.958e-06/0.9717, allocations: 0 / 1.019 GB, free: 1.168 MB / 0.6355 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0006519/0.9723, allocations: 0.5165 MB / 1.019 GB, free: 0.5977 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 3.993e-05/0.9724, allocations: 8.031 kB / 1.019 GB, free: 0.5898 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.15e-05/0.9724, allocations: 15.91 kB / 1.019 GB, free: 0.5742 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002344/0.9727, allocations: 229 kB / 1.02 GB, free: 328 kB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.324e-05/0.9727, allocations: 0 / 1.02 GB, free: 328 kB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.131e-05/0.9727, allocations: 8 kB / 1.02 GB, free: 320 kB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.754e-05/0.9728, allocations: 27.62 kB / 1.02 GB, free: 304 kB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001641/0.973, allocations: 99.44 kB / 1.02 GB, free: 208 kB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.284e-06/0.973, allocations: 0 / 1.02 GB, free: 208 kB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.647e-05/0.973, allocations: 3.812 kB / 1.02 GB, free: 208 kB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.861e-06/0.973, allocations: 4 kB / 1.02 GB, free: 204 kB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005978/0.9736, allocations: 447.5 kB / 1.02 GB, free: 15.75 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001178/0.9738, allocations: 63.47 kB / 1.02 GB, free: 15.68 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.93e-05/0.9738, allocations: 37.03 kB / 1.02 GB, free: 15.64 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 2.222e-05/0.9739, allocations: 0 / 1.02 GB, free: 15.64 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001862/0.9741, allocations: 127.5 kB / 1.02 GB, free: 15.52 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=12): time 1.373e-06/0.9741, allocations: 0 / 1.02 GB, free: 15.52 MB / 0.6511 GB Notification: Performance of matching and sorting (n=12): time 0.0002313/0.9743, allocations: 108.2 kB / 1.02 GB, free: 15.42 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.235e-05/0.9744, allocations: 84.88 kB / 1.021 GB, free: 15.32 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001256/0.9745, allocations: 152.4 kB / 1.021 GB, free: 15.18 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 2.485e-05/0.9745, allocations: 33.39 kB / 1.021 GB, free: 15.14 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 6.794e-05/0.9746, allocations: 106.9 kB / 1.021 GB, free: 15.05 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 3.386e-05/0.9746, allocations: 31.09 kB / 1.021 GB, free: 15.02 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.921e-06/0.9747, allocations: 4 kB / 1.021 GB, free: 15.02 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001213/0.9748, allocations: 326 kB / 1.021 GB, free: 14.7 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.507e-05/0.9748, allocations: 15.12 kB / 1.021 GB, free: 14.69 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.943e-05/0.9749, allocations: 97.16 kB / 1.021 GB, free: 14.57 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.126e-05/0.975, allocations: 35.17 kB / 1.021 GB, free: 14.54 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.975, allocations: 0 / 1.021 GB, free: 14.54 MB / 0.6511 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001655/0.9752, allocations: 115.8 kB / 1.021 GB, free: 14.43 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.513e-05/0.9752, allocations: 4 kB / 1.021 GB, free: 14.43 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.532e-06/0.9752, allocations: 4 kB / 1.021 GB, free: 14.43 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.322e-05/0.9752, allocations: 4 kB / 1.021 GB, free: 14.42 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001158/0.9753, allocations: 19.92 kB / 1.021 GB, free: 14.4 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.626e-06/0.9754, allocations: 4 kB / 1.021 GB, free: 14.4 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001029/0.9755, allocations: 28.16 kB / 1.022 GB, free: 14.37 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.202e-05/0.9755, allocations: 4 kB / 1.022 GB, free: 14.37 MB / 0.6511 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 13 ($PRE.pri2.firstTrigger,pri2.firstTrigger,$PRE.pri1.firstTrigger,pri1.firstTrigger,$whenCondition4,$whenCondition2,pri1.sampleTrigger,$whenCondition3,pri2.sampleTrigger,$PRE.pri3.firstTrigger,pri3.firstTrigger,$whenCondition1,pri3.sampleTrigger) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.785e-05/0.9756, allocations: 116.8 kB / 1.022 GB, free: 14.25 MB / 0.6511 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001541/0.9757, allocations: 107.4 kB / 1.022 GB, free: 14.15 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.258e-05/0.9758, allocations: 15.8 kB / 1.022 GB, free: 14.14 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.57e-05/0.9758, allocations: 17.22 kB / 1.022 GB, free: 14.12 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.477e-06/0.9758, allocations: 7.953 kB / 1.022 GB, free: 14.12 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.008e-06/0.9759, allocations: 4 kB / 1.022 GB, free: 14.11 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.358e-05/0.9759, allocations: 3.984 kB / 1.022 GB, free: 14.11 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004405/0.9763, allocations: 465 kB / 1.022 GB, free: 13.65 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.9763, allocations: 288 / 1.022 GB, free: 13.65 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.128e-05/0.9764, allocations: 15.98 kB / 1.022 GB, free: 13.63 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.032e-06/0.9764, allocations: 7.953 kB / 1.022 GB, free: 13.62 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.03e-05/0.9765, allocations: 7.938 kB / 1.022 GB, free: 13.62 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.412e-06/0.9765, allocations: 0 / 1.022 GB, free: 13.62 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.9765, allocations: 0 / 1.022 GB, free: 13.62 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002351/0.9767, allocations: 301.1 kB / 1.023 GB, free: 13.32 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 4.673e-05/0.9768, allocations: 92.88 kB / 1.023 GB, free: 13.21 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.968e-05/0.9768, allocations: 0 / 1.023 GB, free: 13.21 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001765/0.977, allocations: 23.98 kB / 1.023 GB, free: 13.19 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.343e-05/0.977, allocations: 11.67 kB / 1.023 GB, free: 13.18 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.636e-05/0.9771, allocations: 11.98 kB / 1.023 GB, free: 13.17 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 7.484e-05/0.9772, allocations: 109.6 kB / 1.023 GB, free: 13.07 MB / 0.6511 GB Notification: Performance of sort global known variables: time 1.5e-07/0.9772, allocations: 0 / 1.023 GB, free: 13.07 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0003274/0.9775, allocations: 39.48 kB / 1.023 GB, free: 13.04 MB / 0.6511 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 10 (pri3.sampleTrigger,$whenCondition1,pri3.firstTrigger,pri2.sampleTrigger,pri1.sampleTrigger,$whenCondition4,$whenCondition3,$whenCondition2,pri1.firstTrigger,pri2.firstTrigger) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008599/0.9784, allocations: 0.9894 MB / 1.024 GB, free: 12.07 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0001581/0.9785, allocations: 65.42 kB / 1.024 GB, free: 12.02 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.9785, allocations: 4.5 kB / 1.024 GB, free: 12.01 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 6.462e-05/0.9786, allocations: 31.5 kB / 1.024 GB, free: 11.99 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002409/0.9789, allocations: 19.41 kB / 1.024 GB, free: 11.97 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005485/0.9794, allocations: 207.4 kB / 1.024 GB, free: 11.75 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003024/0.9797, allocations: 0.7197 MB / 1.025 GB, free: 11 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 6.766e-05/0.9798, allocations: 24.53 kB / 1.025 GB, free: 10.98 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.626e-05/0.9799, allocations: 37.8 kB / 1.025 GB, free: 10.96 MB / 0.6511 GB Notification: Performance of SimCode: time 3.31e-07/0.9799, allocations: 0 / 1.025 GB, free: 10.96 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0217/1.002, allocations: 2.726 MB / 1.028 GB, free: 8.262 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002282/1.002, allocations: 171.3 kB / 1.028 GB, free: 8.07 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.516/2.518, allocations: 0 / 1.028 GB, free: 8.07 MB / 0.6511 GB (rm -f Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.Printer.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.Printer.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Utilities_IO_Files_Examples_Printer_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Utilities_IO_Files_Examples_Printer.fmu > Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.Printer.pipe 2>&1)