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: translateModel(Buildings.Utilities.IO.Files.Examples.Printer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pri1.x.1.|pri1.x.2.",fileNamePrefix="Buildings_9_Buildings.Utilities.IO.Files.Examples.Printer") translateModel(Buildings.Utilities.IO.Files.Examples.Printer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pri1.x.1.|pri1.x.2.",fileNamePrefix="Buildings_9_Buildings.Utilities.IO.Files.Examples.Printer") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008374/0.0008378, 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.007489/0.007489, allocations: 168.9 kB / 16.26 MB, free: 6.656 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.493/1.493, allocations: 223.3 MB / 240.3 MB, free: 5.336 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.406/2.406, allocations: 390.9 MB / 0.6663 GB, free: 2.309 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004945/0.0004944, allocations: 12 kB / 0.816 GB, free: 13.2 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9372/0.9377, allocations: 142.4 MB / 0.955 GB, free: 7.695 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.002018/0.9398, allocations: 1.29 MB / 0.9563 GB, free: 6.676 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001407/0.9412, allocations: 0.6892 MB / 0.957 GB, free: 6.145 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.422e-05/0.9414, allocations: 1.188 kB / 0.957 GB, free: 6.145 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001119/0.9415, allocations: 7.875 kB / 0.957 GB, free: 6.137 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 7.654e-05/0.9416, allocations: 14.05 kB / 0.957 GB, free: 6.125 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.0005343/0.9421, allocations: 96.64 kB / 0.9571 GB, free: 6.059 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002089/0.9423, allocations: 127.3 kB / 0.9572 GB, free: 5.988 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001505/0.9425, allocations: 46.22 kB / 0.9573 GB, free: 5.953 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001043/0.9426, allocations: 46.38 kB / 0.9573 GB, free: 5.926 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 9.325e-05/0.9427, allocations: 53.34 kB / 0.9574 GB, free: 5.891 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.36e-05/0.9427, allocations: 4.5 kB / 0.9574 GB, free: 5.891 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001394/0.9429, allocations: 47.31 kB / 0.9574 GB, free: 5.867 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 4.856e-05/0.9429, allocations: 27.41 kB / 0.9574 GB, free: 5.848 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 7.46e-05/0.943, allocations: 81.39 kB / 0.9575 GB, free: 5.777 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.00025/0.9433, allocations: 159.8 kB / 0.9577 GB, free: 5.668 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 6.403e-06/0.9433, allocations: 0 / 0.9577 GB, free: 5.668 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.405e-06/0.9433, allocations: 3.938 kB / 0.9577 GB, free: 5.664 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.981e-06/0.9433, allocations: 0 / 0.9577 GB, free: 5.664 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.0007256/0.944, allocations: 0.5278 MB / 0.9582 GB, free: 5.137 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.966e-05/0.9441, allocations: 9.156 kB / 0.9582 GB, free: 5.137 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.382e-05/0.9442, allocations: 14.06 kB / 0.9582 GB, free: 5.133 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001766/0.9443, allocations: 223.8 kB / 0.9584 GB, free: 4.891 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.072e-05/0.9444, allocations: 8.406 kB / 0.9584 GB, free: 4.887 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.121e-05/0.9444, allocations: 10.03 kB / 0.9584 GB, free: 4.883 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000301/0.9447, allocations: 133.8 kB / 0.9586 GB, free: 4.793 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.898e-06/0.9447, allocations: 1.5 kB / 0.9586 GB, free: 4.793 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.531e-05/0.9448, allocations: 3.938 kB / 0.9586 GB, free: 4.789 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.352e-06/0.9448, allocations: 9.578 kB / 0.9586 GB, free: 4.781 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002473/0.945, allocations: 84.16 kB / 0.9587 GB, free: 4.75 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006563/0.9457, allocations: 469.4 kB / 0.9591 GB, free: 4.301 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001973/0.9459, allocations: 96.8 kB / 0.9592 GB, free: 4.223 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001458/0.946, allocations: 58.69 kB / 0.9592 GB, free: 4.188 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 3.262e-05/0.9461, allocations: 5.375 kB / 0.9593 GB, free: 4.184 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003007/0.9464, allocations: 150.5 kB / 0.9594 GB, free: 4.07 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=12): time 1.974e-06/0.9464, allocations: 4 kB / 0.9594 GB, free: 4.066 MB / 0.7169 GB Notification: Performance of matching and sorting (n=12): time 0.0006136/0.947, allocations: 206.1 kB / 0.9596 GB, free: 3.969 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.448e-05/0.9471, allocations: 87.84 kB / 0.9597 GB, free: 3.867 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001463/0.9472, allocations: 159.6 kB / 0.9598 GB, free: 3.738 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.456e-05/0.9473, allocations: 32.45 kB / 0.9599 GB, free: 3.703 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 6.694e-05/0.9473, allocations: 115.1 kB / 0.96 GB, free: 3.59 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 4.304e-05/0.9474, allocations: 27.92 kB / 0.96 GB, free: 3.566 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.122e-05/0.9475, allocations: 21.78 kB / 0.96 GB, free: 3.543 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 7.644e-05/0.9475, allocations: 330.9 kB / 0.9603 GB, free: 3.215 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001408/0.9477, allocations: 46.89 kB / 0.9604 GB, free: 3.195 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001856/0.9479, allocations: 120.1 kB / 0.9605 GB, free: 3.078 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003005/0.9482, allocations: 165.9 kB / 0.9607 GB, free: 2.953 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.599e-06/0.9482, allocations: 1.375 kB / 0.9607 GB, free: 2.953 MB / 0.7169 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004103/0.9486, allocations: 177.5 kB / 0.9608 GB, free: 2.859 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.634e-05/0.9486, allocations: 9.766 kB / 0.9608 GB, free: 2.855 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.967e-06/0.9487, allocations: 2.094 kB / 0.9608 GB, free: 2.855 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.906e-05/0.9487, allocations: 3.094 kB / 0.9608 GB, free: 2.855 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001228/0.9488, allocations: 25.98 kB / 0.9609 GB, free: 2.844 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.044e-05/0.9488, allocations: 3.062 kB / 0.9609 GB, free: 2.844 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001447/0.949, allocations: 23.73 kB / 0.9609 GB, free: 2.832 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.493e-05/0.949, allocations: 5.562 kB / 0.9609 GB, free: 2.832 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 0.0001422/0.9492, allocations: 137.7 kB / 0.961 GB, free: 2.699 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.292e-05/0.9492, allocations: 18.94 kB / 0.961 GB, free: 2.688 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.337e-05/0.9493, allocations: 18.11 kB / 0.9611 GB, free: 2.676 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.508e-06/0.9493, allocations: 5.75 kB / 0.9611 GB, free: 2.672 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.306e-06/0.9493, allocations: 1.406 kB / 0.9611 GB, free: 2.672 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.02e-06/0.9493, allocations: 3.938 kB / 0.9611 GB, free: 2.668 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006943/0.95, allocations: 0.5504 MB / 0.9616 GB, free: 2.172 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.535e-06/0.95, allocations: 0 / 0.9616 GB, free: 2.172 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.753e-05/0.9501, allocations: 16.36 kB / 0.9616 GB, free: 2.168 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.209e-06/0.9501, allocations: 5.312 kB / 0.9616 GB, free: 2.164 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.193e-05/0.9501, allocations: 1.375 kB / 0.9616 GB, free: 2.164 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.627e-06/0.9501, allocations: 5.359 kB / 0.9616 GB, free: 2.16 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-06/0.9501, allocations: 5.375 kB / 0.9616 GB, free: 2.156 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004186/0.9506, allocations: 337.5 kB / 0.962 GB, free: 1.891 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 4.061e-05/0.9506, allocations: 89.89 kB / 0.962 GB, free: 1.789 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.311e-05/0.9506, allocations: 4.969 kB / 0.9621 GB, free: 1.785 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001872/0.9508, allocations: 26.16 kB / 0.9621 GB, free: 1.773 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.919e-05/0.9509, allocations: 9.328 kB / 0.9621 GB, free: 1.77 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.882e-05/0.9509, allocations: 5.938 kB / 0.9621 GB, free: 1.77 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 8.992e-05/0.951, allocations: 127 kB / 0.9622 GB, free: 1.668 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.951, allocations: 0 / 0.9622 GB, free: 1.668 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003988/0.9514, allocations: 41.05 kB / 0.9623 GB, free: 1.656 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.0004851/0.9519, allocations: 201.8 kB / 0.9624 GB, free: 1.527 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0004257/0.9524, allocations: 123.7 kB / 0.9626 GB, free: 1.48 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 3.486e-06/0.9524, allocations: 3.938 kB / 0.9626 GB, free: 1.477 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001924/0.9526, allocations: 67.89 kB / 0.9626 GB, free: 1.449 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004049/0.953, allocations: 21.41 kB / 0.9627 GB, free: 1.438 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005671/0.9536, allocations: 283.2 kB / 0.9629 GB, free: 1.199 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002297/0.9538, allocations: 0.7191 MB / 0.9636 GB, free: 492 kB / 0.7169 GB Notification: Performance of simCode: alias equations: time 9.072e-05/0.9539, allocations: 26 kB / 0.9636 GB, free: 480 kB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.374e-05/0.9539, allocations: 14.09 kB / 0.9637 GB, free: 472 kB / 0.7169 GB Notification: Performance of SimCode: time 1.032e-06/0.954, allocations: 0 / 0.9637 GB, free: 472 kB / 0.7169 GB Notification: Performance of Templates: time 0.006728/0.9607, allocations: 1.635 MB / 0.9653 GB, free: 15.64 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Utilities.IO.Files.Examples.Printer.makefile (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 & ./Buildings_9_Buildings.Utilities.IO.Files.Examples.Printer -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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/jenkins/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