Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Utilities.IO.Files.Examples.Printer.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.Printer,fileNamePrefix="Buildings_9_Buildings_Utilities_IO_Files_Examples_Printer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.Printer,fileNamePrefix="Buildings_9_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 9.1.1-maint.9.1.x/package.mo): time 2.473/2.473, allocations: 390.3 MB / 405.3 MB, free: 13.49 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001343/0.001344, allocations: 187.3 kB / 498.1 MB, free: 5.758 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.46/1.46, allocations: 223.1 MB / 0.7948 GB, free: 17.98 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009208/0.0009208, allocations: 96.33 kB / 0.9346 GB, free: 6.285 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004076/0.0004078, allocations: 11.81 kB / 1.084 GB, free: 221.3 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3202/0.3206, allocations: 142.3 MB / 1.223 GB, free: 114.2 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2494/0.5701, allocations: 151 MB / 1.37 GB, free: 11.06 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002996/0.5705, allocations: 87.95 kB / 1.37 GB, free: 10.97 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.009975/0.5805, allocations: 3.051 MB / 1.373 GB, free: 7.906 MB / 0.8698 GB Notification: Performance of FrontEnd: time 2.084e-06/0.5805, allocations: 0 / 1.373 GB, free: 7.906 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 1.304e-05/0.5805, allocations: 0 / 1.373 GB, free: 7.906 MB / 0.8698 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.0008517/0.5814, allocations: 0.5363 MB / 1.374 GB, free: 7.305 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 5.254e-05/0.5815, allocations: 8.031 kB / 1.374 GB, free: 7.297 MB / 0.8698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.154e-05/0.5815, allocations: 42.55 kB / 1.374 GB, free: 7.246 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.927e-05/0.5816, allocations: 23.75 kB / 1.374 GB, free: 7.223 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002965/0.5819, allocations: 211.8 kB / 1.374 GB, free: 6.977 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.225e-05/0.5819, allocations: 8 kB / 1.374 GB, free: 6.969 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.192e-05/0.582, allocations: 11.94 kB / 1.374 GB, free: 6.957 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000348/0.5823, allocations: 131.3 kB / 1.374 GB, free: 6.816 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.015e-05/0.5823, allocations: 4 kB / 1.374 GB, free: 6.812 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.97e-05/0.5824, allocations: 4 kB / 1.374 GB, free: 6.809 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.905e-06/0.5824, allocations: 4 kB / 1.374 GB, free: 6.805 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002627/0.5827, allocations: 75.94 kB / 1.374 GB, free: 6.73 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008129/0.5835, allocations: 484.7 kB / 1.375 GB, free: 6.203 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002098/0.5837, allocations: 93.11 kB / 1.375 GB, free: 6.094 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 2.703e-05/0.5837, allocations: 8.109 kB / 1.375 GB, free: 6.086 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003251/0.5841, allocations: 149 kB / 1.375 GB, free: 5.922 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=12): time 1.443e-06/0.5841, allocations: 0 / 1.375 GB, free: 5.922 MB / 0.8698 GB Notification: Performance of matching and sorting (n=12): time 0.0006318/0.5847, allocations: 209.3 kB / 1.375 GB, free: 5.711 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.234e-05/0.5848, allocations: 89.09 kB / 1.375 GB, free: 5.605 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001579/0.585, allocations: 149.4 kB / 1.376 GB, free: 5.449 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 2.772e-05/0.585, allocations: 29.7 kB / 1.376 GB, free: 5.414 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 7.249e-05/0.5851, allocations: 108.4 kB / 1.376 GB, free: 5.301 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 4.087e-05/0.5851, allocations: 31.59 kB / 1.376 GB, free: 5.27 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.087e-06/0.5851, allocations: 4 kB / 1.376 GB, free: 5.266 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001544/0.5853, allocations: 322.8 kB / 1.376 GB, free: 4.941 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001444/0.5855, allocations: 43.97 kB / 1.376 GB, free: 4.898 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000208/0.5857, allocations: 126.2 kB / 1.376 GB, free: 4.738 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001548/0.5858, allocations: 55.97 kB / 1.376 GB, free: 4.684 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.937e-06/0.5858, allocations: 4 kB / 1.376 GB, free: 4.68 MB / 0.8698 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003949/0.5862, allocations: 177.4 kB / 1.376 GB, free: 4.5 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.797e-05/0.5863, allocations: 4 kB / 1.376 GB, free: 4.496 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.406e-06/0.5863, allocations: 4 kB / 1.376 GB, free: 4.492 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.917e-05/0.5863, allocations: 3.953 kB / 1.376 GB, free: 4.488 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001215/0.5864, allocations: 32.16 kB / 1.377 GB, free: 4.457 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.237e-06/0.5865, allocations: 4 kB / 1.377 GB, free: 4.453 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001095/0.5866, allocations: 19.92 kB / 1.377 GB, free: 4.434 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.528e-05/0.5866, allocations: 12 kB / 1.377 GB, free: 4.422 MB / 0.8698 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.000129/0.5867, allocations: 129.9 kB / 1.377 GB, free: 4.285 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.143e-05/0.5868, allocations: 19.75 kB / 1.377 GB, free: 4.266 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.027e-05/0.5868, allocations: 21.77 kB / 1.377 GB, free: 4.242 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.224e-06/0.5868, allocations: 4 kB / 1.377 GB, free: 4.238 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.414e-06/0.5868, allocations: 3.953 kB / 1.377 GB, free: 4.234 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.456e-06/0.5869, allocations: 4 kB / 1.377 GB, free: 4.23 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008447/0.5877, allocations: 0.5483 MB / 1.377 GB, free: 3.625 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.815e-06/0.5877, allocations: 0 / 1.377 GB, free: 3.625 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.401e-05/0.5878, allocations: 15.98 kB / 1.377 GB, free: 3.609 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.032e-06/0.5878, allocations: 3.953 kB / 1.377 GB, free: 3.605 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.46e-05/0.5879, allocations: 8 kB / 1.377 GB, free: 3.598 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.258e-06/0.5879, allocations: 3.984 kB / 1.377 GB, free: 3.594 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.5879, allocations: 0 / 1.377 GB, free: 3.594 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004923/0.5884, allocations: 348.3 kB / 1.378 GB, free: 3.23 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 5.793e-05/0.5884, allocations: 92.88 kB / 1.378 GB, free: 3.121 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.188e-05/0.5885, allocations: 4 kB / 1.378 GB, free: 3.117 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001882/0.5887, allocations: 19.97 kB / 1.378 GB, free: 3.098 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.401e-05/0.5887, allocations: 12.27 kB / 1.378 GB, free: 3.086 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.687e-05/0.5888, allocations: 15.94 kB / 1.378 GB, free: 3.07 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 9.273e-05/0.5889, allocations: 120.2 kB / 1.378 GB, free: 2.953 MB / 0.8698 GB Notification: Performance of sort global known variables: time 1.6e-07/0.5889, allocations: 0 / 1.378 GB, free: 2.953 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.0003871/0.5893, allocations: 43.98 kB / 1.378 GB, free: 2.91 MB / 0.8698 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.001196/0.5905, allocations: 1.059 MB / 1.379 GB, free: 1.855 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.0003806/0.5909, allocations: 131.7 kB / 1.379 GB, free: 1.727 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 2.474e-06/0.5909, allocations: 0.5625 kB / 1.379 GB, free: 1.727 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0001908/0.5911, allocations: 63.91 kB / 1.379 GB, free: 1.664 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002575/0.5913, allocations: 21.23 kB / 1.379 GB, free: 1.645 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002173/0.5935, allocations: 2.056 MB / 1.381 GB, free: 15.5 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000332/0.5939, allocations: 0.7161 MB / 1.382 GB, free: 14.76 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 7.767e-05/0.594, allocations: 24.53 kB / 1.382 GB, free: 14.73 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.125e-05/0.5941, allocations: 39.42 kB / 1.382 GB, free: 14.7 MB / 0.8855 GB Notification: Performance of SimCode: time 4.11e-07/0.5941, allocations: 0 / 1.382 GB, free: 14.7 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0171/0.6112, allocations: 3.045 MB / 1.385 GB, free: 11.78 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000221/0.6115, allocations: 208.8 kB / 1.385 GB, free: 11.54 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.842/2.454, allocations: 4 kB / 1.385 GB, free: 11.54 MB / 0.8855 GB (rm -f Buildings_9_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; mkfifo Buildings_9_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.IO.Files.Examples.Printer.pipe >> ../files/Buildings_9_Buildings.Utilities.IO.Files.Examples.Printer.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Utilities.IO.Files.Examples.Printer_res.mat --tempDir=temp_Buildings_9_Buildings_Utilities_IO_Files_Examples_Printer_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Utilities_IO_Files_Examples_Printer.fmu > Buildings_9_Buildings.Utilities.IO.Files.Examples.Printer.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Utilities.IO.Files.Examples.Printer_res.mat does not exist to compare? outputFormat=mat