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.51/1.51, allocations: 249.3 MB / 261.8 MB, free: 5.887 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.001046/0.001046, allocations: 178.1 kB / 321.3 MB, free: 14.65 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.713/1.713, allocations: 205.2 MB / 0.572 GB, free: 10.63 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.0008255/0.0008256, allocations: 90.53 kB / 0.6764 GB, free: 15.61 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 3.436e-05/3.441e-05, allocations: 0 / 0.788 GB, free: 97.02 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.222/0.222, allocations: 106.3 MB / 0.8919 GB, free: 6.59 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7284/0.9505, allocations: 133.4 MB / 1.022 GB, free: 1.332 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003024/0.9508, allocations: 85.75 kB / 1.022 GB, free: 1.285 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.01286/0.9637, allocations: 2.985 MB / 1.025 GB, free: 14.71 MB / 0.6511 GB Notification: Performance of FrontEnd: time 2.615e-06/0.9638, allocations: 0 / 1.025 GB, free: 14.71 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 2.033e-05/0.9638, allocations: 4 kB / 1.025 GB, free: 14.71 MB / 0.6511 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.001037/0.9649, allocations: 0.5174 MB / 1.026 GB, free: 14.14 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 7.525e-05/0.965, allocations: 12.03 kB / 1.026 GB, free: 14.12 MB / 0.6511 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.973e-05/0.965, allocations: 38.05 kB / 1.026 GB, free: 14.08 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.067e-05/0.9651, allocations: 11.91 kB / 1.026 GB, free: 14.07 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000395/0.9655, allocations: 224.8 kB / 1.026 GB, free: 13.82 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.081e-05/0.9656, allocations: 8 kB / 1.026 GB, free: 13.81 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.162e-05/0.9656, allocations: 7.5 kB / 1.026 GB, free: 13.81 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003604/0.966, allocations: 113 kB / 1.026 GB, free: 13.71 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.157e-06/0.966, allocations: 0 / 1.026 GB, free: 13.71 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.922e-05/0.966, allocations: 3.984 kB / 1.026 GB, free: 13.7 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.939e-06/0.9661, allocations: 4 kB / 1.026 GB, free: 13.7 MB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001261/0.9662, allocations: 32.5 kB / 1.026 GB, free: 13.68 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000939/0.9671, allocations: 475.7 kB / 1.027 GB, free: 13.2 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000168/0.9673, allocations: 67.59 kB / 1.027 GB, free: 13.12 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.469e-05/0.9674, allocations: 32.66 kB / 1.027 GB, free: 13.09 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 3.728e-05/0.9675, allocations: 7.969 kB / 1.027 GB, free: 13.09 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002932/0.9678, allocations: 127.8 kB / 1.027 GB, free: 12.96 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=12): time 1.893e-06/0.9678, allocations: 3.938 kB / 1.027 GB, free: 12.96 MB / 0.6511 GB Notification: Performance of matching and sorting (n=12): time 0.0003931/0.9682, allocations: 117.6 kB / 1.027 GB, free: 12.86 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.905e-05/0.9683, allocations: 81.05 kB / 1.027 GB, free: 12.76 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001925/0.9685, allocations: 151.8 kB / 1.027 GB, free: 12.61 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 3.331e-05/0.9685, allocations: 29.39 kB / 1.027 GB, free: 12.58 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 9.283e-05/0.9686, allocations: 109.2 kB / 1.027 GB, free: 12.48 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 4.926e-05/0.9687, allocations: 27.42 kB / 1.027 GB, free: 12.46 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.364e-06/0.9687, allocations: 0 / 1.027 GB, free: 12.46 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001744/0.9689, allocations: 329.5 kB / 1.028 GB, free: 12.14 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.965e-05/0.969, allocations: 27.3 kB / 1.028 GB, free: 12.12 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001537/0.9692, allocations: 89.56 kB / 1.028 GB, free: 12 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.73e-05/0.9693, allocations: 35.23 kB / 1.028 GB, free: 11.98 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.996e-06/0.9693, allocations: 4 kB / 1.028 GB, free: 11.97 MB / 0.6511 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003002/0.9696, allocations: 134 kB / 1.028 GB, free: 11.86 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 2.525e-05/0.9696, allocations: 8 kB / 1.028 GB, free: 11.85 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.865e-06/0.9696, allocations: 96 / 1.028 GB, free: 11.85 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.51e-05/0.9697, allocations: 11.92 kB / 1.028 GB, free: 11.84 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001803/0.9699, allocations: 27.88 kB / 1.028 GB, free: 11.81 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.216e-05/0.9699, allocations: 288 / 1.028 GB, free: 11.81 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001571/0.9701, allocations: 31.2 kB / 1.028 GB, free: 11.78 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.172e-05/0.9701, allocations: 8 kB / 1.028 GB, free: 11.77 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 0.0001297/0.9702, allocations: 111.8 kB / 1.028 GB, free: 11.66 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.71e-05/0.9703, allocations: 11.91 kB / 1.028 GB, free: 11.65 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.522e-05/0.9704, allocations: 24.33 kB / 1.028 GB, free: 11.64 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.883e-06/0.9704, allocations: 4 kB / 1.028 GB, free: 11.64 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.179e-05/0.9704, allocations: 3.953 kB / 1.028 GB, free: 11.63 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.119e-06/0.9704, allocations: 4 kB / 1.028 GB, free: 11.63 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000755/0.9712, allocations: 0.4944 MB / 1.029 GB, free: 11.12 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.468e-06/0.9712, allocations: 0 / 1.029 GB, free: 11.12 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000116/0.9713, allocations: 19.92 kB / 1.029 GB, free: 11.1 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.057e-06/0.9713, allocations: 7.953 kB / 1.029 GB, free: 11.09 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.575e-05/0.9714, allocations: 3.5 kB / 1.029 GB, free: 11.09 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.068e-06/0.9714, allocations: 4 kB / 1.029 GB, free: 11.09 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.9714, allocations: 3.938 kB / 1.029 GB, free: 11.09 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003791/0.9718, allocations: 294.9 kB / 1.029 GB, free: 10.8 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 7.813e-05/0.9719, allocations: 96.81 kB / 1.029 GB, free: 10.68 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.813e-05/0.9719, allocations: 0 / 1.029 GB, free: 10.68 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002726/0.9722, allocations: 31.28 kB / 1.029 GB, free: 10.66 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.805e-05/0.9723, allocations: 7.984 kB / 1.029 GB, free: 10.65 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.12e-05/0.9723, allocations: 8 kB / 1.029 GB, free: 10.64 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.000118/0.9725, allocations: 116.8 kB / 1.029 GB, free: 10.54 MB / 0.6511 GB Notification: Performance of sort global known variables: time 1.9e-07/0.9725, allocations: 0 / 1.029 GB, free: 10.54 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0005539/0.973, allocations: 47.23 kB / 1.029 GB, free: 10.5 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.001222/0.9743, allocations: 1.008 MB / 1.03 GB, free: 9.516 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0002616/0.9746, allocations: 73.06 kB / 1.03 GB, free: 9.461 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.9746, allocations: 0 / 1.03 GB, free: 9.461 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0001095/0.9747, allocations: 38.42 kB / 1.03 GB, free: 9.43 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003589/0.9751, allocations: 22.42 kB / 1.03 GB, free: 9.414 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009039/0.976, allocations: 222.9 kB / 1.031 GB, free: 9.18 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003929/0.9764, allocations: 0.7198 MB / 1.031 GB, free: 8.438 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.0001058/0.9765, allocations: 32.33 kB / 1.031 GB, free: 8.406 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.009e-05/0.9766, allocations: 33 kB / 1.031 GB, free: 8.391 MB / 0.6511 GB Notification: Performance of SimCode: time 6.02e-07/0.9766, allocations: 0 / 1.031 GB, free: 8.391 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01845/0.9951, allocations: 3.094 MB / 1.034 GB, free: 5.395 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000264/0.9954, allocations: 189.2 kB / 1.034 GB, free: 5.176 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.677/2.672, allocations: 0 / 1.034 GB, free: 5.176 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)