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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.0008711/0.0008711, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.005185/0.005185, allocations: 168.9 kB / 16.26 MB, free: 6.648 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.229/1.229, allocations: 223.3 MB / 240.3 MB, free: 5.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.143/2.143, allocations: 390.9 MB / 0.6664 GB, free: 2.41 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003076/0.0003079, allocations: 8 kB / 0.8161 GB, free: 13.15 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.534/0.5343, allocations: 142.4 MB / 0.9552 GB, free: 7.523 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.001281/0.5356, allocations: 1.29 MB / 0.9564 GB, free: 6.504 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0008518/0.5365, allocations: 0.6856 MB / 0.9571 GB, free: 5.977 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.961e-05/0.5365, allocations: 1.312 kB / 0.9571 GB, free: 5.977 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 7.163e-05/0.5366, allocations: 11.81 kB / 0.9571 GB, free: 5.965 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.544e-05/0.5366, allocations: 19.28 kB / 0.9571 GB, free: 5.949 MB / 0.7169 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.0003423/0.537, allocations: 88.19 kB / 0.9572 GB, free: 5.891 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001331/0.5371, allocations: 133 kB / 0.9573 GB, free: 5.812 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001085/0.5372, allocations: 39.08 kB / 0.9574 GB, free: 5.785 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 6.979e-05/0.5373, allocations: 47.47 kB / 0.9574 GB, free: 5.758 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.966e-05/0.5374, allocations: 57.41 kB / 0.9575 GB, free: 5.719 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.709e-05/0.5374, allocations: 4.719 kB / 0.9575 GB, free: 5.719 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 9.481e-05/0.5375, allocations: 55.86 kB / 0.9575 GB, free: 5.688 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 4.202e-05/0.5376, allocations: 18.67 kB / 0.9576 GB, free: 5.676 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 5.649e-05/0.5376, allocations: 84.19 kB / 0.9576 GB, free: 5.602 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001658/0.5378, allocations: 160.7 kB / 0.9578 GB, free: 5.492 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.106e-06/0.5378, allocations: 0 / 0.9578 GB, free: 5.492 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.593e-06/0.5378, allocations: 0 / 0.9578 GB, free: 5.492 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.977e-06/0.5378, allocations: 1.188 kB / 0.9578 GB, free: 5.492 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.0006144/0.5385, allocations: 0.5266 MB / 0.9583 GB, free: 4.965 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.444e-05/0.5385, allocations: 9.781 kB / 0.9583 GB, free: 4.965 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.39e-05/0.5385, allocations: 41.73 kB / 0.9584 GB, free: 4.918 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.84e-05/0.5386, allocations: 16.28 kB / 0.9584 GB, free: 4.91 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001353/0.5387, allocations: 212.8 kB / 0.9586 GB, free: 4.68 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.341e-05/0.5387, allocations: 8.719 kB / 0.9586 GB, free: 4.676 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.691e-05/0.5388, allocations: 10.25 kB / 0.9586 GB, free: 4.672 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002719/0.539, allocations: 152.6 kB / 0.9587 GB, free: 4.566 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.725e-06/0.5391, allocations: 1.469 kB / 0.9587 GB, free: 4.566 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.246e-05/0.5391, allocations: 0 / 0.9587 GB, free: 4.566 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.46e-06/0.5391, allocations: 6.438 kB / 0.9587 GB, free: 4.562 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002314/0.5393, allocations: 82.12 kB / 0.9588 GB, free: 4.531 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004677/0.5398, allocations: 474.1 kB / 0.9593 GB, free: 4.078 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001747/0.54, allocations: 94.19 kB / 0.9594 GB, free: 4.004 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001247/0.5401, allocations: 49.31 kB / 0.9594 GB, free: 3.977 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.914e-05/0.5401, allocations: 9.375 kB / 0.9594 GB, free: 3.969 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002488/0.5404, allocations: 154.5 kB / 0.9596 GB, free: 3.852 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=12): time 1.242e-06/0.5404, allocations: 0.9062 kB / 0.9596 GB, free: 3.852 MB / 0.7169 GB Notification: Performance of matching and sorting (n=12): time 0.0005163/0.5409, allocations: 209.4 kB / 0.9598 GB, free: 3.75 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.683e-05/0.541, allocations: 83.66 kB / 0.9598 GB, free: 3.652 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.333e-05/0.5411, allocations: 168.4 kB / 0.96 GB, free: 3.516 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.785e-05/0.5411, allocations: 31.8 kB / 0.96 GB, free: 3.48 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.671e-05/0.5411, allocations: 111.2 kB / 0.9601 GB, free: 3.371 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.549e-05/0.5412, allocations: 24.81 kB / 0.9602 GB, free: 3.352 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.53e-05/0.5412, allocations: 21.83 kB / 0.9602 GB, free: 3.328 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.689e-05/0.5412, allocations: 323 kB / 0.9605 GB, free: 3.008 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001308/0.5414, allocations: 47.22 kB / 0.9605 GB, free: 2.988 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001495/0.5415, allocations: 134.4 kB / 0.9607 GB, free: 2.859 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002659/0.5418, allocations: 161.1 kB / 0.9608 GB, free: 2.738 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.865e-06/0.5418, allocations: 1.031 kB / 0.9608 GB, free: 2.738 MB / 0.7169 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000328/0.5421, allocations: 182.3 kB / 0.961 GB, free: 2.641 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.05e-05/0.5422, allocations: 5.5 kB / 0.961 GB, free: 2.641 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.019e-06/0.5422, allocations: 2.75 kB / 0.961 GB, free: 2.641 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.099e-05/0.5422, allocations: 2.75 kB / 0.961 GB, free: 2.641 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.557e-05/0.5423, allocations: 25.86 kB / 0.961 GB, free: 2.629 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.962e-06/0.5423, allocations: 2.75 kB / 0.961 GB, free: 2.629 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.396e-05/0.5424, allocations: 24.3 kB / 0.9611 GB, free: 2.617 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.048e-05/0.5424, allocations: 5.5 kB / 0.9611 GB, free: 2.617 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 7.239e-05/0.5425, allocations: 132.8 kB / 0.9612 GB, free: 2.488 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.187e-05/0.5425, allocations: 16.06 kB / 0.9612 GB, free: 2.48 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.473e-05/0.5426, allocations: 21.52 kB / 0.9612 GB, free: 2.465 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.756e-06/0.5426, allocations: 5.609 kB / 0.9612 GB, free: 2.461 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.967e-06/0.5426, allocations: 5.312 kB / 0.9612 GB, free: 2.457 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.627e-06/0.5426, allocations: 7.875 kB / 0.9612 GB, free: 2.449 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000527/0.5431, allocations: 0.5427 MB / 0.9618 GB, free: 1.961 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.5431, allocations: 0 / 0.9618 GB, free: 1.961 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.994e-05/0.5432, allocations: 24.3 kB / 0.9618 GB, free: 1.949 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.785e-06/0.5432, allocations: 5.312 kB / 0.9618 GB, free: 1.945 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.217e-06/0.5432, allocations: 1.375 kB / 0.9618 GB, free: 1.945 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.833e-06/0.5432, allocations: 1.375 kB / 0.9618 GB, free: 1.945 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.5432, allocations: 1.375 kB / 0.9618 GB, free: 1.945 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003333/0.5436, allocations: 334 kB / 0.9621 GB, free: 1.684 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.278e-05/0.5436, allocations: 97.25 kB / 0.9622 GB, free: 1.574 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.762e-05/0.5436, allocations: 1 kB / 0.9622 GB, free: 1.574 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001733/0.5438, allocations: 22.73 kB / 0.9622 GB, free: 1.566 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.524e-05/0.5438, allocations: 12.83 kB / 0.9623 GB, free: 1.559 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.793e-05/0.5439, allocations: 9.984 kB / 0.9623 GB, free: 1.555 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 5.586e-05/0.5439, allocations: 127.3 kB / 0.9624 GB, free: 1.453 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.21e-07/0.5439, allocations: 0 / 0.9624 GB, free: 1.453 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003119/0.5443, allocations: 32.59 kB / 0.9624 GB, free: 1.449 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.0007275/0.545, allocations: 0.9758 MB / 0.9634 GB, free: 0.6055 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003522/0.5454, allocations: 120.1 kB / 0.9635 GB, free: 0.5625 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.5454, allocations: 0 / 0.9635 GB, free: 0.5625 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.000168/0.5455, allocations: 68.86 kB / 0.9635 GB, free: 0.5352 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003385/0.5459, allocations: 19.12 kB / 0.9636 GB, free: 0.5273 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001874/0.5478, allocations: 1.959 MB / 0.9655 GB, free: 14.79 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002195/0.548, allocations: 0.7189 MB / 0.9662 GB, free: 14.07 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 6.043e-05/0.5481, allocations: 21.16 kB / 0.9662 GB, free: 14.06 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.242e-05/0.5481, allocations: 35.08 kB / 0.9662 GB, free: 14.04 MB / 0.7325 GB Notification: Performance of SimCode: time 1.714e-06/0.5481, allocations: 0 / 0.9662 GB, free: 14.04 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01514/0.5633, allocations: 3.038 MB / 0.9692 GB, free: 12.59 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002101/0.5635, allocations: 240.8 kB / 0.9694 GB, free: 12.33 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.369/2.933, allocations: 3.938 kB / 0.9694 GB, free: 12.32 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/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) diffSimulationResults("Buildings_9_Buildings.Utilities.IO.Files.Examples.Printer_res.mat","/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