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.496/1.496, allocations: 251.9 MB / 266.9 MB, free: 11.02 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001301/0.001301, allocations: 185.5 kB / 326.5 MB, free: 2.25 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.945/1.945, allocations: 205.4 MB / 0.5775 GB, free: 20.27 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.0009768/0.0009769, allocations: 93.55 kB / 0.6821 GB, free: 12.89 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0004002/0.0004002, allocations: 9.312 kB / 0.7963 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.254/0.2544, allocations: 106.3 MB / 0.9002 GB, free: 63.85 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2078/0.4623, allocations: 133.5 MB / 1.031 GB, free: 10.19 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002617/0.4626, allocations: 83.95 kB / 1.031 GB, free: 10.11 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.009256/0.4719, allocations: 3.004 MB / 1.034 GB, free: 7.086 MB / 0.6823 GB Notification: Performance of FrontEnd: time 2.505e-06/0.4719, allocations: 0 / 1.034 GB, free: 7.086 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 1.319e-05/0.4719, allocations: 4 kB / 1.034 GB, free: 7.082 MB / 0.6823 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.00103/0.473, allocations: 0.5348 MB / 1.034 GB, free: 6.48 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 5.74e-05/0.473, allocations: 12.03 kB / 1.034 GB, free: 6.469 MB / 0.6823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.561e-05/0.4731, allocations: 38.55 kB / 1.034 GB, free: 6.422 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.91e-05/0.4732, allocations: 15.81 kB / 1.034 GB, free: 6.406 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003503/0.4736, allocations: 230.7 kB / 1.034 GB, free: 6.141 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.785e-05/0.4736, allocations: 4 kB / 1.034 GB, free: 6.137 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.884e-05/0.4736, allocations: 12 kB / 1.034 GB, free: 6.125 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004213/0.4741, allocations: 127.3 kB / 1.034 GB, free: 5.988 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.06e-05/0.4741, allocations: 0 / 1.034 GB, free: 5.988 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.358e-05/0.4741, allocations: 4 kB / 1.034 GB, free: 5.984 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.649e-06/0.4741, allocations: 7.984 kB / 1.034 GB, free: 5.977 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003413/0.4745, allocations: 87.88 kB / 1.035 GB, free: 5.891 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007661/0.4753, allocations: 464.8 kB / 1.035 GB, free: 5.383 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002101/0.4755, allocations: 97.11 kB / 1.035 GB, free: 5.27 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 2.561e-05/0.4755, allocations: 0 / 1.035 GB, free: 5.27 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002864/0.4758, allocations: 153.2 kB / 1.035 GB, free: 5.102 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=12): time 1.242e-06/0.4758, allocations: 0 / 1.035 GB, free: 5.102 MB / 0.6823 GB Notification: Performance of matching and sorting (n=12): time 0.0005717/0.4764, allocations: 217.3 kB / 1.035 GB, free: 4.883 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.557e-05/0.4765, allocations: 77.11 kB / 1.036 GB, free: 4.789 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001399/0.4766, allocations: 154 kB / 1.036 GB, free: 4.629 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 2.78e-05/0.4767, allocations: 29.7 kB / 1.036 GB, free: 4.594 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 6.495e-05/0.4767, allocations: 112.2 kB / 1.036 GB, free: 4.477 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 3.346e-05/0.4768, allocations: 35.7 kB / 1.036 GB, free: 4.441 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.591e-06/0.4768, allocations: 0 / 1.036 GB, free: 4.441 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001234/0.4769, allocations: 326.8 kB / 1.036 GB, free: 4.113 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001304/0.4771, allocations: 39.95 kB / 1.036 GB, free: 4.074 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001738/0.4773, allocations: 122.3 kB / 1.036 GB, free: 3.918 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001467/0.4774, allocations: 59.92 kB / 1.036 GB, free: 3.859 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.4774, allocations: 0 / 1.036 GB, free: 3.859 MB / 0.6823 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003704/0.4778, allocations: 185.4 kB / 1.037 GB, free: 3.672 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.819e-05/0.4778, allocations: 4 kB / 1.037 GB, free: 3.668 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.404e-06/0.4778, allocations: 4 kB / 1.037 GB, free: 3.664 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.508e-05/0.4779, allocations: 4 kB / 1.037 GB, free: 3.66 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001154/0.478, allocations: 20.36 kB / 1.037 GB, free: 3.641 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.248e-05/0.478, allocations: 11.89 kB / 1.037 GB, free: 3.629 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001027/0.4781, allocations: 20.11 kB / 1.037 GB, free: 3.609 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.225e-05/0.4781, allocations: 4 kB / 1.037 GB, free: 3.605 MB / 0.6823 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 () * Number of clocked 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.0001287/0.4783, allocations: 140 kB / 1.037 GB, free: 3.461 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.517e-05/0.4783, allocations: 11.91 kB / 1.037 GB, free: 3.449 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.335e-05/0.4783, allocations: 13.41 kB / 1.037 GB, free: 3.441 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.997e-06/0.4784, allocations: 4.234 kB / 1.037 GB, free: 3.438 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.623e-06/0.4784, allocations: 0 / 1.037 GB, free: 3.438 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.652e-06/0.4784, allocations: 11.88 kB / 1.037 GB, free: 3.426 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007153/0.4791, allocations: 0.5483 MB / 1.037 GB, free: 2.82 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.744e-06/0.4791, allocations: 0 / 1.037 GB, free: 2.82 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.196e-05/0.4792, allocations: 23.92 kB / 1.037 GB, free: 2.797 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.358e-06/0.4792, allocations: 4 kB / 1.037 GB, free: 2.793 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.286e-05/0.4792, allocations: 3.953 kB / 1.037 GB, free: 2.789 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.4792, allocations: 0 / 1.037 GB, free: 2.789 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.111e-05/0.4793, allocations: 4 kB / 1.037 GB, free: 2.785 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004774/0.4797, allocations: 340.3 kB / 1.038 GB, free: 2.43 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 4.727e-05/0.4798, allocations: 92.91 kB / 1.038 GB, free: 2.32 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.435e-05/0.4798, allocations: 11.98 kB / 1.038 GB, free: 2.309 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001829/0.48, allocations: 23.98 kB / 1.038 GB, free: 2.285 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.216e-05/0.4801, allocations: 15.92 kB / 1.038 GB, free: 2.27 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.785e-05/0.4801, allocations: 11.98 kB / 1.038 GB, free: 2.258 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 8.634e-05/0.4802, allocations: 115.2 kB / 1.038 GB, free: 2.145 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4802, allocations: 0 / 1.038 GB, free: 2.145 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0003503/0.4806, allocations: 51.83 kB / 1.038 GB, free: 2.094 MB / 0.6823 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 () * Number of clocked 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.001044/0.4816, allocations: 1.042 MB / 1.039 GB, free: 1.062 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0003558/0.482, allocations: 124 kB / 1.039 GB, free: 0.9414 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.482, allocations: 0 / 1.039 GB, free: 0.9414 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0001599/0.4822, allocations: 63.89 kB / 1.039 GB, free: 0.8789 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000238/0.4824, allocations: 19.92 kB / 1.039 GB, free: 0.8594 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001996/0.4844, allocations: 2.072 MB / 1.041 GB, free: 14.69 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003548/0.4848, allocations: 0.716 MB / 1.042 GB, free: 13.95 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 7.892e-05/0.4849, allocations: 20.53 kB / 1.042 GB, free: 13.93 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.255e-05/0.485, allocations: 39.48 kB / 1.042 GB, free: 13.89 MB / 0.698 GB Notification: Performance of SimCode: time 6.61e-07/0.485, allocations: 0 / 1.042 GB, free: 13.89 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01433/0.4993, allocations: 3.056 MB / 1.045 GB, free: 10.97 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002001/0.4996, allocations: 222.6 kB / 1.045 GB, free: 10.73 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.698/2.197, allocations: 0 / 1.045 GB, free: 10.73 MB / 0.698 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)