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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.001164/0.001164, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001157/0.001157, allocations: 193.1 kB / 16.53 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.332/1.332, allocations: 222.9 MB / 240.2 MB, free: 4.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.308/2.308, allocations: 390.3 MB / 0.6647 GB, free: 428 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001408/0.001408, allocations: 59.91 kB / 0.8126 GB, free: 14.39 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6287/0.6301, allocations: 140.4 MB / 0.9497 GB, free: 9.117 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.002473/0.6326, allocations: 1.575 MB / 0.9513 GB, free: 7.875 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001122/0.6338, allocations: 0.6863 MB / 0.9519 GB, free: 7.348 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.364e-05/0.6338, allocations: 5.375 kB / 0.9519 GB, free: 7.344 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001098/0.6339, allocations: 20.92 kB / 0.952 GB, free: 7.324 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.468e-05/0.634, allocations: 18.23 kB / 0.952 GB, free: 7.309 MB / 0.7169 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.0004514/0.6345, allocations: 104.4 kB / 0.9521 GB, free: 7.234 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001736/0.6347, allocations: 143.8 kB / 0.9522 GB, free: 7.148 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001585/0.6348, allocations: 41.75 kB / 0.9522 GB, free: 7.121 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 8.402e-05/0.6349, allocations: 56.67 kB / 0.9523 GB, free: 7.086 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 8.102e-05/0.635, allocations: 62 kB / 0.9524 GB, free: 7.043 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.866e-05/0.635, allocations: 10.69 kB / 0.9524 GB, free: 7.043 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001315/0.6352, allocations: 54.27 kB / 0.9524 GB, free: 7.02 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 5.932e-05/0.6352, allocations: 26.61 kB / 0.9524 GB, free: 7 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 7.608e-05/0.6353, allocations: 59.55 kB / 0.9525 GB, free: 6.957 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.000238/0.6356, allocations: 165.1 kB / 0.9527 GB, free: 6.844 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.2e-06/0.6356, allocations: 5.125 kB / 0.9527 GB, free: 6.84 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.543e-06/0.6356, allocations: 0 / 0.9527 GB, free: 6.84 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.122e-06/0.6356, allocations: 0 / 0.9527 GB, free: 6.84 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.0007403/0.6363, allocations: 0.5505 MB / 0.9532 GB, free: 6.289 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.433e-05/0.6364, allocations: 12.88 kB / 0.9532 GB, free: 6.285 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.482e-05/0.6364, allocations: 45.31 kB / 0.9533 GB, free: 6.234 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.919e-05/0.6365, allocations: 18.25 kB / 0.9533 GB, free: 6.227 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000164/0.6367, allocations: 215.5 kB / 0.9535 GB, free: 5.992 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.703e-05/0.6367, allocations: 12.91 kB / 0.9535 GB, free: 5.984 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.869e-05/0.6367, allocations: 5.469 kB / 0.9535 GB, free: 5.984 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002946/0.637, allocations: 131.1 kB / 0.9536 GB, free: 5.891 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.327e-06/0.637, allocations: 5.125 kB / 0.9536 GB, free: 5.887 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.603e-05/0.6371, allocations: 4.531 kB / 0.9536 GB, free: 5.883 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.664e-06/0.6371, allocations: 1.781 kB / 0.9536 GB, free: 5.883 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000246/0.6373, allocations: 69.41 kB / 0.9537 GB, free: 5.852 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005507/0.6379, allocations: 458.3 kB / 0.9541 GB, free: 5.406 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001808/0.6381, allocations: 87.55 kB / 0.9542 GB, free: 5.332 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001271/0.6382, allocations: 50.41 kB / 0.9543 GB, free: 5.297 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.71e-05/0.6382, allocations: 2.031 kB / 0.9543 GB, free: 5.297 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002796/0.6385, allocations: 140 kB / 0.9544 GB, free: 5.188 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=12): time 1.363e-06/0.6385, allocations: 0 / 0.9544 GB, free: 5.188 MB / 0.7169 GB Notification: Performance of matching and sorting (n=12): time 0.0005737/0.6391, allocations: 193.6 kB / 0.9546 GB, free: 5.082 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.029e-05/0.6392, allocations: 83.45 kB / 0.9547 GB, free: 4.984 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000132/0.6393, allocations: 169 kB / 0.9548 GB, free: 4.848 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.357e-05/0.6393, allocations: 32.27 kB / 0.9549 GB, free: 4.812 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.47e-05/0.6394, allocations: 118.2 kB / 0.955 GB, free: 4.695 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.101e-05/0.6394, allocations: 21.25 kB / 0.955 GB, free: 4.68 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.338e-05/0.6395, allocations: 41.86 kB / 0.955 GB, free: 4.645 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.881e-05/0.6396, allocations: 323 kB / 0.9553 GB, free: 4.324 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001305/0.6397, allocations: 36.16 kB / 0.9554 GB, free: 4.309 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001673/0.6399, allocations: 116.5 kB / 0.9555 GB, free: 4.188 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002716/0.6401, allocations: 145 kB / 0.9556 GB, free: 4.07 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.696e-06/0.6402, allocations: 1.469 kB / 0.9556 GB, free: 4.07 MB / 0.7169 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003389/0.6405, allocations: 167.5 kB / 0.9558 GB, free: 3.973 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.555e-05/0.6405, allocations: 5.938 kB / 0.9558 GB, free: 3.973 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.993e-06/0.6405, allocations: 2.688 kB / 0.9558 GB, free: 3.973 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.467e-05/0.6406, allocations: 2.594 kB / 0.9558 GB, free: 3.973 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001065/0.6407, allocations: 24.03 kB / 0.9558 GB, free: 3.961 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.195e-06/0.6407, allocations: 8.219 kB / 0.9558 GB, free: 3.957 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.331e-05/0.6408, allocations: 19.86 kB / 0.9559 GB, free: 3.945 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.022e-05/0.6408, allocations: 3.75 kB / 0.9559 GB, free: 3.945 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 (pri2.firstTrigger,$PRE.pri2.firstTrigger,pri1.firstTrigger,$PRE.pri1.firstTrigger,$whenCondition4,pri1.sampleTrigger,$whenCondition2,pri2.sampleTrigger,$whenCondition3,pri3.firstTrigger,$PRE.pri3.firstTrigger,pri3.sampleTrigger,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.434e-05/0.6409, allocations: 135.7 kB / 0.956 GB, free: 3.816 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.452e-05/0.6409, allocations: 14.88 kB / 0.956 GB, free: 3.809 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.283e-05/0.641, allocations: 20.89 kB / 0.956 GB, free: 3.793 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.575e-06/0.641, allocations: 3.594 kB / 0.956 GB, free: 3.793 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.801e-06/0.641, allocations: 4.172 kB / 0.956 GB, free: 3.789 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.698e-06/0.641, allocations: 7.938 kB / 0.956 GB, free: 3.781 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005829/0.6416, allocations: 0.5359 MB / 0.9566 GB, free: 3.285 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.025e-06/0.6416, allocations: 1.156 kB / 0.9566 GB, free: 3.285 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.141e-05/0.6417, allocations: 12.45 kB / 0.9566 GB, free: 3.281 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.196e-06/0.6417, allocations: 5.125 kB / 0.9566 GB, free: 3.277 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.215e-05/0.6417, allocations: 9.156 kB / 0.9566 GB, free: 3.27 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.6417, allocations: 1.188 kB / 0.9566 GB, free: 3.27 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/0.6417, allocations: 1.125 kB / 0.9566 GB, free: 3.27 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003479/0.6421, allocations: 320.8 kB / 0.9569 GB, free: 3.008 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.725e-05/0.6421, allocations: 92.8 kB / 0.957 GB, free: 2.902 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.133e-05/0.6421, allocations: 6.094 kB / 0.957 GB, free: 2.898 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001728/0.6423, allocations: 17.69 kB / 0.957 GB, free: 2.891 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.536e-05/0.6424, allocations: 11.92 kB / 0.957 GB, free: 2.883 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.214e-05/0.6424, allocations: 7 kB / 0.957 GB, free: 2.883 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 6.146e-05/0.6425, allocations: 117.4 kB / 0.9571 GB, free: 2.789 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6425, allocations: 1.125 kB / 0.9571 GB, free: 2.789 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003391/0.6428, allocations: 40.64 kB / 0.9572 GB, free: 2.777 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008163/0.6436, allocations: 0.9747 MB / 0.9581 GB, free: 1.926 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003473/0.644, allocations: 116.3 kB / 0.9582 GB, free: 1.875 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.644, allocations: 0 / 0.9582 GB, free: 1.875 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.00015/0.6442, allocations: 53.16 kB / 0.9583 GB, free: 1.855 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003614/0.6445, allocations: 21.36 kB / 0.9583 GB, free: 1.844 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001817/0.6463, allocations: 1.889 MB / 0.9602 GB, free: 160 kB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002694/0.6466, allocations: 0.7113 MB / 0.9608 GB, free: 15.45 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 6.768e-05/0.6467, allocations: 25.56 kB / 0.9609 GB, free: 15.43 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.328e-05/0.6468, allocations: 38.98 kB / 0.9609 GB, free: 15.4 MB / 0.7325 GB Notification: Performance of SimCode: time 2.11e-07/0.6468, allocations: 0 / 0.9609 GB, free: 15.4 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02104/0.6678, allocations: 3.39 MB / 0.9642 GB, free: 13.64 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.506/8.173, allocations: 5.031 kB / 0.9642 GB, free: 13.64 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 & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Utilities.IO.Files.Examples.Printer_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_9_Buildings_Utilities_IO_Files_Examples_Printer.fmu > Buildings_9_Buildings.Utilities.IO.Files.Examples.Printer.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.IO.Files.Examples.Printer_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_IO_Files_Examples_Printer.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.IO.Files.Examples.Printer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches