Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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_latest_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_latest_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.001994/0.001994, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.002415/0.002415, allocations: 194.2 kB / 16.25 MB, free: 6.621 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.496/1.496, allocations: 222.9 MB / 239.9 MB, free: 4.535 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.998/2.998, allocations: 482.3 MB / 0.7543 GB, free: 11.16 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001986/0.001986, allocations: 65.56 kB / 0.9233 GB, free: 29.54 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3271/0.3291, allocations: 162.2 MB / 1.082 GB, free: 13.61 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.003112/0.3323, allocations: 1.637 MB / 1.083 GB, free: 11.96 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001328/0.3336, allocations: 0.6897 MB / 1.084 GB, free: 11.27 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.146e-05/0.3337, allocations: 3.938 kB / 1.084 GB, free: 11.27 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0001063/0.3338, allocations: 7.938 kB / 1.084 GB, free: 11.26 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 5.472e-05/0.3339, allocations: 15.86 kB / 1.084 GB, free: 11.24 MB / 0.8419 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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.000409/0.3343, allocations: 95.77 kB / 1.084 GB, free: 11.15 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0002022/0.3345, allocations: 139.5 kB / 1.084 GB, free: 11.01 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001411/0.3347, allocations: 40.88 kB / 1.084 GB, free: 10.97 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 9.032e-05/0.3348, allocations: 55.78 kB / 1.084 GB, free: 10.92 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001083/0.3349, allocations: 63.67 kB / 1.084 GB, free: 10.86 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 2.609e-05/0.3349, allocations: 12 kB / 1.084 GB, free: 10.84 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001194/0.335, allocations: 55.97 kB / 1.084 GB, free: 10.79 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 5.198e-05/0.3351, allocations: 27.91 kB / 1.085 GB, free: 10.76 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 8.091e-05/0.3352, allocations: 63.64 kB / 1.085 GB, free: 10.7 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0002478/0.3354, allocations: 163.8 kB / 1.085 GB, free: 10.54 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 7.213e-06/0.3355, allocations: 4 kB / 1.085 GB, free: 10.54 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.442e-06/0.3355, allocations: 0 / 1.085 GB, free: 10.54 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 5.39e-06/0.3355, allocations: 0 / 1.085 GB, free: 10.54 MB / 0.8419 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.0009629/0.3364, allocations: 0.5467 MB / 1.085 GB, free: 9.922 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.249e-05/0.3365, allocations: 12.03 kB / 1.085 GB, free: 9.91 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.055e-05/0.3366, allocations: 12.84 kB / 1.085 GB, free: 9.898 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002465/0.3368, allocations: 220.9 kB / 1.085 GB, free: 9.645 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.726e-05/0.3368, allocations: 8.375 kB / 1.086 GB, free: 9.637 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.961e-05/0.3369, allocations: 4.375 kB / 1.086 GB, free: 9.633 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003305/0.3372, allocations: 135.6 kB / 1.086 GB, free: 9.488 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.307e-06/0.3372, allocations: 0 / 1.086 GB, free: 9.488 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.646e-05/0.3372, allocations: 8 kB / 1.086 GB, free: 9.48 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.378e-06/0.3373, allocations: 0 / 1.086 GB, free: 9.48 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002473/0.3375, allocations: 67.88 kB / 1.086 GB, free: 9.414 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007016/0.3382, allocations: 468.7 kB / 1.086 GB, free: 8.902 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002089/0.3384, allocations: 85.11 kB / 1.086 GB, free: 8.801 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001451/0.3386, allocations: 49.81 kB / 1.086 GB, free: 8.746 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 2.336e-05/0.3386, allocations: 0 / 1.086 GB, free: 8.746 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003097/0.3389, allocations: 153 kB / 1.086 GB, free: 8.578 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=12): time 1.263e-06/0.339, allocations: 0 / 1.086 GB, free: 8.578 MB / 0.8419 GB Notification: Performance of matching and sorting (n=12): time 0.0005823/0.3395, allocations: 189.3 kB / 1.087 GB, free: 8.387 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.241e-05/0.3396, allocations: 85.05 kB / 1.087 GB, free: 8.285 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001524/0.3398, allocations: 163.4 kB / 1.087 GB, free: 8.113 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 3.921e-05/0.3398, allocations: 30.06 kB / 1.087 GB, free: 8.078 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 7.682e-05/0.3399, allocations: 116.3 kB / 1.087 GB, free: 7.957 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 3.314e-05/0.34, allocations: 19.72 kB / 1.087 GB, free: 7.938 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.311e-05/0.34, allocations: 37.7 kB / 1.087 GB, free: 7.895 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001652/0.3402, allocations: 330.7 kB / 1.087 GB, free: 7.562 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001362/0.3403, allocations: 43.91 kB / 1.087 GB, free: 7.52 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000211/0.3406, allocations: 114.3 kB / 1.088 GB, free: 7.371 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003056/0.3409, allocations: 143.5 kB / 1.088 GB, free: 7.203 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.348e-06/0.3409, allocations: 8 kB / 1.088 GB, free: 7.195 MB / 0.8419 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003826/0.3413, allocations: 161.2 kB / 1.088 GB, free: 7.031 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.877e-05/0.3413, allocations: 9.875 kB / 1.088 GB, free: 7.023 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.4e-06/0.3413, allocations: 0 / 1.088 GB, free: 7.023 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.733e-05/0.3413, allocations: 4.281 kB / 1.088 GB, free: 7.02 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001184/0.3415, allocations: 27.91 kB / 1.088 GB, free: 6.992 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.817e-06/0.3415, allocations: 4 kB / 1.088 GB, free: 6.988 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001015/0.3416, allocations: 19.92 kB / 1.088 GB, free: 6.969 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.164e-05/0.3416, allocations: 4 kB / 1.088 GB, free: 6.965 MB / 0.8419 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.0001383/0.3417, allocations: 134.4 kB / 1.088 GB, free: 6.824 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.058e-05/0.3418, allocations: 19.75 kB / 1.088 GB, free: 6.805 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.57e-05/0.3419, allocations: 25.39 kB / 1.088 GB, free: 6.777 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.874e-06/0.3419, allocations: 4 kB / 1.088 GB, free: 6.773 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.3419, allocations: 0 / 1.088 GB, free: 6.773 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.32e-06/0.3419, allocations: 7.938 kB / 1.088 GB, free: 6.766 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007586/0.3426, allocations: 0.525 MB / 1.089 GB, free: 6.184 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.3427, allocations: 0 / 1.089 GB, free: 6.184 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.767e-05/0.3427, allocations: 19.98 kB / 1.089 GB, free: 6.164 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.348e-06/0.3428, allocations: 3.938 kB / 1.089 GB, free: 6.16 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.249e-05/0.3428, allocations: 4 kB / 1.089 GB, free: 6.156 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.352e-06/0.3428, allocations: 0 / 1.089 GB, free: 6.156 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.3428, allocations: 0 / 1.089 GB, free: 6.156 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004481/0.3432, allocations: 330.4 kB / 1.089 GB, free: 5.816 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 6.72e-05/0.3433, allocations: 92.86 kB / 1.089 GB, free: 5.707 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.212e-05/0.3433, allocations: 3.938 kB / 1.089 GB, free: 5.703 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001869/0.3435, allocations: 23.97 kB / 1.089 GB, free: 5.68 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.493e-05/0.3436, allocations: 7.984 kB / 1.089 GB, free: 5.672 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.295e-05/0.3436, allocations: 7.938 kB / 1.089 GB, free: 5.664 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 9.007e-05/0.3437, allocations: 119.2 kB / 1.089 GB, free: 5.547 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.31e-07/0.3437, allocations: 0 / 1.089 GB, free: 5.547 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003491/0.3441, allocations: 44.08 kB / 1.089 GB, free: 5.504 MB / 0.8419 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.0005009/0.3446, allocations: 205.9 kB / 1.089 GB, free: 5.332 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0003671/0.345, allocations: 116.2 kB / 1.09 GB, free: 5.219 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 4.729e-06/0.345, allocations: 8.062 kB / 1.09 GB, free: 5.211 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001596/0.3451, allocations: 51.95 kB / 1.09 GB, free: 5.16 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003494/0.3455, allocations: 13.56 kB / 1.09 GB, free: 5.148 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004887/0.346, allocations: 279.7 kB / 1.09 GB, free: 4.848 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003414/0.3464, allocations: 0.7156 MB / 1.091 GB, free: 4.105 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 6.919e-05/0.3464, allocations: 28.53 kB / 1.091 GB, free: 4.078 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.266e-05/0.3465, allocations: 11.44 kB / 1.091 GB, free: 4.066 MB / 0.8419 GB Notification: Performance of SimCode: time 2.81e-07/0.3465, allocations: 4 kB / 1.091 GB, free: 4.062 MB / 0.8419 GB Notification: Performance of Templates: time 0.0051/0.3516, allocations: 1.713 MB / 1.092 GB, free: 2.363 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer.makefile (rm -f Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; mkfifo Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer.pipe >> ../files/Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer.sim & ./Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_IO_Files_Examples_Printer.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches