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.791/1.791, allocations: 289.9 MB / 297.4 MB, free: 6.395 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.001616/0.001616, allocations: 172.9 kB / 366.7 MB, free: 1.699 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.75/1.75, allocations: 205.3 MB / 0.626 GB, free: 7.195 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.000929/0.0009289, allocations: 89.25 kB / 0.74 GB, free: 39.55 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.98e-05/1.972e-05, allocations: 7.984 kB / 0.8598 GB, free: 12.97 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6251/0.6252, allocations: 116.3 MB / 0.9733 GB, free: 76.38 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1858/0.811, allocations: 140 MB / 1.11 GB, free: 10.19 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002344/0.8113, allocations: 88.55 kB / 1.11 GB, free: 10.1 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 0.009495/0.8208, allocations: 2.96 MB / 1.113 GB, free: 7.176 MB / 0.7136 GB Notification: Performance of FrontEnd: time 1.203e-06/0.8209, allocations: 2.562 kB / 1.113 GB, free: 7.176 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 1.517e-05/0.8209, allocations: 4 kB / 1.113 GB, free: 7.172 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.0007184/0.8216, allocations: 0.5242 MB / 1.114 GB, free: 6.59 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 4.588e-05/0.8217, allocations: 8.031 kB / 1.114 GB, free: 6.582 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.684e-05/0.8217, allocations: 15.81 kB / 1.114 GB, free: 6.566 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002444/0.822, allocations: 206.9 kB / 1.114 GB, free: 6.324 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.494e-05/0.822, allocations: 4 kB / 1.114 GB, free: 6.32 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.098e-05/0.822, allocations: 11.03 kB / 1.114 GB, free: 6.312 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001044/0.8222, allocations: 35.92 kB / 1.114 GB, free: 6.277 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001755/0.8223, allocations: 99.38 kB / 1.114 GB, free: 6.168 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.943e-06/0.8224, allocations: 0 / 1.114 GB, free: 6.168 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.795e-05/0.8224, allocations: 0 / 1.114 GB, free: 6.168 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.444e-06/0.8224, allocations: 7.938 kB / 1.114 GB, free: 6.16 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006866/0.8231, allocations: 449 kB / 1.114 GB, free: 5.684 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 9.986e-05/0.8232, allocations: 69.19 kB / 1.114 GB, free: 5.598 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.815e-05/0.8233, allocations: 29.84 kB / 1.114 GB, free: 5.562 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 2.063e-05/0.8233, allocations: 0 / 1.114 GB, free: 5.562 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001921/0.8235, allocations: 121 kB / 1.115 GB, free: 5.426 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=12): time 1.192e-06/0.8235, allocations: 4 kB / 1.115 GB, free: 5.422 MB / 0.7136 GB Notification: Performance of matching and sorting (n=12): time 0.0002336/0.8237, allocations: 102.1 kB / 1.115 GB, free: 5.316 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.359e-05/0.8238, allocations: 85.11 kB / 1.115 GB, free: 5.215 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001206/0.8239, allocations: 138 kB / 1.115 GB, free: 5.074 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 3.642e-05/0.824, allocations: 29.7 kB / 1.115 GB, free: 5.039 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 6.594e-05/0.824, allocations: 108.3 kB / 1.115 GB, free: 4.926 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 3.206e-05/0.8241, allocations: 23.7 kB / 1.115 GB, free: 4.902 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.382e-06/0.8241, allocations: 11.09 kB / 1.115 GB, free: 4.895 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001399/0.8242, allocations: 330.8 kB / 1.115 GB, free: 4.562 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.801e-05/0.8243, allocations: 16 kB / 1.115 GB, free: 4.547 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.089e-05/0.8244, allocations: 94.25 kB / 1.115 GB, free: 4.418 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.359e-05/0.8244, allocations: 27.98 kB / 1.115 GB, free: 4.391 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-06/0.8245, allocations: 4 kB / 1.115 GB, free: 4.387 MB / 0.7136 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001827/0.8246, allocations: 121.3 kB / 1.116 GB, free: 4.262 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.626e-05/0.8247, allocations: 4 kB / 1.116 GB, free: 4.258 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.627e-06/0.8247, allocations: 4 kB / 1.116 GB, free: 4.254 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.461e-05/0.8247, allocations: 4 kB / 1.116 GB, free: 4.25 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001267/0.8248, allocations: 23.97 kB / 1.116 GB, free: 4.227 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.985e-06/0.8249, allocations: 8.328 kB / 1.116 GB, free: 4.219 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001093/0.825, allocations: 27.86 kB / 1.116 GB, free: 4.191 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.343e-05/0.825, allocations: 4 kB / 1.116 GB, free: 4.188 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.0001056/0.8251, allocations: 112.9 kB / 1.116 GB, free: 4.07 MB / 0.7136 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001686/0.8253, allocations: 105.4 kB / 1.116 GB, free: 3.961 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.162e-05/0.8253, allocations: 15.84 kB / 1.116 GB, free: 3.945 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.288e-05/0.8254, allocations: 17.83 kB / 1.116 GB, free: 3.922 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.659e-06/0.8254, allocations: 4 kB / 1.116 GB, free: 3.918 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.08e-06/0.8254, allocations: 4 kB / 1.116 GB, free: 3.914 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.52e-06/0.8254, allocations: 3.953 kB / 1.116 GB, free: 3.91 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004999/0.8259, allocations: 477.2 kB / 1.116 GB, free: 3.402 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.525e-06/0.8259, allocations: 3.938 kB / 1.116 GB, free: 3.402 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.523e-05/0.826, allocations: 19.92 kB / 1.116 GB, free: 3.383 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.075e-06/0.826, allocations: 0 / 1.116 GB, free: 3.383 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.481e-05/0.8261, allocations: 11.98 kB / 1.116 GB, free: 3.371 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.198e-06/0.8261, allocations: 3.953 kB / 1.116 GB, free: 3.367 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.485e-06/0.8261, allocations: 0 / 1.116 GB, free: 3.367 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002452/0.8263, allocations: 286.9 kB / 1.117 GB, free: 3.066 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 4.607e-05/0.8264, allocations: 92.86 kB / 1.117 GB, free: 2.957 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.416e-05/0.8264, allocations: 7.938 kB / 1.117 GB, free: 2.949 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001955/0.8266, allocations: 23.97 kB / 1.117 GB, free: 2.926 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.673e-05/0.8267, allocations: 15.92 kB / 1.117 GB, free: 2.91 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.59e-05/0.8267, allocations: 12 kB / 1.117 GB, free: 2.898 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 7.303e-05/0.8268, allocations: 111.3 kB / 1.117 GB, free: 2.789 MB / 0.7136 GB Notification: Performance of sort global known variables: time 1.6e-07/0.8268, allocations: 0 / 1.117 GB, free: 2.789 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0003715/0.8272, allocations: 39.98 kB / 1.117 GB, free: 2.75 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.0009109/0.8281, allocations: 0.9859 MB / 1.118 GB, free: 1.781 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0001813/0.8283, allocations: 68.36 kB / 1.118 GB, free: 1.715 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 4.318e-06/0.8283, allocations: 4.062 kB / 1.118 GB, free: 1.711 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 7.081e-05/0.8284, allocations: 37.72 kB / 1.118 GB, free: 1.676 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002423/0.8286, allocations: 17.55 kB / 1.118 GB, free: 1.66 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005618/0.8292, allocations: 213.7 kB / 1.118 GB, free: 1.414 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003184/0.8295, allocations: 0.7204 MB / 1.119 GB, free: 0.668 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 7.272e-05/0.8296, allocations: 24.39 kB / 1.119 GB, free: 0.6406 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.173e-05/0.8297, allocations: 35.44 kB / 1.119 GB, free: 0.6055 MB / 0.7136 GB Notification: Performance of SimCode: time 3e-07/0.8297, allocations: 0 / 1.119 GB, free: 0.6055 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02075/0.8504, allocations: 2.712 MB / 1.122 GB, free: 13.96 MB / 0.7292 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002123/0.8507, allocations: 161.3 kB / 1.122 GB, free: 13.77 MB / 0.7292 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.797/2.648, allocations: 0 / 1.122 GB, free: 13.77 MB / 0.7292 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)