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/ModelicaServices 4.0.0+maint.om/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/Buildings 9.1.1-maint.9.1.x/package.mo", uses=false) 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) 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001162/0.001162, allocations: 99.86 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001278/0.001278, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.312/1.312, allocations: 223.2 MB / 239.9 MB, free: 5.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.3/2.3, allocations: 390.3 MB / 0.6653 GB, free: 2.961 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003189/0.000319, allocations: 8 kB / 0.8146 GB, free: 14.17 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5844/0.5847, allocations: 142.3 MB / 0.9536 GB, free: 8.102 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.002161/0.5869, allocations: 1.268 MB / 0.9548 GB, free: 7.102 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001438/0.5884, allocations: 0.6514 MB / 0.9555 GB, free: 6.605 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001117/0.5885, allocations: 1.25 kB / 0.9555 GB, free: 6.605 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001107/0.5886, allocations: 11.88 kB / 0.9555 GB, free: 6.594 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 9.28e-05/0.5887, allocations: 20.11 kB / 0.9555 GB, free: 6.578 MB / 0.7169 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/Utilities/IO/Files/BaseClasses/printRealArray.mo:2:1-45:19:writable] Warning: Pure function ‘Buildings.Utilities.IO.Files.BaseClasses.printRealArray‘ contains a call to impure function ‘Modelica.Utilities.Streams.print‘. Notification: Performance of NFTyping.typeClassSections: time 0.0005898/0.5893, allocations: 91.58 kB / 0.9556 GB, free: 6.516 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002335/0.5896, allocations: 86.02 kB / 0.9557 GB, free: 6.461 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001685/0.5898, allocations: 42.78 kB / 0.9557 GB, free: 6.43 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001242/0.5899, allocations: 37.34 kB / 0.9557 GB, free: 6.41 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001026/0.59, allocations: 52.62 kB / 0.9558 GB, free: 6.375 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.266e-05/0.59, allocations: 4.781 kB / 0.9558 GB, free: 6.375 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001306/0.5902, allocations: 40.84 kB / 0.9558 GB, free: 6.355 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 4.772e-05/0.5902, allocations: 23.16 kB / 0.9559 GB, free: 6.34 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.82e-05/0.5903, allocations: 46.55 kB / 0.9559 GB, free: 6.297 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001713/0.5905, allocations: 105.2 kB / 0.956 GB, free: 6.227 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.645e-06/0.5905, allocations: 0 / 0.956 GB, free: 6.227 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.324e-06/0.5905, allocations: 1.406 kB / 0.956 GB, free: 6.227 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.34e-06/0.5905, allocations: 4 kB / 0.956 GB, free: 6.223 MB / 0.7169 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.0007459/0.5912, allocations: 0.5367 MB / 0.9565 GB, free: 5.688 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.488e-05/0.5913, allocations: 10.12 kB / 0.9565 GB, free: 5.688 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.766e-05/0.5913, allocations: 33.06 kB / 0.9566 GB, free: 5.648 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.443e-05/0.5914, allocations: 23.59 kB / 0.9566 GB, free: 5.633 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001914/0.5916, allocations: 214.5 kB / 0.9568 GB, free: 5.398 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.509e-05/0.5916, allocations: 4.594 kB / 0.9568 GB, free: 5.398 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.933e-05/0.5917, allocations: 10.44 kB / 0.9568 GB, free: 5.395 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003087/0.592, allocations: 136.1 kB / 0.9569 GB, free: 5.301 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.757e-06/0.592, allocations: 3.984 kB / 0.9569 GB, free: 5.297 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.646e-05/0.592, allocations: 5.141 kB / 0.9569 GB, free: 5.293 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.451e-06/0.592, allocations: 2 kB / 0.957 GB, free: 5.293 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002535/0.5923, allocations: 89.83 kB / 0.957 GB, free: 5.254 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005826/0.5929, allocations: 466.1 kB / 0.9575 GB, free: 4.809 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001938/0.5931, allocations: 97.73 kB / 0.9576 GB, free: 4.73 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.609e-05/0.5931, allocations: 5.734 kB / 0.9576 GB, free: 4.727 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002783/0.5934, allocations: 153.9 kB / 0.9577 GB, free: 4.609 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=12): time 1.492e-06/0.5934, allocations: 0 / 0.9577 GB, free: 4.609 MB / 0.7169 GB Notification: Performance of matching and sorting (n=12): time 0.0005699/0.594, allocations: 212.6 kB / 0.9579 GB, free: 4.504 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.476e-05/0.594, allocations: 80.86 kB / 0.958 GB, free: 4.41 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001056/0.5941, allocations: 158.8 kB / 0.9582 GB, free: 4.281 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.133e-05/0.5942, allocations: 31.64 kB / 0.9582 GB, free: 4.246 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.494e-05/0.5942, allocations: 110.9 kB / 0.9583 GB, free: 4.137 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.046e-05/0.5943, allocations: 33.09 kB / 0.9583 GB, free: 4.109 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.831e-06/0.5943, allocations: 0 / 0.9583 GB, free: 4.109 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.116e-05/0.5943, allocations: 330.8 kB / 0.9586 GB, free: 3.781 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001339/0.5945, allocations: 42.44 kB / 0.9587 GB, free: 3.766 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001606/0.5946, allocations: 130.4 kB / 0.9588 GB, free: 3.637 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001511/0.5948, allocations: 57.12 kB / 0.9589 GB, free: 3.613 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.597e-06/0.5948, allocations: 1.219 kB / 0.9589 GB, free: 3.613 MB / 0.7169 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003537/0.5952, allocations: 181.3 kB / 0.959 GB, free: 3.516 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.602e-05/0.5952, allocations: 5.344 kB / 0.959 GB, free: 3.516 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.274e-06/0.5952, allocations: 6.438 kB / 0.959 GB, free: 3.512 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.547e-05/0.5952, allocations: 3.875 kB / 0.959 GB, free: 3.512 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001087/0.5953, allocations: 18.02 kB / 0.9591 GB, free: 3.508 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.215e-06/0.5954, allocations: 10.67 kB / 0.9591 GB, free: 3.5 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001092/0.5955, allocations: 20.28 kB / 0.9591 GB, free: 3.492 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.264e-05/0.5955, allocations: 9.5 kB / 0.9591 GB, free: 3.488 MB / 0.7169 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 9.154e-05/0.5956, allocations: 136.8 kB / 0.9592 GB, free: 3.355 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.495e-05/0.5956, allocations: 14.73 kB / 0.9592 GB, free: 3.348 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.8e-05/0.5957, allocations: 21.52 kB / 0.9593 GB, free: 3.328 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.296e-06/0.5957, allocations: 2.75 kB / 0.9593 GB, free: 3.328 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.811e-06/0.5957, allocations: 0 / 0.9593 GB, free: 3.328 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.598e-06/0.5957, allocations: 1.375 kB / 0.9593 GB, free: 3.328 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006053/0.5963, allocations: 0.5451 MB / 0.9598 GB, free: 2.836 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.964e-06/0.5963, allocations: 0 / 0.9598 GB, free: 2.836 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.406e-05/0.5964, allocations: 20.3 kB / 0.9598 GB, free: 2.828 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.258e-06/0.5964, allocations: 5.656 kB / 0.9598 GB, free: 2.824 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.203e-05/0.5964, allocations: 5.375 kB / 0.9598 GB, free: 2.82 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.104e-06/0.5965, allocations: 1.375 kB / 0.9598 GB, free: 2.82 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.063e-06/0.5965, allocations: 1.375 kB / 0.9598 GB, free: 2.82 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000372/0.5968, allocations: 354.7 kB / 0.9602 GB, free: 2.531 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.159e-05/0.5969, allocations: 85.02 kB / 0.9603 GB, free: 2.434 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.202e-05/0.5969, allocations: 2.656 kB / 0.9603 GB, free: 2.434 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001858/0.5971, allocations: 30.22 kB / 0.9603 GB, free: 2.418 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.75e-05/0.5971, allocations: 12.55 kB / 0.9603 GB, free: 2.41 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.451e-05/0.5972, allocations: 5.531 kB / 0.9603 GB, free: 2.41 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 6.547e-05/0.5973, allocations: 122.9 kB / 0.9604 GB, free: 2.312 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5973, allocations: 0 / 0.9604 GB, free: 2.312 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003673/0.5976, allocations: 44.67 kB / 0.9605 GB, free: 2.297 MB / 0.7169 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.000874/0.5985, allocations: 1.061 MB / 0.9615 GB, free: 1.367 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.000359/0.5989, allocations: 115.1 kB / 0.9616 GB, free: 1.328 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.945e-06/0.5989, allocations: 0.9062 kB / 0.9616 GB, free: 1.328 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001655/0.5991, allocations: 63.27 kB / 0.9617 GB, free: 1.305 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002474/0.5993, allocations: 14.89 kB / 0.9617 GB, free: 1.297 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00172/0.6011, allocations: 2.052 MB / 0.9637 GB, free: 15.42 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000265/0.6013, allocations: 0.7202 MB / 0.9644 GB, free: 14.7 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 7.815e-05/0.6014, allocations: 21.52 kB / 0.9644 GB, free: 14.69 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.253e-05/0.6015, allocations: 38.3 kB / 0.9645 GB, free: 14.66 MB / 0.7325 GB Notification: Performance of SimCode: time 2.41e-07/0.6015, allocations: 0 / 0.9645 GB, free: 14.66 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01445/0.616, allocations: 3.006 MB / 0.9674 GB, free: 13.23 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001835/0.6162, allocations: 227.6 kB / 0.9676 GB, free: 12.98 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.782/2.398, allocations: 0 / 0.9676 GB, free: 12.98 MB / 0.7325 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