Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.001039/0.001039, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001157/0.001157, allocations: 193.3 kB / 16.14 MB, free: 6.652 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.449/1.449, allocations: 222.9 MB / 239.8 MB, free: 4.621 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.534/2.534, allocations: 437 MB / 0.7099 GB, free: 5.379 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001716/0.001716, allocations: 63.91 kB / 0.8685 GB, free: 5.211 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6688/0.6705, allocations: 151.6 MB / 1.017 GB, free: 2.793 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.002636/0.6732, allocations: 1.653 MB / 1.018 GB, free: 1.133 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001136/0.6743, allocations: 0.6936 MB / 1.019 GB, free: 444 kB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.255e-05/0.6744, allocations: 0 / 1.019 GB, free: 444 kB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.0001564/0.6746, allocations: 11.88 kB / 1.019 GB, free: 432 kB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 5.7e-05/0.6747, allocations: 15.84 kB / 1.019 GB, free: 416 kB / 0.7637 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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.000446/0.6751, allocations: 107.8 kB / 1.019 GB, free: 308 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0001791/0.6753, allocations: 127.6 kB / 1.019 GB, free: 180 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001577/0.6755, allocations: 25.11 kB / 1.019 GB, free: 152 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 9.645e-05/0.6756, allocations: 55.83 kB / 1.019 GB, free: 96 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 9.368e-05/0.6757, allocations: 55.75 kB / 1.019 GB, free: 40 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 2.87e-05/0.6757, allocations: 15.92 kB / 1.019 GB, free: 24 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001295/0.6758, allocations: 47.91 kB / 1.019 GB, free: 15.98 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 5.618e-05/0.6759, allocations: 27.91 kB / 1.019 GB, free: 15.95 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 7.708e-05/0.676, allocations: 55.66 kB / 1.019 GB, free: 15.89 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.00021/0.6762, allocations: 157.5 kB / 1.02 GB, free: 15.74 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.6762, allocations: 3.938 kB / 1.02 GB, free: 15.74 MB / 0.7794 GB Notification: Performance of FrontEnd: time 9.31e-07/0.6762, allocations: 0 / 1.02 GB, free: 15.74 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.379e-06/0.6762, allocations: 0 / 1.02 GB, free: 15.74 MB / 0.7794 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.0007853/0.677, allocations: 0.5546 MB / 1.02 GB, free: 15.12 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.275e-05/0.6771, allocations: 8.031 kB / 1.02 GB, free: 15.11 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.388e-05/0.6771, allocations: 16.75 kB / 1.02 GB, free: 15.09 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001906/0.6773, allocations: 208.1 kB / 1.02 GB, free: 14.85 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.573e-05/0.6773, allocations: 12.36 kB / 1.02 GB, free: 14.84 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.184e-05/0.6774, allocations: 20.3 kB / 1.02 GB, free: 14.82 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003037/0.6777, allocations: 127.7 kB / 1.02 GB, free: 14.68 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.512e-06/0.6777, allocations: 0 / 1.02 GB, free: 14.68 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.431e-05/0.6777, allocations: 0 / 1.02 GB, free: 14.68 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.077e-06/0.6777, allocations: 0 / 1.02 GB, free: 14.68 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002244/0.678, allocations: 71.94 kB / 1.021 GB, free: 14.61 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005823/0.6785, allocations: 464.7 kB / 1.021 GB, free: 14.11 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001907/0.6787, allocations: 89.12 kB / 1.021 GB, free: 14 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001252/0.6789, allocations: 45.81 kB / 1.021 GB, free: 13.95 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.25e-05/0.6789, allocations: 0 / 1.021 GB, free: 13.95 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002745/0.6792, allocations: 156.9 kB / 1.021 GB, free: 13.78 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=12): time 1.183e-06/0.6792, allocations: 0 / 1.021 GB, free: 13.78 MB / 0.7794 GB Notification: Performance of matching and sorting (n=12): time 0.000521/0.6797, allocations: 181.4 kB / 1.021 GB, free: 13.59 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.498e-05/0.6798, allocations: 85.11 kB / 1.022 GB, free: 13.49 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001217/0.6799, allocations: 159.9 kB / 1.022 GB, free: 13.33 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.38e-05/0.6799, allocations: 33.7 kB / 1.022 GB, free: 13.29 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.714e-05/0.68, allocations: 112.2 kB / 1.022 GB, free: 13.17 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.009e-05/0.68, allocations: 27.7 kB / 1.022 GB, free: 13.14 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.588e-05/0.6801, allocations: 33.7 kB / 1.022 GB, free: 13.11 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001042/0.6802, allocations: 334.8 kB / 1.022 GB, free: 12.77 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001221/0.6803, allocations: 39.91 kB / 1.022 GB, free: 12.73 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001717/0.6805, allocations: 110.3 kB / 1.022 GB, free: 12.59 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002684/0.6808, allocations: 151.6 kB / 1.022 GB, free: 12.41 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.6808, allocations: 0 / 1.022 GB, free: 12.41 MB / 0.7794 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003368/0.6811, allocations: 165.5 kB / 1.023 GB, free: 12.24 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.387e-05/0.6812, allocations: 8.375 kB / 1.023 GB, free: 12.23 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.911e-06/0.6812, allocations: 4 kB / 1.023 GB, free: 12.23 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.201e-05/0.6812, allocations: 4 kB / 1.023 GB, free: 12.23 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000101/0.6813, allocations: 19.92 kB / 1.023 GB, free: 12.21 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.164e-06/0.6813, allocations: 7.938 kB / 1.023 GB, free: 12.2 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.442e-05/0.6814, allocations: 15.92 kB / 1.023 GB, free: 12.18 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.663e-05/0.6814, allocations: 8 kB / 1.023 GB, free: 12.18 MB / 0.7794 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.0001021/0.6815, allocations: 142.3 kB / 1.023 GB, free: 12.03 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.654e-05/0.6816, allocations: 15.81 kB / 1.023 GB, free: 12.01 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.104e-05/0.6816, allocations: 17.34 kB / 1.023 GB, free: 12 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.246e-06/0.6816, allocations: 4 kB / 1.023 GB, free: 11.99 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.526e-06/0.6816, allocations: 0 / 1.023 GB, free: 11.99 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.641e-06/0.6816, allocations: 7.922 kB / 1.023 GB, free: 11.98 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006341/0.6823, allocations: 0.5291 MB / 1.023 GB, free: 11.4 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.176e-06/0.6823, allocations: 0 / 1.023 GB, free: 11.4 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.036e-05/0.6824, allocations: 19.86 kB / 1.023 GB, free: 11.38 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.017e-06/0.6824, allocations: 7.938 kB / 1.023 GB, free: 11.37 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.344e-05/0.6824, allocations: 7.984 kB / 1.023 GB, free: 11.36 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.6824, allocations: 0 / 1.023 GB, free: 11.36 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.6824, allocations: 4 kB / 1.023 GB, free: 11.36 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003778/0.6828, allocations: 310.7 kB / 1.024 GB, free: 11.04 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.645e-05/0.6829, allocations: 88.92 kB / 1.024 GB, free: 10.93 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.462e-05/0.6829, allocations: 19.86 kB / 1.024 GB, free: 10.91 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001759/0.6831, allocations: 11.98 kB / 1.024 GB, free: 10.9 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.738e-05/0.6831, allocations: 11.98 kB / 1.024 GB, free: 10.89 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.142e-05/0.6832, allocations: 12 kB / 1.024 GB, free: 10.88 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 8e-05/0.6832, allocations: 124.2 kB / 1.024 GB, free: 10.76 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6832, allocations: 4 kB / 1.024 GB, free: 10.75 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003192/0.6836, allocations: 32 kB / 1.024 GB, free: 10.72 MB / 0.7794 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.0004135/0.684, allocations: 207.7 kB / 1.024 GB, free: 10.55 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003504/0.6844, allocations: 107.9 kB / 1.024 GB, free: 10.44 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.986e-06/0.6844, allocations: 0 / 1.024 GB, free: 10.44 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001534/0.6845, allocations: 55.89 kB / 1.024 GB, free: 10.39 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003614/0.6849, allocations: 20.06 kB / 1.024 GB, free: 10.37 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004813/0.6854, allocations: 281.8 kB / 1.025 GB, free: 10.07 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002688/0.6857, allocations: 0.7121 MB / 1.025 GB, free: 9.332 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 6.695e-05/0.6857, allocations: 24.48 kB / 1.025 GB, free: 9.309 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.197e-05/0.6858, allocations: 19.42 kB / 1.025 GB, free: 9.289 MB / 0.7794 GB Notification: Performance of SimCode: time 3.71e-07/0.6858, allocations: 0 / 1.025 GB, free: 9.289 MB / 0.7794 GB Notification: Performance of Templates: time 0.004941/0.6907, allocations: 1.645 MB / 1.027 GB, free: 7.656 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Utilities.IO.Files.Examples.Printer.makefile (rm -f Buildings_10_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; mkfifo Buildings_10_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.IO.Files.Examples.Printer.pipe >> ../files/Buildings_10_Buildings.Utilities.IO.Files.Examples.Printer.sim & ./Buildings_10_Buildings.Utilities.IO.Files.Examples.Printer -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.IO.Files.Examples.Printer.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.IO.Files.Examples.Printer_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_IO_Files_Examples_Printer.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.IO.Files.Examples.Printer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches