Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Utilities.IO.Files.Examples.Printer.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.Printer,fileNamePrefix="Buildings_8_Buildings_Utilities_IO_Files_Examples_Printer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.Printer,fileNamePrefix="Buildings_8_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 8.1.4-maint.8.1.x/package.mo): time 1.733/1.733, allocations: 289.7 MB / 302.2 MB, free: 2.195 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001154/0.001154, allocations: 184.3 kB / 371.6 MB, free: 3.355 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.006/2.006, allocations: 205.1 MB / 0.6309 GB, free: 11.75 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001137/0.001138, allocations: 89.44 kB / 0.745 GB, free: 54.56 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 4.463e-05/4.465e-05, allocations: 4 kB / 0.8663 GB, free: 14.97 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3374/0.3375, allocations: 116.3 MB / 0.9799 GB, free: 10.5 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9278/1.265, allocations: 140.7 MB / 1.117 GB, free: 43.3 MB / 0.7448 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002674/1.266, allocations: 86.12 kB / 1.117 GB, free: 43.27 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 0.008521/1.274, allocations: 2.976 MB / 1.12 GB, free: 41.54 MB / 0.7448 GB Notification: Performance of FrontEnd: time 1.984e-06/1.274, allocations: 0 / 1.12 GB, free: 41.54 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 1.64e-05/1.274, allocations: 4 kB / 1.12 GB, free: 41.54 MB / 0.7448 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.0006815/1.275, allocations: 0.5195 MB / 1.121 GB, free: 41 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 5.774e-05/1.275, allocations: 8.031 kB / 1.121 GB, free: 40.99 MB / 0.7448 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.679e-05/1.275, allocations: 35 kB / 1.121 GB, free: 40.95 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.741e-05/1.275, allocations: 17.62 kB / 1.121 GB, free: 40.94 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002644/1.275, allocations: 219 kB / 1.121 GB, free: 40.71 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.918e-05/1.275, allocations: 8.016 kB / 1.121 GB, free: 40.71 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.093e-05/1.275, allocations: 7 kB / 1.121 GB, free: 40.7 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002322/1.276, allocations: 110.8 kB / 1.121 GB, free: 40.62 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.03e-05/1.276, allocations: 0 / 1.121 GB, free: 40.62 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.724e-05/1.276, allocations: 0 / 1.121 GB, free: 40.62 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.582e-06/1.276, allocations: 4 kB / 1.121 GB, free: 40.61 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.025e-05/1.276, allocations: 40.28 kB / 1.121 GB, free: 40.59 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006911/1.277, allocations: 476.1 kB / 1.122 GB, free: 40.16 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001033/1.277, allocations: 68.14 kB / 1.122 GB, free: 40.09 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.105e-05/1.277, allocations: 29.09 kB / 1.122 GB, free: 40.06 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 2.839e-05/1.277, allocations: 11.52 kB / 1.122 GB, free: 40.05 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001957/1.277, allocations: 122.9 kB / 1.122 GB, free: 39.95 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=12): time 1.984e-06/1.277, allocations: 0 / 1.122 GB, free: 39.95 MB / 0.7448 GB Notification: Performance of matching and sorting (n=12): time 0.0002891/1.277, allocations: 121.5 kB / 1.122 GB, free: 39.85 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.253e-05/1.277, allocations: 84.23 kB / 1.122 GB, free: 39.75 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001182/1.277, allocations: 150.1 kB / 1.122 GB, free: 39.62 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 2.482e-05/1.277, allocations: 33.08 kB / 1.122 GB, free: 39.59 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 4.69e-05/1.278, allocations: 107.2 kB / 1.122 GB, free: 39.5 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 3.288e-05/1.278, allocations: 26.25 kB / 1.122 GB, free: 39.48 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.256e-06/1.278, allocations: 6.688 kB / 1.122 GB, free: 39.47 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 7.593e-05/1.278, allocations: 325.1 kB / 1.123 GB, free: 39.16 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.863e-05/1.278, allocations: 19.62 kB / 1.123 GB, free: 39.14 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.557e-05/1.278, allocations: 101.9 kB / 1.123 GB, free: 39.02 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.256e-05/1.278, allocations: 37.81 kB / 1.123 GB, free: 39 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/1.278, allocations: 0 / 1.123 GB, free: 39 MB / 0.7448 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001891/1.278, allocations: 135.8 kB / 1.123 GB, free: 38.89 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.749e-05/1.278, allocations: 8.031 kB / 1.123 GB, free: 38.88 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.496e-06/1.278, allocations: 4 kB / 1.123 GB, free: 38.88 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.697e-05/1.278, allocations: 0.8438 kB / 1.123 GB, free: 38.88 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001196/1.278, allocations: 19.38 kB / 1.123 GB, free: 38.86 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.22e-05/1.278, allocations: 11.89 kB / 1.123 GB, free: 38.85 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001088/1.278, allocations: 23.44 kB / 1.123 GB, free: 38.83 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.261e-05/1.278, allocations: 4 kB / 1.123 GB, free: 38.83 MB / 0.7448 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 8.964e-05/1.279, allocations: 127.7 kB / 1.123 GB, free: 38.71 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.551e-05/1.279, allocations: 7.906 kB / 1.123 GB, free: 38.7 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.55e-05/1.279, allocations: 21.42 kB / 1.123 GB, free: 38.69 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.414e-06/1.279, allocations: 4 kB / 1.123 GB, free: 38.69 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.923e-06/1.279, allocations: 0.5625 kB / 1.123 GB, free: 38.69 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.881e-06/1.279, allocations: 4.516 kB / 1.123 GB, free: 38.68 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004725/1.279, allocations: 0.5049 MB / 1.124 GB, free: 38.21 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.284e-06/1.279, allocations: 3.938 kB / 1.124 GB, free: 38.21 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.344e-05/1.279, allocations: 16.09 kB / 1.124 GB, free: 38.2 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.11e-06/1.279, allocations: 4 kB / 1.124 GB, free: 38.2 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.323e-05/1.279, allocations: 7.891 kB / 1.124 GB, free: 38.19 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.094e-06/1.279, allocations: 0.6562 kB / 1.124 GB, free: 38.19 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.425e-06/1.279, allocations: 4 kB / 1.124 GB, free: 38.18 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002372/1.28, allocations: 296.4 kB / 1.124 GB, free: 37.9 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 3.781e-05/1.28, allocations: 86.14 kB / 1.124 GB, free: 37.8 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.605e-05/1.28, allocations: 10.73 kB / 1.124 GB, free: 37.8 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001784/1.28, allocations: 20.03 kB / 1.124 GB, free: 37.78 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.691e-05/1.28, allocations: 18.17 kB / 1.124 GB, free: 37.77 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.761e-05/1.28, allocations: 8 kB / 1.124 GB, free: 37.77 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 6.79e-05/1.28, allocations: 114.3 kB / 1.124 GB, free: 37.67 MB / 0.7448 GB Notification: Performance of sort global known variables: time 1.011e-06/1.28, allocations: 0 / 1.124 GB, free: 37.67 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0003415/1.28, allocations: 56.19 kB / 1.124 GB, free: 37.62 MB / 0.7448 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.0008706/1.281, allocations: 0.9959 MB / 1.125 GB, free: 36.68 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0001937/1.281, allocations: 76.08 kB / 1.125 GB, free: 36.63 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/1.281, allocations: 3.938 kB / 1.125 GB, free: 36.62 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 7.596e-05/1.282, allocations: 30.12 kB / 1.125 GB, free: 36.6 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002625/1.282, allocations: 20.36 kB / 1.125 GB, free: 36.59 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006178/1.282, allocations: 226.6 kB / 1.126 GB, free: 36.38 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001946/1.283, allocations: 0.7203 MB / 1.126 GB, free: 35.66 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 7.348e-05/1.283, allocations: 23.41 kB / 1.126 GB, free: 35.64 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.507e-05/1.283, allocations: 34.83 kB / 1.126 GB, free: 35.63 MB / 0.7448 GB Notification: Performance of SimCode: time 4.81e-07/1.283, allocations: 0 / 1.126 GB, free: 35.63 MB / 0.7448 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01967/1.303, allocations: 3.073 MB / 1.129 GB, free: 33.89 MB / 0.7448 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001941/1.303, allocations: 190.1 kB / 1.13 GB, free: 33.66 MB / 0.7448 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.828/3.131, allocations: 0 / 1.13 GB, free: 33.66 MB / 0.7448 GB (rm -f Buildings_8_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; mkfifo Buildings_8_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; head -c 1048576 < Buildings_8_Buildings.Utilities.IO.Files.Examples.Printer.pipe >> ../files/Buildings_8_Buildings.Utilities.IO.Files.Examples.Printer.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Utilities_IO_Files_Examples_Printer_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Utilities_IO_Files_Examples_Printer.fmu > Buildings_8_Buildings.Utilities.IO.Files.Examples.Printer.pipe 2>&1)