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.0008105/0.0008105, allocations: 91.14 kB / 15.06 MB, free: 1.098 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.0009099/0.0009099, allocations: 172.7 kB / 15.95 MB, free: 208 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.327/1.327, allocations: 223.3 MB / 240 MB, free: 5.41 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.304/2.304, allocations: 390.4 MB / 0.6655 GB, free: 2.945 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003278/0.0003279, allocations: 8 kB / 0.8149 GB, free: 14.15 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6228/0.6232, allocations: 142.3 MB / 0.9538 GB, free: 8.035 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.001388/0.6246, allocations: 1.271 MB / 0.9551 GB, free: 7.031 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0009864/0.6256, allocations: 0.6505 MB / 0.9557 GB, free: 6.531 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.512e-05/0.6257, allocations: 1.688 kB / 0.9557 GB, free: 6.531 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 7.813e-05/0.6258, allocations: 11.86 kB / 0.9557 GB, free: 6.52 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.224e-05/0.6258, allocations: 14.33 kB / 0.9557 GB, free: 6.508 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.0004087/0.6263, allocations: 92.86 kB / 0.9558 GB, free: 6.445 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001548/0.6264, allocations: 125.7 kB / 0.956 GB, free: 6.367 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001113/0.6265, allocations: 34.89 kB / 0.956 GB, free: 6.344 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 7.928e-05/0.6266, allocations: 47.33 kB / 0.956 GB, free: 6.316 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.66e-05/0.6267, allocations: 48.67 kB / 0.9561 GB, free: 6.285 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.789e-05/0.6267, allocations: 4.469 kB / 0.9561 GB, free: 6.285 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001109/0.6269, allocations: 51.83 kB / 0.9561 GB, free: 6.258 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 4.234e-05/0.6269, allocations: 22.66 kB / 0.9562 GB, free: 6.242 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.898e-05/0.627, allocations: 45.67 kB / 0.9562 GB, free: 6.199 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001413/0.6271, allocations: 107.1 kB / 0.9563 GB, free: 6.129 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.578e-06/0.6271, allocations: 0 / 0.9563 GB, free: 6.129 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.382e-06/0.6271, allocations: 0 / 0.9563 GB, free: 6.129 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.047e-06/0.6271, allocations: 1.219 kB / 0.9563 GB, free: 6.129 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.0006733/0.6278, allocations: 0.5355 MB / 0.9568 GB, free: 5.594 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.503e-05/0.6278, allocations: 10.22 kB / 0.9568 GB, free: 5.594 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.665e-05/0.6279, allocations: 44.17 kB / 0.9569 GB, free: 5.543 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.591e-05/0.6279, allocations: 17.14 kB / 0.9569 GB, free: 5.535 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001603/0.6281, allocations: 223.1 kB / 0.9571 GB, free: 5.293 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.178e-05/0.6281, allocations: 3.188 kB / 0.9571 GB, free: 5.293 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.047e-05/0.6282, allocations: 14.83 kB / 0.9571 GB, free: 5.285 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002808/0.6284, allocations: 129.1 kB / 0.9572 GB, free: 5.199 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.874e-06/0.6285, allocations: 0 / 0.9572 GB, free: 5.199 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.402e-05/0.6285, allocations: 9.453 kB / 0.9573 GB, free: 5.191 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.639e-06/0.6285, allocations: 1.281 kB / 0.9573 GB, free: 5.191 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000239/0.6287, allocations: 90.77 kB / 0.9573 GB, free: 5.152 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005239/0.6293, allocations: 461.1 kB / 0.9578 GB, free: 4.711 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000195/0.6295, allocations: 97.92 kB / 0.9579 GB, free: 4.633 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001334/0.6296, allocations: 61.3 kB / 0.9579 GB, free: 4.594 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.739e-05/0.6297, allocations: 2.031 kB / 0.9579 GB, free: 4.594 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002906/0.6299, allocations: 154.5 kB / 0.9581 GB, free: 4.477 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=12): time 1.924e-06/0.63, allocations: 0 / 0.9581 GB, free: 4.477 MB / 0.7169 GB Notification: Performance of matching and sorting (n=12): time 0.0005967/0.6306, allocations: 212.5 kB / 0.9583 GB, free: 4.371 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.852e-05/0.6306, allocations: 79.27 kB / 0.9584 GB, free: 4.277 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001387/0.6308, allocations: 155.1 kB / 0.9585 GB, free: 4.152 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.459e-05/0.6308, allocations: 32.05 kB / 0.9585 GB, free: 4.117 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.86e-05/0.6309, allocations: 111.9 kB / 0.9587 GB, free: 4.008 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.421e-05/0.6309, allocations: 31.95 kB / 0.9587 GB, free: 3.98 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.804e-06/0.6309, allocations: 1.312 kB / 0.9587 GB, free: 3.98 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 7.354e-05/0.631, allocations: 330.7 kB / 0.959 GB, free: 3.652 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001352/0.6311, allocations: 46.31 kB / 0.959 GB, free: 3.633 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000189/0.6313, allocations: 122.4 kB / 0.9592 GB, free: 3.512 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001596/0.6315, allocations: 56.75 kB / 0.9592 GB, free: 3.488 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.6315, allocations: 1.219 kB / 0.9592 GB, free: 3.488 MB / 0.7169 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004014/0.6319, allocations: 181.1 kB / 0.9594 GB, free: 3.391 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.948e-05/0.6319, allocations: 6.109 kB / 0.9594 GB, free: 3.391 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.883e-06/0.632, allocations: 11.91 kB / 0.9594 GB, free: 3.383 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.709e-05/0.632, allocations: 1.938 kB / 0.9594 GB, free: 3.383 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001162/0.6321, allocations: 22.47 kB / 0.9594 GB, free: 3.375 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.063e-05/0.6321, allocations: 10.17 kB / 0.9594 GB, free: 3.367 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001098/0.6322, allocations: 24.05 kB / 0.9595 GB, free: 3.355 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.724e-05/0.6323, allocations: 6.031 kB / 0.9595 GB, free: 3.355 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 0.0001106/0.6324, allocations: 132.7 kB / 0.9596 GB, free: 3.227 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.681e-05/0.6324, allocations: 15.05 kB / 0.9596 GB, free: 3.219 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.088e-05/0.6325, allocations: 21.64 kB / 0.9596 GB, free: 3.199 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.232e-06/0.6325, allocations: 2.969 kB / 0.9596 GB, free: 3.199 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.11e-06/0.6325, allocations: 0 / 0.9596 GB, free: 3.199 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.559e-06/0.6325, allocations: 0 / 0.9596 GB, free: 3.199 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000643/0.6332, allocations: 0.5545 MB / 0.9602 GB, free: 2.699 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.914e-06/0.6332, allocations: 0 / 0.9602 GB, free: 2.699 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.604e-05/0.6333, allocations: 20.3 kB / 0.9602 GB, free: 2.691 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.827e-06/0.6333, allocations: 5.375 kB / 0.9602 GB, free: 2.688 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.362e-05/0.6333, allocations: 5.375 kB / 0.9602 GB, free: 2.684 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.554e-06/0.6333, allocations: 1.375 kB / 0.9602 GB, free: 2.684 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.6333, allocations: 0 / 0.9602 GB, free: 2.684 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003836/0.6337, allocations: 338.3 kB / 0.9605 GB, free: 2.418 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.957e-05/0.6337, allocations: 89.14 kB / 0.9606 GB, free: 2.316 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.273e-05/0.6338, allocations: 5.375 kB / 0.9606 GB, free: 2.312 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001771/0.6339, allocations: 27.09 kB / 0.9606 GB, free: 2.301 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.966e-05/0.634, allocations: 12.11 kB / 0.9607 GB, free: 2.293 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.442e-05/0.634, allocations: 6.875 kB / 0.9607 GB, free: 2.293 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 7.003e-05/0.6341, allocations: 126.2 kB / 0.9608 GB, free: 2.191 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6341, allocations: 0 / 0.9608 GB, free: 2.191 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003662/0.6345, allocations: 44.77 kB / 0.9608 GB, free: 2.176 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.0008354/0.6353, allocations: 0.9708 MB / 0.9618 GB, free: 1.34 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.000355/0.6357, allocations: 120.1 kB / 0.9619 GB, free: 1.297 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.6357, allocations: 4.188 kB / 0.9619 GB, free: 1.293 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001746/0.6359, allocations: 59.53 kB / 0.9619 GB, free: 1.273 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003644/0.6363, allocations: 15.61 kB / 0.962 GB, free: 1.266 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0013/0.6376, allocations: 0.8656 MB / 0.9628 GB, free: 0.5859 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001981/0.6378, allocations: 0.7159 MB / 0.9635 GB, free: 15.87 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 7.335e-05/0.6379, allocations: 21.28 kB / 0.9635 GB, free: 15.86 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.916e-05/0.6379, allocations: 33.97 kB / 0.9636 GB, free: 15.84 MB / 0.7325 GB Notification: Performance of SimCode: time 4.7e-07/0.6379, allocations: 1.156 kB / 0.9636 GB, free: 15.84 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01514/0.6531, allocations: 3.032 MB / 0.9665 GB, free: 14.39 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001739/0.6533, allocations: 225.4 kB / 0.9667 GB, free: 14.14 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.828/2.482, allocations: 0 / 0.9667 GB, free: 14.14 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