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.006936/0.006936, allocations: 100.4 kB / 15.87 MB, free: 5.863 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.001783/0.001783, allocations: 190.9 kB / 16.79 MB, free: 5.805 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.398/1.398, allocations: 222.9 MB / 240.5 MB, free: 4.562 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.574/2.574, allocations: 390.2 MB / 0.6649 GB, free: 0.5742 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001523/0.001523, allocations: 59.91 kB / 0.8125 GB, free: 14.85 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7556/0.7572, allocations: 140.4 MB / 0.9496 GB, free: 9.121 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.002859/0.7601, allocations: 1.639 MB / 0.9512 GB, free: 7.832 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.00135/0.7615, allocations: 0.6965 MB / 0.9519 GB, free: 7.297 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.309e-05/0.7615, allocations: 5.188 kB / 0.9519 GB, free: 7.293 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001107/0.7616, allocations: 7.922 kB / 0.9519 GB, free: 7.285 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.129e-05/0.7617, allocations: 10.31 kB / 0.9519 GB, free: 7.277 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.0004305/0.7622, allocations: 100.2 kB / 0.952 GB, free: 7.207 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001636/0.7623, allocations: 129.6 kB / 0.9521 GB, free: 7.133 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001483/0.7625, allocations: 40.14 kB / 0.9521 GB, free: 7.105 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 8.277e-05/0.7626, allocations: 49.25 kB / 0.9522 GB, free: 7.078 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 8.114e-05/0.7627, allocations: 65.58 kB / 0.9523 GB, free: 7.031 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.568e-05/0.7627, allocations: 10.31 kB / 0.9523 GB, free: 7.027 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001135/0.7628, allocations: 45.16 kB / 0.9523 GB, free: 7.008 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 5.545e-05/0.7629, allocations: 27.59 kB / 0.9523 GB, free: 6.988 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 6.961e-05/0.763, allocations: 59.88 kB / 0.9524 GB, free: 6.945 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001765/0.7631, allocations: 110.6 kB / 0.9525 GB, free: 6.871 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.451e-06/0.7631, allocations: 0 / 0.9525 GB, free: 6.871 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.112e-06/0.7632, allocations: 0 / 0.9525 GB, free: 6.871 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.091e-06/0.7632, allocations: 0 / 0.9525 GB, free: 6.871 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.0007981/0.764, allocations: 0.5508 MB / 0.953 GB, free: 6.32 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.681e-05/0.764, allocations: 8.906 kB / 0.953 GB, free: 6.32 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.553e-05/0.7641, allocations: 17.09 kB / 0.9531 GB, free: 6.312 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001838/0.7643, allocations: 215.5 kB / 0.9533 GB, free: 6.078 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.568e-05/0.7643, allocations: 4.875 kB / 0.9533 GB, free: 6.078 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.614e-05/0.7643, allocations: 11.25 kB / 0.9533 GB, free: 6.074 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003427/0.7647, allocations: 138.4 kB / 0.9534 GB, free: 5.977 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.088e-06/0.7647, allocations: 0 / 0.9534 GB, free: 5.977 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.748e-05/0.7647, allocations: 1.156 kB / 0.9534 GB, free: 5.977 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.582e-06/0.7647, allocations: 2.188 kB / 0.9534 GB, free: 5.977 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002446/0.765, allocations: 69.38 kB / 0.9535 GB, free: 5.945 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005604/0.7655, allocations: 465.9 kB / 0.9539 GB, free: 5.492 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001857/0.7657, allocations: 87.31 kB / 0.954 GB, free: 5.418 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001302/0.7659, allocations: 46.59 kB / 0.954 GB, free: 5.387 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.724e-05/0.7659, allocations: 1.656 kB / 0.9541 GB, free: 5.387 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002875/0.7662, allocations: 156.9 kB / 0.9542 GB, free: 5.262 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=12): time 1.432e-06/0.7662, allocations: 0 / 0.9542 GB, free: 5.262 MB / 0.7169 GB Notification: Performance of matching and sorting (n=12): time 0.0005644/0.7668, allocations: 185.4 kB / 0.9544 GB, free: 5.164 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.106e-05/0.7668, allocations: 79.42 kB / 0.9545 GB, free: 5.07 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001193/0.767, allocations: 163.8 kB / 0.9546 GB, free: 4.938 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.048e-05/0.767, allocations: 36.42 kB / 0.9546 GB, free: 4.898 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.002e-05/0.767, allocations: 115.6 kB / 0.9548 GB, free: 4.785 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.811e-05/0.7671, allocations: 20.56 kB / 0.9548 GB, free: 4.77 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.478e-05/0.7671, allocations: 34.3 kB / 0.9548 GB, free: 4.742 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 7.036e-05/0.7672, allocations: 331 kB / 0.9551 GB, free: 4.414 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001301/0.7674, allocations: 35.67 kB / 0.9552 GB, free: 4.398 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000163/0.7675, allocations: 119.3 kB / 0.9553 GB, free: 4.277 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002702/0.7678, allocations: 147.7 kB / 0.9554 GB, free: 4.156 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.078e-06/0.7678, allocations: 1.562 kB / 0.9554 GB, free: 4.156 MB / 0.7169 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003417/0.7682, allocations: 172.3 kB / 0.9556 GB, free: 4.055 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.829e-05/0.7682, allocations: 6.375 kB / 0.9556 GB, free: 4.055 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.406e-06/0.7682, allocations: 6.469 kB / 0.9556 GB, free: 4.051 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.746e-05/0.7682, allocations: 6.922 kB / 0.9556 GB, free: 4.047 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001277/0.7684, allocations: 22.42 kB / 0.9556 GB, free: 4.035 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.478e-06/0.7684, allocations: 2.812 kB / 0.9556 GB, free: 4.035 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.799e-05/0.7685, allocations: 16.2 kB / 0.9556 GB, free: 4.027 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.466e-05/0.7685, allocations: 9.688 kB / 0.9556 GB, free: 4.023 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 0.0001106/0.7686, allocations: 132.8 kB / 0.9558 GB, free: 3.895 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.976e-05/0.7687, allocations: 23.27 kB / 0.9558 GB, free: 3.879 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.12e-05/0.7687, allocations: 18.16 kB / 0.9558 GB, free: 3.867 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.166e-06/0.7687, allocations: 1.562 kB / 0.9558 GB, free: 3.867 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.454e-06/0.7687, allocations: 1.5 kB / 0.9558 GB, free: 3.867 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.999e-06/0.7687, allocations: 7.922 kB / 0.9558 GB, free: 3.859 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000625/0.7694, allocations: 0.5214 MB / 0.9563 GB, free: 3.379 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/0.7694, allocations: 5.438 kB / 0.9563 GB, free: 3.375 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.451e-05/0.7695, allocations: 11.61 kB / 0.9563 GB, free: 3.371 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.256e-06/0.7695, allocations: 5.031 kB / 0.9564 GB, free: 3.367 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.425e-05/0.7695, allocations: 6.484 kB / 0.9564 GB, free: 3.363 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.624e-06/0.7695, allocations: 1.125 kB / 0.9564 GB, free: 3.363 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.7695, allocations: 0 / 0.9564 GB, free: 3.363 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003594/0.7699, allocations: 325.6 kB / 0.9567 GB, free: 3.098 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.857e-05/0.7699, allocations: 90.42 kB / 0.9568 GB, free: 2.996 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.316e-05/0.7699, allocations: 7.938 kB / 0.9568 GB, free: 2.988 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001737/0.7701, allocations: 18.56 kB / 0.9568 GB, free: 2.98 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.856e-05/0.7702, allocations: 11.55 kB / 0.9568 GB, free: 2.973 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.275e-05/0.7702, allocations: 7.094 kB / 0.9568 GB, free: 2.973 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 6.505e-05/0.7703, allocations: 126.2 kB / 0.9569 GB, free: 2.871 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.21e-07/0.7703, allocations: 0 / 0.9569 GB, free: 2.871 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003861/0.7707, allocations: 40.8 kB / 0.957 GB, free: 2.859 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.0004346/0.7711, allocations: 212.7 kB / 0.9572 GB, free: 2.719 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003613/0.7715, allocations: 106.6 kB / 0.9573 GB, free: 2.676 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.896e-06/0.7715, allocations: 0 / 0.9573 GB, free: 2.676 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001603/0.7717, allocations: 57.77 kB / 0.9573 GB, free: 2.652 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003715/0.7721, allocations: 19.02 kB / 0.9573 GB, free: 2.645 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004777/0.7725, allocations: 318.3 kB / 0.9576 GB, free: 2.371 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002043/0.7728, allocations: 0.7235 MB / 0.9583 GB, free: 1.648 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.977e-05/0.7728, allocations: 14.44 kB / 0.9584 GB, free: 1.641 MB / 0.7169 GB Notification: Performance of SimCode: time 3.01e-07/0.7728, allocations: 0 / 0.9584 GB, free: 1.641 MB / 0.7169 GB Notification: Performance of Templates: time 0.004199/0.777, allocations: 2.047 MB / 0.9604 GB, free: 0.5859 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