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.007365/0.007365, allocations: 103.2 kB / 15.73 MB, free: 6.004 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.001626/0.001626, allocations: 191.2 kB / 16.67 MB, free: 5.93 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.399/1.399, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.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.276/2.276, allocations: 390.3 MB / 0.6648 GB, free: 0.6211 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001324/0.001324, allocations: 63.91 kB / 0.9504 GB, free: 8.188 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8133/0.8146, allocations: 140.4 MB / 1.087 GB, free: 5.289 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.002392/0.8171, allocations: 1.583 MB / 1.089 GB, free: 4.195 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001186/0.8183, allocations: 0.6905 MB / 1.09 GB, free: 3.73 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.396e-05/0.8183, allocations: 1.344 kB / 1.09 GB, free: 3.73 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0001055/0.8184, allocations: 14.59 kB / 1.09 GB, free: 3.719 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 5.273e-05/0.8185, allocations: 15.95 kB / 1.09 GB, free: 3.707 MB / 0.8575 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.0004674/0.819, allocations: 112.6 kB / 1.09 GB, free: 3.648 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001798/0.8192, allocations: 142.8 kB / 1.09 GB, free: 3.582 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001321/0.8193, allocations: 31.55 kB / 1.09 GB, free: 3.566 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 8.621e-05/0.8194, allocations: 53.45 kB / 1.09 GB, free: 3.543 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 8.857e-05/0.8195, allocations: 70.19 kB / 1.09 GB, free: 3.508 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.467e-05/0.8196, allocations: 10.38 kB / 1.09 GB, free: 3.508 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001209/0.8197, allocations: 48.11 kB / 1.09 GB, free: 3.496 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 5.595e-05/0.8197, allocations: 34.31 kB / 1.09 GB, free: 3.477 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 7.406e-05/0.8198, allocations: 61.52 kB / 1.09 GB, free: 3.438 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002561/0.8201, allocations: 167.3 kB / 1.09 GB, free: 3.371 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.8201, allocations: 1.125 kB / 1.09 GB, free: 3.371 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.394e-06/0.8201, allocations: 0.6094 kB / 1.09 GB, free: 3.371 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.003e-05/0.8201, allocations: 0 / 1.09 GB, free: 3.371 MB / 0.8575 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.0007593/0.8209, allocations: 0.5455 MB / 1.091 GB, free: 2.855 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.609e-05/0.8209, allocations: 9.391 kB / 1.091 GB, free: 2.855 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.42e-05/0.821, allocations: 51.02 kB / 1.091 GB, free: 2.801 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.251e-05/0.821, allocations: 18.73 kB / 1.091 GB, free: 2.793 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001744/0.8212, allocations: 217.2 kB / 1.091 GB, free: 2.57 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.431e-05/0.8212, allocations: 5.422 kB / 1.091 GB, free: 2.57 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.338e-05/0.8213, allocations: 10.97 kB / 1.091 GB, free: 2.566 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003227/0.8216, allocations: 132.3 kB / 1.091 GB, free: 2.492 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.112e-05/0.8216, allocations: 8.859 kB / 1.091 GB, free: 2.484 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.672e-05/0.8216, allocations: 5.797 kB / 1.091 GB, free: 2.48 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.36e-06/0.8216, allocations: 1.156 kB / 1.091 GB, free: 2.48 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002625/0.8219, allocations: 61.98 kB / 1.091 GB, free: 2.473 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006224/0.8225, allocations: 460.2 kB / 1.092 GB, free: 2.078 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002086/0.8228, allocations: 81.12 kB / 1.092 GB, free: 2.02 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001507/0.8229, allocations: 50.83 kB / 1.092 GB, free: 1.992 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 3.106e-05/0.8229, allocations: 6.344 kB / 1.092 GB, free: 1.988 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003096/0.8233, allocations: 149.5 kB / 1.092 GB, free: 1.895 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=12): time 1.533e-06/0.8233, allocations: 4.562 kB / 1.092 GB, free: 1.891 MB / 0.8575 GB Notification: Performance of matching and sorting (n=12): time 0.0006257/0.8239, allocations: 190.5 kB / 1.092 GB, free: 1.816 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.813e-05/0.824, allocations: 80.69 kB / 1.092 GB, free: 1.723 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001201/0.8241, allocations: 172.2 kB / 1.093 GB, free: 1.594 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.225e-05/0.8241, allocations: 33.11 kB / 1.093 GB, free: 1.559 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 4.935e-05/0.8242, allocations: 111.6 kB / 1.093 GB, free: 1.453 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 3.487e-05/0.8242, allocations: 30.78 kB / 1.093 GB, free: 1.43 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.781e-05/0.8243, allocations: 33.56 kB / 1.093 GB, free: 1.406 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 5.334e-05/0.8243, allocations: 327.8 kB / 1.093 GB, free: 1.086 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001357/0.8245, allocations: 32.48 kB / 1.093 GB, free: 1.082 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001986/0.8247, allocations: 117.3 kB / 1.093 GB, free: 0.9727 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003453/0.825, allocations: 146.3 kB / 1.093 GB, free: 0.8672 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.396e-06/0.825, allocations: 1.609 kB / 1.093 GB, free: 0.8672 MB / 0.8575 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003768/0.8254, allocations: 165.3 kB / 1.094 GB, free: 0.793 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.928e-05/0.8255, allocations: 5.969 kB / 1.094 GB, free: 0.793 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.616e-06/0.8255, allocations: 6.578 kB / 1.094 GB, free: 0.7891 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.071e-05/0.8255, allocations: 3 kB / 1.094 GB, free: 0.7891 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001275/0.8256, allocations: 19.7 kB / 1.094 GB, free: 0.7852 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.224e-05/0.8257, allocations: 4.062 kB / 1.094 GB, free: 0.7852 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001102/0.8258, allocations: 19.44 kB / 1.094 GB, free: 0.7773 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.427e-05/0.8258, allocations: 8.906 kB / 1.094 GB, free: 0.7734 MB / 0.8575 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 0.0001086/0.8259, allocations: 139.9 kB / 1.094 GB, free: 0.6406 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.013e-05/0.8259, allocations: 12.61 kB / 1.094 GB, free: 0.6367 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.679e-05/0.826, allocations: 20.48 kB / 1.094 GB, free: 0.6211 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.2e-06/0.826, allocations: 1.625 kB / 1.094 GB, free: 0.6211 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.227e-06/0.826, allocations: 5.766 kB / 1.094 GB, free: 0.6172 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.049e-06/0.826, allocations: 4.734 kB / 1.094 GB, free: 0.6133 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007129/0.8268, allocations: 0.5285 MB / 1.094 GB, free: 188 kB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.815e-06/0.8268, allocations: 288 / 1.094 GB, free: 188 kB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.697e-05/0.8269, allocations: 12.75 kB / 1.094 GB, free: 188 kB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.178e-06/0.8269, allocations: 5.906 kB / 1.094 GB, free: 184 kB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.515e-05/0.8269, allocations: 14.45 kB / 1.094 GB, free: 172 kB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.885e-06/0.8269, allocations: 5.156 kB / 1.094 GB, free: 168 kB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.945e-06/0.8269, allocations: 0.7969 kB / 1.094 GB, free: 168 kB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004393/0.8273, allocations: 322.5 kB / 1.095 GB, free: 15.92 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 5.377e-05/0.8274, allocations: 89.88 kB / 1.095 GB, free: 15.82 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.785e-05/0.8274, allocations: 10.17 kB / 1.095 GB, free: 15.81 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001876/0.8276, allocations: 14.88 kB / 1.095 GB, free: 15.81 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.569e-05/0.8277, allocations: 13.05 kB / 1.095 GB, free: 15.81 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.092e-05/0.8278, allocations: 7.828 kB / 1.095 GB, free: 15.81 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0001079/0.8279, allocations: 119.9 kB / 1.095 GB, free: 15.72 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.21e-07/0.8279, allocations: 0 / 1.095 GB, free: 15.72 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0003914/0.8283, allocations: 43.05 kB / 1.095 GB, free: 15.71 MB / 0.8731 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.001079/0.8294, allocations: 0.9565 MB / 1.096 GB, free: 14.91 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0003937/0.8298, allocations: 113.3 kB / 1.096 GB, free: 14.88 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.8298, allocations: 0.625 kB / 1.096 GB, free: 14.88 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0001761/0.83, allocations: 53.98 kB / 1.096 GB, free: 14.86 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004132/0.8304, allocations: 24.14 kB / 1.096 GB, free: 14.85 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002401/0.8328, allocations: 1.9 MB / 1.098 GB, free: 13.26 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000267/0.8331, allocations: 0.7104 MB / 1.099 GB, free: 12.57 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 8.579e-05/0.8332, allocations: 25.56 kB / 1.099 GB, free: 12.56 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.672e-05/0.8333, allocations: 37.83 kB / 1.099 GB, free: 12.54 MB / 0.8731 GB Notification: Performance of SimCode: time 3.21e-07/0.8333, allocations: 0 / 1.099 GB, free: 12.54 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02172/0.855, allocations: 3.44 MB / 1.102 GB, free: 11.95 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.901/8.756, allocations: 6.344 kB / 1.102 GB, free: 11.95 MB / 0.8731 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