Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.Printer,fileNamePrefix="Buildings_latest_Buildings_Utilities_IO_Files_Examples_Printer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.Printer,fileNamePrefix="Buildings_latest_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 10.0.0-master/package.mo): time 2.408/2.408, allocations: 393.5 MB / 408.4 MB, free: 10.98 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.001214/0.001214, allocations: 187.9 kB / 0.4901 GB, free: 2.238 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.594/1.594, allocations: 223.1 MB / 0.7992 GB, free: 14.72 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.0009611/0.000961, allocations: 96.27 kB / 0.9396 GB, free: 1.918 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0005083/0.0005083, allocations: 6.906 kB / 1.09 GB, free: 216.2 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.359/0.3596, allocations: 143 MB / 1.229 GB, free: 105.7 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2285/0.5882, allocations: 151.8 MB / 1.377 GB, free: 1.68 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003028/0.5885, allocations: 83.95 kB / 1.378 GB, free: 1.598 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.01008/0.5986, allocations: 3.051 MB / 1.381 GB, free: 14.53 MB / 0.8855 GB Notification: Performance of FrontEnd: time 2.214e-06/0.5987, allocations: 0 / 1.381 GB, free: 14.53 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 1.678e-05/0.5987, allocations: 4 kB / 1.381 GB, free: 14.52 MB / 0.8855 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.0008463/0.5995, allocations: 0.5311 MB / 1.381 GB, free: 13.93 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 5.051e-05/0.5996, allocations: 8.562 kB / 1.381 GB, free: 13.92 MB / 0.8855 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.478e-05/0.5997, allocations: 42.55 kB / 1.381 GB, free: 13.87 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.457e-05/0.5997, allocations: 15.81 kB / 1.381 GB, free: 13.85 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000292/0.6, allocations: 230.7 kB / 1.381 GB, free: 13.59 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.613e-05/0.6001, allocations: 4 kB / 1.381 GB, free: 13.58 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.732e-05/0.6001, allocations: 8 kB / 1.381 GB, free: 13.57 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003389/0.6004, allocations: 134.2 kB / 1.382 GB, free: 13.43 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.074e-05/0.6005, allocations: 0 / 1.382 GB, free: 13.43 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.992e-05/0.6005, allocations: 3.984 kB / 1.382 GB, free: 13.43 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.522e-06/0.6005, allocations: 0 / 1.382 GB, free: 13.43 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002857/0.6008, allocations: 91.86 kB / 1.382 GB, free: 13.34 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007568/0.6016, allocations: 469.1 kB / 1.382 GB, free: 12.83 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00021/0.6018, allocations: 97.11 kB / 1.382 GB, free: 12.71 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 3.431e-05/0.6018, allocations: 7.984 kB / 1.382 GB, free: 12.71 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003276/0.6022, allocations: 149.2 kB / 1.382 GB, free: 12.54 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=12): time 1.914e-06/0.6022, allocations: 0 / 1.382 GB, free: 12.54 MB / 0.8855 GB Notification: Performance of matching and sorting (n=12): time 0.000672/0.6029, allocations: 217.3 kB / 1.382 GB, free: 12.32 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.594e-05/0.6029, allocations: 81.11 kB / 1.383 GB, free: 12.23 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001485/0.6031, allocations: 151 kB / 1.383 GB, free: 12.07 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 3.398e-05/0.6031, allocations: 33.64 kB / 1.383 GB, free: 12.04 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 9.372e-05/0.6032, allocations: 120.2 kB / 1.383 GB, free: 11.91 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 3.452e-05/0.6033, allocations: 23.72 kB / 1.383 GB, free: 11.89 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.905e-06/0.6033, allocations: 4 kB / 1.383 GB, free: 11.88 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001416/0.6034, allocations: 322.8 kB / 1.383 GB, free: 11.56 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001392/0.6036, allocations: 47.95 kB / 1.383 GB, free: 11.51 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00022/0.6038, allocations: 122.3 kB / 1.383 GB, free: 11.36 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001675/0.604, allocations: 51.92 kB / 1.383 GB, free: 11.3 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.925e-06/0.604, allocations: 0 / 1.383 GB, free: 11.3 MB / 0.8855 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004083/0.6044, allocations: 189.5 kB / 1.384 GB, free: 11.11 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 2.071e-05/0.6044, allocations: 8 kB / 1.384 GB, free: 11.11 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.146e-06/0.6045, allocations: 0 / 1.384 GB, free: 11.11 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.226e-05/0.6045, allocations: 7.953 kB / 1.384 GB, free: 11.1 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001183/0.6046, allocations: 19.98 kB / 1.384 GB, free: 11.08 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.06e-05/0.6046, allocations: 3.938 kB / 1.384 GB, free: 11.07 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001116/0.6048, allocations: 19.98 kB / 1.384 GB, free: 11.05 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.666e-05/0.6048, allocations: 12.06 kB / 1.384 GB, free: 11.04 MB / 0.8855 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.0001414/0.6049, allocations: 139.4 kB / 1.384 GB, free: 10.9 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.674e-05/0.605, allocations: 11.81 kB / 1.384 GB, free: 10.89 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.608e-05/0.605, allocations: 21.41 kB / 1.384 GB, free: 10.87 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.645e-06/0.605, allocations: 0 / 1.384 GB, free: 10.87 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.105e-06/0.605, allocations: 3.953 kB / 1.384 GB, free: 10.87 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.811e-06/0.605, allocations: 3.984 kB / 1.384 GB, free: 10.86 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007475/0.6058, allocations: 0.5487 MB / 1.384 GB, free: 10.26 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.595e-06/0.6058, allocations: 0 / 1.384 GB, free: 10.26 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.038e-05/0.6059, allocations: 27.92 kB / 1.384 GB, free: 10.23 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.561e-06/0.6059, allocations: 7.891 kB / 1.384 GB, free: 10.22 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.318e-05/0.6059, allocations: 4 kB / 1.384 GB, free: 10.22 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.517e-06/0.6059, allocations: 3.984 kB / 1.384 GB, free: 10.21 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/0.606, allocations: 4 kB / 1.384 GB, free: 10.21 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004695/0.6064, allocations: 340.3 kB / 1.385 GB, free: 9.855 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 7.452e-05/0.6065, allocations: 97.14 kB / 1.385 GB, free: 9.742 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.242e-05/0.6065, allocations: 0 / 1.385 GB, free: 9.742 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002119/0.6068, allocations: 27.98 kB / 1.385 GB, free: 9.715 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.056e-05/0.6068, allocations: 11.97 kB / 1.385 GB, free: 9.703 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.449e-05/0.6069, allocations: 15.92 kB / 1.385 GB, free: 9.688 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.0001154/0.607, allocations: 119.2 kB / 1.385 GB, free: 9.57 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.4e-07/0.607, allocations: 0 / 1.385 GB, free: 9.57 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0003943/0.6074, allocations: 43.98 kB / 1.385 GB, free: 9.527 MB / 0.8855 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.001161/0.6086, allocations: 1.051 MB / 1.386 GB, free: 8.48 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0003753/0.609, allocations: 120 kB / 1.386 GB, free: 8.363 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.609, allocations: 0 / 1.386 GB, free: 8.363 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0001706/0.6092, allocations: 63.89 kB / 1.386 GB, free: 8.301 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000251/0.6094, allocations: 28.42 kB / 1.386 GB, free: 8.273 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002161/0.6116, allocations: 2.06 MB / 1.388 GB, free: 6.121 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003461/0.612, allocations: 0.716 MB / 1.389 GB, free: 5.379 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 8.078e-05/0.612, allocations: 20.53 kB / 1.389 GB, free: 5.359 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.726e-05/0.6121, allocations: 39.48 kB / 1.389 GB, free: 5.32 MB / 0.8855 GB Notification: Performance of SimCode: time 4.4e-07/0.6121, allocations: 0 / 1.389 GB, free: 5.32 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01695/0.6291, allocations: 3.041 MB / 1.392 GB, free: 2.414 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003019/0.6294, allocations: 215.3 kB / 1.392 GB, free: 2.176 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.813/2.443, allocations: 3.938 kB / 1.392 GB, free: 2.172 MB / 0.8855 GB (rm -f Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; mkfifo Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer.pipe >> ../files/Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_IO_Files_Examples_Printer_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_IO_Files_Examples_Printer.fmu > Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer_res.mat does not exist to compare? outputFormat=mat