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.001479/0.001479, allocations: 106.1 kB / 15.98 MB, free: 5.891 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.001931/0.001931, allocations: 196.4 kB / 16.91 MB, free: 5.746 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.443/1.443, allocations: 222.9 MB / 240.6 MB, free: 4.547 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.448/2.448, allocations: 390.2 MB / 0.665 GB, free: 0.5391 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001581/0.001581, allocations: 71.88 kB / 0.8127 GB, free: 14.78 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6329/0.6345, allocations: 140.4 MB / 0.9498 GB, free: 9.094 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.002383/0.6369, allocations: 1.632 MB / 0.9514 GB, free: 7.812 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001024/0.638, allocations: 0.687 MB / 0.952 GB, free: 7.285 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.455e-05/0.638, allocations: 1.375 kB / 0.952 GB, free: 7.285 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 9.527e-05/0.6381, allocations: 11.86 kB / 0.952 GB, free: 7.273 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.895e-05/0.6382, allocations: 18.61 kB / 0.9521 GB, free: 7.258 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.0003928/0.6386, allocations: 106 kB / 0.9522 GB, free: 7.184 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001435/0.6388, allocations: 139 kB / 0.9523 GB, free: 7.102 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001229/0.6389, allocations: 40.09 kB / 0.9523 GB, free: 7.074 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 7.252e-05/0.639, allocations: 49.06 kB / 0.9524 GB, free: 7.047 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.972e-05/0.6391, allocations: 66.73 kB / 0.9524 GB, free: 7 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.228e-05/0.6391, allocations: 10.22 kB / 0.9525 GB, free: 7 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001058/0.6392, allocations: 54.5 kB / 0.9525 GB, free: 6.977 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 4.335e-05/0.6392, allocations: 34.97 kB / 0.9525 GB, free: 6.949 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 6.192e-05/0.6393, allocations: 60.16 kB / 0.9526 GB, free: 6.906 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001435/0.6395, allocations: 107.9 kB / 0.9527 GB, free: 6.836 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.6395, allocations: 0 / 0.9527 GB, free: 6.836 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.212e-06/0.6395, allocations: 0 / 0.9527 GB, free: 6.836 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.049e-06/0.6395, allocations: 0 / 0.9527 GB, free: 6.836 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.0006869/0.6402, allocations: 0.5552 MB / 0.9532 GB, free: 6.281 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.229e-05/0.6402, allocations: 8.844 kB / 0.9533 GB, free: 6.281 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.604e-05/0.6403, allocations: 17.38 kB / 0.9533 GB, free: 6.273 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000147/0.6404, allocations: 215.8 kB / 0.9535 GB, free: 6.039 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.093e-05/0.6404, allocations: 12.3 kB / 0.9535 GB, free: 6.031 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.263e-05/0.6405, allocations: 11 kB / 0.9535 GB, free: 6.027 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002813/0.6408, allocations: 130.8 kB / 0.9536 GB, free: 5.934 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.276e-06/0.6408, allocations: 0 / 0.9536 GB, free: 5.934 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.451e-05/0.6408, allocations: 1.156 kB / 0.9536 GB, free: 5.934 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.769e-06/0.6408, allocations: 1.938 kB / 0.9536 GB, free: 5.934 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002334/0.641, allocations: 73.47 kB / 0.9537 GB, free: 5.898 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005046/0.6416, allocations: 466.7 kB / 0.9541 GB, free: 5.445 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00018/0.6418, allocations: 86.75 kB / 0.9542 GB, free: 5.371 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001209/0.6419, allocations: 47.16 kB / 0.9543 GB, free: 5.34 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.488e-05/0.6419, allocations: 1.25 kB / 0.9543 GB, free: 5.34 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002559/0.6422, allocations: 152.6 kB / 0.9544 GB, free: 5.219 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=12): time 1.393e-06/0.6422, allocations: 0 / 0.9544 GB, free: 5.219 MB / 0.7169 GB Notification: Performance of matching and sorting (n=12): time 0.0005224/0.6427, allocations: 186 kB / 0.9546 GB, free: 5.121 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.845e-05/0.6428, allocations: 83.55 kB / 0.9547 GB, free: 5.023 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001053/0.6429, allocations: 159.7 kB / 0.9548 GB, free: 4.895 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.057e-05/0.6429, allocations: 33.05 kB / 0.9549 GB, free: 4.859 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.276e-05/0.6429, allocations: 114.8 kB / 0.955 GB, free: 4.746 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.946e-05/0.643, allocations: 20.12 kB / 0.955 GB, free: 4.73 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.149e-05/0.643, allocations: 39.05 kB / 0.955 GB, free: 4.699 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.837e-05/0.6431, allocations: 334 kB / 0.9553 GB, free: 4.367 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001216/0.6432, allocations: 37.44 kB / 0.9554 GB, free: 4.352 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001534/0.6434, allocations: 116.6 kB / 0.9555 GB, free: 4.23 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002552/0.6436, allocations: 152.8 kB / 0.9556 GB, free: 4.105 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.686e-06/0.6436, allocations: 0 / 0.9556 GB, free: 4.105 MB / 0.7169 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003315/0.644, allocations: 168.3 kB / 0.9558 GB, free: 4.008 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.544e-05/0.644, allocations: 6.781 kB / 0.9558 GB, free: 4.008 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.212e-06/0.644, allocations: 2.344 kB / 0.9558 GB, free: 4.008 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.388e-05/0.644, allocations: 2.531 kB / 0.9558 GB, free: 4.008 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001084/0.6442, allocations: 18.45 kB / 0.9558 GB, free: 4 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.844e-06/0.6442, allocations: 7.656 kB / 0.9558 GB, free: 3.996 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.883e-05/0.6443, allocations: 15.77 kB / 0.9558 GB, free: 3.988 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.194e-05/0.6443, allocations: 9.031 kB / 0.9559 GB, free: 3.984 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 9.16e-05/0.6444, allocations: 137.3 kB / 0.956 GB, free: 3.852 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.726e-05/0.6444, allocations: 19.72 kB / 0.956 GB, free: 3.84 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.146e-05/0.6445, allocations: 13.97 kB / 0.956 GB, free: 3.832 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.975e-06/0.6445, allocations: 1.031 kB / 0.956 GB, free: 3.832 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.6445, allocations: 1.281 kB / 0.956 GB, free: 3.832 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.31e-06/0.6445, allocations: 13.28 kB / 0.956 GB, free: 3.82 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005906/0.6451, allocations: 0.5288 MB / 0.9565 GB, free: 3.332 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.6451, allocations: 1.188 kB / 0.9565 GB, free: 3.332 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.425e-05/0.6452, allocations: 16.55 kB / 0.9566 GB, free: 3.324 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.309e-06/0.6452, allocations: 9.172 kB / 0.9566 GB, free: 3.316 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.137e-05/0.6452, allocations: 1.469 kB / 0.9566 GB, free: 3.316 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.385e-06/0.6452, allocations: 1.312 kB / 0.9566 GB, free: 3.316 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.6452, allocations: 0 / 0.9566 GB, free: 3.316 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003451/0.6456, allocations: 317.9 kB / 0.9569 GB, free: 3.059 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.688e-05/0.6456, allocations: 88.67 kB / 0.957 GB, free: 2.957 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.457e-05/0.6456, allocations: 13.14 kB / 0.957 GB, free: 2.945 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001781/0.6458, allocations: 14.23 kB / 0.957 GB, free: 2.941 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.011e-05/0.6459, allocations: 19.67 kB / 0.957 GB, free: 2.926 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.325e-05/0.6459, allocations: 10.78 kB / 0.957 GB, free: 2.922 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 6.275e-05/0.646, allocations: 122.6 kB / 0.9571 GB, free: 2.824 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.01e-07/0.646, allocations: 96 / 0.9571 GB, free: 2.824 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003546/0.6463, allocations: 45.02 kB / 0.9572 GB, free: 2.809 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.0003883/0.6467, allocations: 205.7 kB / 0.9574 GB, free: 2.676 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003421/0.6471, allocations: 113.8 kB / 0.9575 GB, free: 2.629 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 3.627e-06/0.6471, allocations: 3.984 kB / 0.9575 GB, free: 2.625 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001493/0.6473, allocations: 53.19 kB / 0.9575 GB, free: 2.605 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003738/0.6476, allocations: 21.52 kB / 0.9576 GB, free: 2.594 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004383/0.6481, allocations: 304.7 kB / 0.9578 GB, free: 2.332 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001293/0.6482, allocations: 0.7232 MB / 0.9586 GB, free: 1.609 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.759e-05/0.6483, allocations: 19.72 kB / 0.9586 GB, free: 1.598 MB / 0.7169 GB Notification: Performance of SimCode: time 4.21e-07/0.6483, allocations: 0 / 0.9586 GB, free: 1.598 MB / 0.7169 GB Notification: Performance of Templates: time 0.004229/0.6525, allocations: 2.049 MB / 0.9606 GB, free: 0.543 MB / 0.7169 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/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