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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.001008/0.001009, allocations: 92.23 kB / 15.06 MB, free: 1.098 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: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.448/1.448, allocations: 223.3 MB / 240 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.421/2.421, allocations: 390.9 MB / 0.666 GB, free: 2.406 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003185/0.0003186, allocations: 8 kB / 0.8153 GB, free: 13.59 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.721/0.7213, allocations: 142.4 MB / 0.9544 GB, free: 7.969 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.001367/0.7228, allocations: 1.274 MB / 0.9557 GB, free: 6.961 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0009337/0.7237, allocations: 0.6638 MB / 0.9563 GB, free: 6.449 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.514e-05/0.7238, allocations: 0 / 0.9563 GB, free: 6.449 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 7.315e-05/0.7238, allocations: 9.094 kB / 0.9563 GB, free: 6.441 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.489e-05/0.7239, allocations: 13.92 kB / 0.9563 GB, free: 6.43 MB / 0.7169 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.0003501/0.7242, allocations: 88.05 kB / 0.9564 GB, free: 6.371 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001369/0.7244, allocations: 130.4 kB / 0.9566 GB, free: 6.289 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001076/0.7245, allocations: 31.38 kB / 0.9566 GB, free: 6.27 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 6.435e-05/0.7246, allocations: 42.25 kB / 0.9566 GB, free: 6.246 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.137e-05/0.7247, allocations: 57.2 kB / 0.9567 GB, free: 6.207 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.818e-05/0.7247, allocations: 9.094 kB / 0.9567 GB, free: 6.203 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 9.575e-05/0.7248, allocations: 47.03 kB / 0.9567 GB, free: 6.18 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 3.915e-05/0.7248, allocations: 22.53 kB / 0.9568 GB, free: 6.164 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.468e-05/0.7249, allocations: 46.92 kB / 0.9568 GB, free: 6.121 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001314/0.725, allocations: 105.6 kB / 0.9569 GB, free: 6.051 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.725, allocations: 3.984 kB / 0.9569 GB, free: 6.047 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.222e-06/0.725, allocations: 1.062 kB / 0.9569 GB, free: 6.047 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.586e-06/0.725, allocations: 0 / 0.9569 GB, free: 6.047 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.0006056/0.7256, allocations: 0.5282 MB / 0.9574 GB, free: 5.52 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 2.897e-05/0.7257, allocations: 10.75 kB / 0.9574 GB, free: 5.52 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.125e-05/0.7257, allocations: 15.89 kB / 0.9574 GB, free: 5.512 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001425/0.7259, allocations: 222.2 kB / 0.9577 GB, free: 5.27 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.681e-05/0.7259, allocations: 7.688 kB / 0.9577 GB, free: 5.266 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.73e-05/0.7259, allocations: 11.44 kB / 0.9577 GB, free: 5.262 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002854/0.7262, allocations: 132.9 kB / 0.9578 GB, free: 5.172 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.214e-06/0.7262, allocations: 0 / 0.9578 GB, free: 5.172 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.377e-05/0.7263, allocations: 5.5 kB / 0.9578 GB, free: 5.168 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.45e-06/0.7263, allocations: 1.375 kB / 0.9578 GB, free: 5.168 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002276/0.7265, allocations: 94.09 kB / 0.9579 GB, free: 5.125 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005785/0.7271, allocations: 461.5 kB / 0.9583 GB, free: 4.684 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001968/0.7273, allocations: 94.44 kB / 0.9584 GB, free: 4.609 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001299/0.7274, allocations: 60.3 kB / 0.9585 GB, free: 4.57 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 3.038e-05/0.7275, allocations: 5.484 kB / 0.9585 GB, free: 4.566 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002995/0.7278, allocations: 150.9 kB / 0.9586 GB, free: 4.453 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=12): time 1.383e-06/0.7278, allocations: 0 / 0.9586 GB, free: 4.453 MB / 0.7169 GB Notification: Performance of matching and sorting (n=12): time 0.0005024/0.7283, allocations: 213.2 kB / 0.9588 GB, free: 4.348 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.158e-05/0.7283, allocations: 83.84 kB / 0.9589 GB, free: 4.25 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001007/0.7284, allocations: 154.2 kB / 0.9591 GB, free: 4.125 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.886e-05/0.7285, allocations: 32.45 kB / 0.9591 GB, free: 4.09 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.43e-05/0.7285, allocations: 111.2 kB / 0.9592 GB, free: 3.98 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.776e-05/0.7286, allocations: 33.09 kB / 0.9592 GB, free: 3.953 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.121e-06/0.7286, allocations: 0 / 0.9592 GB, free: 3.953 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.898e-05/0.7286, allocations: 334.9 kB / 0.9596 GB, free: 3.621 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001188/0.7287, allocations: 42.09 kB / 0.9596 GB, free: 3.605 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001405/0.7289, allocations: 125.5 kB / 0.9597 GB, free: 3.484 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001299/0.729, allocations: 56.91 kB / 0.9598 GB, free: 3.461 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.375e-06/0.729, allocations: 1.375 kB / 0.9598 GB, free: 3.461 MB / 0.7169 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003135/0.7294, allocations: 185.2 kB / 0.9599 GB, free: 3.359 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.582e-05/0.7294, allocations: 7.031 kB / 0.96 GB, free: 3.359 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.873e-06/0.7294, allocations: 6.859 kB / 0.96 GB, free: 3.355 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.403e-05/0.7294, allocations: 6.688 kB / 0.96 GB, free: 3.352 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.925e-05/0.7295, allocations: 17.73 kB / 0.96 GB, free: 3.348 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.065e-06/0.7295, allocations: 10.67 kB / 0.96 GB, free: 3.34 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.165e-05/0.7296, allocations: 20.36 kB / 0.96 GB, free: 3.332 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.101e-05/0.7296, allocations: 5.5 kB / 0.96 GB, free: 3.332 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 ($PRE.pri2.firstTrigger,pri2.firstTrigger,$PRE.pri1.firstTrigger,pri1.firstTrigger,$whenCondition4,$whenCondition2,pri1.sampleTrigger,$whenCondition3,pri2.sampleTrigger,$PRE.pri3.firstTrigger,pri3.firstTrigger,$whenCondition1,pri3.sampleTrigger) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.945e-05/0.7297, allocations: 141.5 kB / 0.9602 GB, free: 3.195 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.261e-05/0.7298, allocations: 16.11 kB / 0.9602 GB, free: 3.188 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.719e-05/0.7298, allocations: 21.52 kB / 0.9602 GB, free: 3.172 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.725e-06/0.7298, allocations: 1.375 kB / 0.9602 GB, free: 3.172 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.7298, allocations: 1.375 kB / 0.9602 GB, free: 3.172 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.988e-06/0.7298, allocations: 0 / 0.9602 GB, free: 3.172 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005509/0.7304, allocations: 0.5496 MB / 0.9607 GB, free: 2.676 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.763e-06/0.7304, allocations: 480 / 0.9607 GB, free: 2.676 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.337e-05/0.7305, allocations: 20.92 kB / 0.9607 GB, free: 2.668 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.406e-06/0.7305, allocations: 5.125 kB / 0.9608 GB, free: 2.664 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.065e-05/0.7305, allocations: 9.062 kB / 0.9608 GB, free: 2.656 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.185e-06/0.7305, allocations: 1 kB / 0.9608 GB, free: 2.656 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.342e-06/0.7305, allocations: 4.844 kB / 0.9608 GB, free: 2.652 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003317/0.7308, allocations: 337.7 kB / 0.9611 GB, free: 2.387 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.325e-05/0.7309, allocations: 89.05 kB / 0.9612 GB, free: 2.285 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.039e-05/0.7309, allocations: 2.094 kB / 0.9612 GB, free: 2.285 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001672/0.7311, allocations: 21.95 kB / 0.9612 GB, free: 2.277 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.523e-05/0.7311, allocations: 12.8 kB / 0.9612 GB, free: 2.27 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.142e-05/0.7312, allocations: 9.953 kB / 0.9612 GB, free: 2.266 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 6.291e-05/0.7312, allocations: 122.7 kB / 0.9613 GB, free: 2.168 MB / 0.7169 GB Notification: Performance of sort global known variables: time 8.02e-07/0.7312, allocations: 0 / 0.9613 GB, free: 2.168 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003459/0.7316, allocations: 40.38 kB / 0.9614 GB, free: 2.156 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003503/0.7319, allocations: 202.1 kB / 0.9616 GB, free: 2.027 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.00033/0.7323, allocations: 123.8 kB / 0.9617 GB, free: 1.98 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/0.7323, allocations: 64 / 0.9617 GB, free: 1.98 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001453/0.7324, allocations: 63.62 kB / 0.9617 GB, free: 1.957 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003512/0.7328, allocations: 23.77 kB / 0.9618 GB, free: 1.941 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004034/0.7332, allocations: 266.8 kB / 0.962 GB, free: 1.719 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000135/0.7334, allocations: 0.7229 MB / 0.9627 GB, free: 0.9961 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 6.472e-05/0.7334, allocations: 21.91 kB / 0.9627 GB, free: 0.9883 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.738e-05/0.7335, allocations: 13.88 kB / 0.9628 GB, free: 0.9805 MB / 0.7169 GB Notification: Performance of SimCode: time 2.51e-07/0.7335, allocations: 3.938 kB / 0.9628 GB, free: 0.9766 MB / 0.7169 GB Notification: Performance of Templates: time 0.004188/0.7377, allocations: 1.58 MB / 0.9643 GB, free: 192 kB / 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/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