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.005893/0.005893, allocations: 100.7 kB / 15.73 MB, free: 6.477 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.001396/0.001396, allocations: 192.4 kB / 16.67 MB, free: 6.391 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.357/1.357, allocations: 222.9 MB / 240.4 MB, free: 4.344 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.475/2.475, allocations: 390.2 MB / 0.6648 GB, free: 192 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.00119/0.00119, allocations: 61.94 kB / 0.9508 GB, free: 5.715 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.312/0.3132, allocations: 140.4 MB / 1.088 GB, free: 1.648 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.00253/0.3158, allocations: 1.578 MB / 1.089 GB, free: 60 kB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001211/0.317, allocations: 0.7027 MB / 1.09 GB, free: 15.35 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.933e-05/0.3171, allocations: 4 kB / 1.09 GB, free: 15.35 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0001097/0.3172, allocations: 11.86 kB / 1.09 GB, free: 15.34 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 5.444e-05/0.3173, allocations: 27.67 kB / 1.09 GB, free: 15.31 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.0004487/0.3177, allocations: 99.75 kB / 1.09 GB, free: 15.21 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0002523/0.318, allocations: 139.6 kB / 1.09 GB, free: 15.07 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001431/0.3181, allocations: 41.08 kB / 1.09 GB, free: 15.03 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 9.493e-05/0.3182, allocations: 55.77 kB / 1.09 GB, free: 14.98 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 8.388e-05/0.3183, allocations: 63.7 kB / 1.091 GB, free: 14.91 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.389e-05/0.3184, allocations: 8 kB / 1.091 GB, free: 14.91 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001168/0.3185, allocations: 55.95 kB / 1.091 GB, free: 14.85 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 5.423e-05/0.3185, allocations: 27.91 kB / 1.091 GB, free: 14.82 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 7.502e-05/0.3186, allocations: 67.66 kB / 1.091 GB, free: 14.76 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002408/0.3189, allocations: 171.4 kB / 1.091 GB, free: 14.59 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.851e-06/0.3189, allocations: 0 / 1.091 GB, free: 14.59 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.784e-06/0.3189, allocations: 0 / 1.091 GB, free: 14.59 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 8.516e-06/0.3189, allocations: 0 / 1.091 GB, free: 14.59 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.0008052/0.3197, allocations: 0.539 MB / 1.091 GB, free: 13.98 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.58e-05/0.3198, allocations: 8.031 kB / 1.091 GB, free: 13.98 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.908e-05/0.3198, allocations: 16.75 kB / 1.091 GB, free: 13.96 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002071/0.32, allocations: 217.1 kB / 1.092 GB, free: 13.71 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.603e-05/0.3201, allocations: 8.375 kB / 1.092 GB, free: 13.7 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.881e-05/0.3201, allocations: 12.31 kB / 1.092 GB, free: 13.69 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002931/0.3204, allocations: 143.6 kB / 1.092 GB, free: 13.54 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.097e-06/0.3204, allocations: 4 kB / 1.092 GB, free: 13.54 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.386e-05/0.3204, allocations: 0 / 1.092 GB, free: 13.54 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.893e-06/0.3204, allocations: 4 kB / 1.092 GB, free: 13.53 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002068/0.3206, allocations: 63.94 kB / 1.092 GB, free: 13.47 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005826/0.3212, allocations: 468.6 kB / 1.092 GB, free: 12.96 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001861/0.3214, allocations: 89.11 kB / 1.092 GB, free: 12.85 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001151/0.3216, allocations: 41.81 kB / 1.092 GB, free: 12.8 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 3.205e-05/0.3216, allocations: 12 kB / 1.092 GB, free: 12.79 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002766/0.3219, allocations: 144.8 kB / 1.093 GB, free: 12.63 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=12): time 1.302e-06/0.3219, allocations: 0 / 1.093 GB, free: 12.63 MB / 0.8575 GB Notification: Performance of matching and sorting (n=12): time 0.0005214/0.3224, allocations: 185.7 kB / 1.093 GB, free: 12.45 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.189e-05/0.3225, allocations: 81.11 kB / 1.093 GB, free: 12.35 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001334/0.3226, allocations: 166.3 kB / 1.093 GB, free: 12.18 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.377e-05/0.3227, allocations: 33.8 kB / 1.093 GB, free: 12.14 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 6.371e-05/0.3227, allocations: 104.3 kB / 1.093 GB, free: 12.03 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 3.826e-05/0.3228, allocations: 39.55 kB / 1.093 GB, free: 11.99 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.077e-05/0.3228, allocations: 33.7 kB / 1.093 GB, free: 11.95 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001239/0.323, allocations: 330.9 kB / 1.093 GB, free: 11.62 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000114/0.3231, allocations: 39.91 kB / 1.094 GB, free: 11.58 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000173/0.3233, allocations: 122.2 kB / 1.094 GB, free: 11.42 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002649/0.3235, allocations: 147.5 kB / 1.094 GB, free: 11.25 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.444e-06/0.3236, allocations: 0 / 1.094 GB, free: 11.25 MB / 0.8575 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003221/0.3239, allocations: 161.3 kB / 1.094 GB, free: 11.09 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.779e-05/0.3239, allocations: 4 kB / 1.094 GB, free: 11.08 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.595e-06/0.3239, allocations: 4 kB / 1.094 GB, free: 11.08 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.646e-05/0.3239, allocations: 4 kB / 1.094 GB, free: 11.07 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001038/0.3241, allocations: 15.98 kB / 1.094 GB, free: 11.06 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.335e-05/0.3241, allocations: 11.92 kB / 1.094 GB, free: 11.05 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001072/0.3242, allocations: 24.12 kB / 1.094 GB, free: 11.02 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.338e-05/0.3242, allocations: 4 kB / 1.094 GB, free: 11.02 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.0001146/0.3243, allocations: 134.3 kB / 1.094 GB, free: 10.88 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.653e-05/0.3244, allocations: 16.14 kB / 1.094 GB, free: 10.86 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.749e-05/0.3244, allocations: 17.39 kB / 1.094 GB, free: 10.85 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.19e-06/0.3244, allocations: 7.984 kB / 1.094 GB, free: 10.84 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.48e-06/0.3244, allocations: 0 / 1.094 GB, free: 10.84 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.28e-06/0.3244, allocations: 3.938 kB / 1.094 GB, free: 10.84 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006617/0.3251, allocations: 0.5405 MB / 1.095 GB, free: 10.24 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.883e-06/0.3251, allocations: 0 / 1.095 GB, free: 10.24 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.685e-05/0.3252, allocations: 15.92 kB / 1.095 GB, free: 10.22 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.817e-06/0.3252, allocations: 7.938 kB / 1.095 GB, free: 10.21 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.186e-05/0.3252, allocations: 0 / 1.095 GB, free: 10.21 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.3252, allocations: 0 / 1.095 GB, free: 10.21 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/0.3252, allocations: 4 kB / 1.095 GB, free: 10.21 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003693/0.3256, allocations: 322.5 kB / 1.095 GB, free: 9.879 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 4.861e-05/0.3257, allocations: 85.02 kB / 1.095 GB, free: 9.777 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.075e-05/0.3257, allocations: 7.938 kB / 1.095 GB, free: 9.77 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001585/0.3259, allocations: 19.98 kB / 1.095 GB, free: 9.75 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.044e-05/0.3259, allocations: 7.984 kB / 1.095 GB, free: 9.742 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.58e-05/0.326, allocations: 20.02 kB / 1.095 GB, free: 9.723 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 7.426e-05/0.326, allocations: 116.2 kB / 1.095 GB, free: 9.609 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.2e-07/0.326, allocations: 4 kB / 1.095 GB, free: 9.605 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0003235/0.3264, allocations: 36 kB / 1.095 GB, free: 9.57 MB / 0.8575 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.0003882/0.3268, allocations: 199.2 kB / 1.096 GB, free: 9.41 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0003358/0.3271, allocations: 111.8 kB / 1.096 GB, free: 9.301 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.3271, allocations: 0 / 1.096 GB, free: 9.301 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001409/0.3273, allocations: 51.91 kB / 1.096 GB, free: 9.25 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003496/0.3276, allocations: 32.38 kB / 1.096 GB, free: 9.219 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000432/0.3281, allocations: 243.8 kB / 1.096 GB, free: 8.953 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002552/0.3283, allocations: 0.7155 MB / 1.097 GB, free: 8.211 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 6.695e-05/0.3284, allocations: 24.53 kB / 1.097 GB, free: 8.188 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.272e-05/0.3285, allocations: 19.44 kB / 1.097 GB, free: 8.168 MB / 0.8575 GB Notification: Performance of SimCode: time 2.3e-07/0.3285, allocations: 0 / 1.097 GB, free: 8.168 MB / 0.8575 GB Notification: Performance of Templates: time 0.004727/0.3332, allocations: 1.789 MB / 1.098 GB, free: 6.391 MB / 0.8575 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