Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Utilities.IO.Files.Examples.Printer.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.Printer,fileNamePrefix="Buildings_8_0_0_Buildings_Utilities_IO_Files_Examples_Printer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.Printer,fileNamePrefix="Buildings_8_0_0_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.0.0/package.mo): time 2.619/2.619, allocations: 284.9 MB / 292.4 MB, free: 10.57 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.002457/0.002457, allocations: 192.8 kB / 360.6 MB, free: 7.293 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.099/2.099, allocations: 205.3 MB / 0.6191 GB, free: 12.21 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.001188/0.001188, allocations: 85.06 kB / 0.7321 GB, free: 44.75 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.638e-05/2.637e-05, allocations: 4 kB / 0.8508 GB, free: 3.355 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8287/0.8287, allocations: 115.3 MB / 0.9634 GB, free: 78.58 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2456/1.074, allocations: 138.9 MB / 1.099 GB, free: 1.582 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003144/1.075, allocations: 90.23 kB / 1.099 GB, free: 1.496 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 0.01448/1.089, allocations: 2.962 MB / 1.102 GB, free: 14.6 MB / 0.7136 GB Notification: Performance of FrontEnd: time 1.683e-06/1.089, allocations: 0 / 1.102 GB, free: 14.6 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 2.008e-05/1.089, allocations: 4.969 kB / 1.102 GB, free: 14.59 MB / 0.7136 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.001087/1.09, allocations: 0.5155 MB / 1.102 GB, free: 14.02 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 5.772e-05/1.091, allocations: 12.03 kB / 1.103 GB, free: 14.01 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.776e-05/1.091, allocations: 17.02 kB / 1.103 GB, free: 13.99 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003525/1.091, allocations: 223.2 kB / 1.103 GB, free: 13.73 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.07e-05/1.091, allocations: 8 kB / 1.103 GB, free: 13.73 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.142e-05/1.091, allocations: 4 kB / 1.103 GB, free: 13.72 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001652/1.091, allocations: 38.98 kB / 1.103 GB, free: 13.69 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002664/1.092, allocations: 91.38 kB / 1.103 GB, free: 13.59 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.183e-05/1.092, allocations: 4 kB / 1.103 GB, free: 13.58 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.351e-05/1.092, allocations: 3.562 kB / 1.103 GB, free: 13.58 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.761e-06/1.092, allocations: 0 / 1.103 GB, free: 13.58 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009251/1.093, allocations: 445.2 kB / 1.103 GB, free: 13.11 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001678/1.093, allocations: 73.14 kB / 1.103 GB, free: 13.02 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.519e-05/1.093, allocations: 29.84 kB / 1.103 GB, free: 12.98 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 3.255e-05/1.093, allocations: 4 kB / 1.103 GB, free: 12.98 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002872/1.093, allocations: 110.4 kB / 1.104 GB, free: 12.85 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=12): time 2.104e-06/1.093, allocations: 5.312 kB / 1.104 GB, free: 12.85 MB / 0.7136 GB Notification: Performance of matching and sorting (n=12): time 0.0003952/1.094, allocations: 109.4 kB / 1.104 GB, free: 12.73 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.463e-05/1.094, allocations: 93.09 kB / 1.104 GB, free: 12.62 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001817/1.094, allocations: 142.2 kB / 1.104 GB, free: 12.48 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 3.665e-05/1.094, allocations: 25.7 kB / 1.104 GB, free: 12.45 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001017/1.094, allocations: 112.3 kB / 1.104 GB, free: 12.33 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 4.335e-05/1.094, allocations: 19.72 kB / 1.104 GB, free: 12.31 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.696e-06/1.094, allocations: 0 / 1.104 GB, free: 12.31 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001679/1.094, allocations: 332.4 kB / 1.104 GB, free: 11.98 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.689e-05/1.094, allocations: 19.98 kB / 1.104 GB, free: 11.96 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001446/1.095, allocations: 87.16 kB / 1.104 GB, free: 11.84 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001016/1.095, allocations: 35.92 kB / 1.104 GB, free: 11.8 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-06/1.095, allocations: 0 / 1.104 GB, free: 11.8 MB / 0.7136 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002967/1.095, allocations: 117.4 kB / 1.105 GB, free: 11.68 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 2.447e-05/1.095, allocations: 8 kB / 1.105 GB, free: 11.68 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.274e-06/1.095, allocations: 0 / 1.105 GB, free: 11.68 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.911e-05/1.095, allocations: 4 kB / 1.105 GB, free: 11.67 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001998/1.095, allocations: 27.91 kB / 1.105 GB, free: 11.64 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.533e-06/1.095, allocations: 0 / 1.105 GB, free: 11.64 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001787/1.095, allocations: 24.14 kB / 1.105 GB, free: 11.62 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.583e-05/1.096, allocations: 15.98 kB / 1.105 GB, free: 11.61 MB / 0.7136 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.0001298/1.096, allocations: 112.7 kB / 1.105 GB, free: 11.49 MB / 0.7136 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002838/1.096, allocations: 113.1 kB / 1.105 GB, free: 11.38 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.726e-05/1.096, allocations: 11.91 kB / 1.105 GB, free: 11.36 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.682e-05/1.096, allocations: 17.83 kB / 1.105 GB, free: 11.34 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.338e-06/1.096, allocations: 0 / 1.105 GB, free: 11.34 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.839e-06/1.096, allocations: 7.953 kB / 1.105 GB, free: 11.34 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.739e-06/1.096, allocations: 0 / 1.105 GB, free: 11.34 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007781/1.097, allocations: 479.2 kB / 1.105 GB, free: 10.82 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.136e-06/1.097, allocations: 0 / 1.105 GB, free: 10.82 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001511/1.097, allocations: 19.98 kB / 1.105 GB, free: 10.8 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.591e-06/1.097, allocations: 0 / 1.105 GB, free: 10.8 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.107e-05/1.097, allocations: 11 kB / 1.105 GB, free: 10.8 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.36e-06/1.097, allocations: 4 kB / 1.105 GB, free: 10.79 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/1.097, allocations: 4 kB / 1.105 GB, free: 10.79 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004097/1.098, allocations: 284.3 kB / 1.106 GB, free: 10.49 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 7.204e-05/1.098, allocations: 92.88 kB / 1.106 GB, free: 10.38 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.581e-05/1.098, allocations: 8 kB / 1.106 GB, free: 10.37 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003016/1.098, allocations: 23.97 kB / 1.106 GB, free: 10.35 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.698e-05/1.098, allocations: 8.172 kB / 1.106 GB, free: 10.34 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.113e-05/1.098, allocations: 8 kB / 1.106 GB, free: 10.33 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 0.0001215/1.098, allocations: 116.8 kB / 1.106 GB, free: 10.22 MB / 0.7136 GB Notification: Performance of sort global known variables: time 3.8e-07/1.098, allocations: 0 / 1.106 GB, free: 10.22 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0005225/1.099, allocations: 43.98 kB / 1.106 GB, free: 10.18 MB / 0.7136 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.001246/1.1, allocations: 0.9949 MB / 1.107 GB, free: 9.203 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0002969/1.1, allocations: 71.86 kB / 1.107 GB, free: 9.133 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/1.101, allocations: 0 / 1.107 GB, free: 9.133 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.0001143/1.101, allocations: 32.56 kB / 1.107 GB, free: 9.102 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00037/1.101, allocations: 17.95 kB / 1.107 GB, free: 9.086 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008883/1.102, allocations: 213.5 kB / 1.107 GB, free: 8.836 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000398/1.102, allocations: 0.7236 MB / 1.108 GB, free: 8.086 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 0.000127/1.102, allocations: 24.48 kB / 1.108 GB, free: 8.062 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.578e-05/1.103, allocations: 35.42 kB / 1.108 GB, free: 8.027 MB / 0.7136 GB Notification: Performance of SimCode: time 9.82e-07/1.103, allocations: 4 kB / 1.108 GB, free: 8.023 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04077/1.143, allocations: 2.709 MB / 1.111 GB, free: 5.379 MB / 0.7136 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003665/1.144, allocations: 158.7 kB / 1.111 GB, free: 5.191 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.457/3.601, allocations: 0 / 1.111 GB, free: 5.191 MB / 0.7136 GB (rm -f Buildings_8.0.0_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; mkfifo Buildings_8.0.0_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Utilities.IO.Files.Examples.Printer.pipe >> ../files/Buildings_8.0.0_Buildings.Utilities.IO.Files.Examples.Printer.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Utilities_IO_Files_Examples_Printer_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Utilities_IO_Files_Examples_Printer.fmu > Buildings_8.0.0_Buildings.Utilities.IO.Files.Examples.Printer.pipe 2>&1)