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.001585/0.001585, allocations: 118.6 kB / 16.37 MB, free: 5.984 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.001762/0.001762, allocations: 193.5 kB / 17.31 MB, free: 5.602 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.307/1.307, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.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.194/2.194, allocations: 390.3 MB / 0.6655 GB, free: 0.6133 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001238/0.001238, allocations: 64.48 kB / 0.814 GB, free: 32.73 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2388/0.2401, allocations: 140.4 MB / 0.9511 GB, free: 8.086 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.002899/0.243, allocations: 1.582 MB / 0.9527 GB, free: 6.496 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001182/0.2442, allocations: 0.7052 MB / 0.9533 GB, free: 5.785 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.503e-05/0.2443, allocations: 4 kB / 0.9534 GB, free: 5.781 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0001125/0.2444, allocations: 11.81 kB / 0.9534 GB, free: 5.77 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 5.269e-05/0.2445, allocations: 15.8 kB / 0.9534 GB, free: 5.754 MB / 0.7325 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.0004389/0.2449, allocations: 115.7 kB / 0.9535 GB, free: 5.641 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0001973/0.2451, allocations: 143.5 kB / 0.9536 GB, free: 5.5 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001631/0.2453, allocations: 33.11 kB / 0.9537 GB, free: 5.465 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 8.451e-05/0.2454, allocations: 51.83 kB / 0.9537 GB, free: 5.414 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 8.745e-05/0.2455, allocations: 67.62 kB / 0.9538 GB, free: 5.348 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 2.276e-05/0.2455, allocations: 12 kB / 0.9538 GB, free: 5.336 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001189/0.2457, allocations: 55.95 kB / 0.9538 GB, free: 5.281 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 5.11e-05/0.2457, allocations: 23.91 kB / 0.9539 GB, free: 5.258 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 6.624e-05/0.2458, allocations: 63.67 kB / 0.9539 GB, free: 5.195 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0002195/0.246, allocations: 175.4 kB / 0.9541 GB, free: 5.023 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.246, allocations: 0 / 0.9541 GB, free: 5.023 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.553e-06/0.246, allocations: 0 / 0.9541 GB, free: 5.023 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 5.44e-06/0.246, allocations: 0 / 0.9541 GB, free: 5.023 MB / 0.7325 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.0008015/0.2469, allocations: 0.5351 MB / 0.9546 GB, free: 4.422 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.573e-05/0.2469, allocations: 8.031 kB / 0.9546 GB, free: 4.414 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.759e-05/0.247, allocations: 20.73 kB / 0.9546 GB, free: 4.395 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002163/0.2472, allocations: 220.5 kB / 0.9548 GB, free: 4.141 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.445e-05/0.2472, allocations: 4.375 kB / 0.9549 GB, free: 4.137 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.527e-05/0.2472, allocations: 12.38 kB / 0.9549 GB, free: 4.125 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003077/0.2475, allocations: 127.7 kB / 0.955 GB, free: 3.988 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.937e-06/0.2476, allocations: 7.938 kB / 0.955 GB, free: 3.98 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.765e-05/0.2476, allocations: 7.969 kB / 0.955 GB, free: 3.973 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.26e-06/0.2476, allocations: 0 / 0.955 GB, free: 3.973 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002438/0.2479, allocations: 71.88 kB / 0.9551 GB, free: 3.902 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005836/0.2484, allocations: 464.7 kB / 0.9555 GB, free: 3.395 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001893/0.2486, allocations: 85.17 kB / 0.9556 GB, free: 3.293 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000127/0.2488, allocations: 45.81 kB / 0.9556 GB, free: 3.242 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 3.206e-05/0.2488, allocations: 4 kB / 0.9556 GB, free: 3.238 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003195/0.2492, allocations: 144.9 kB / 0.9558 GB, free: 3.078 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=12): time 1.433e-06/0.2492, allocations: 0 / 0.9558 GB, free: 3.078 MB / 0.7325 GB Notification: Performance of matching and sorting (n=12): time 0.0005458/0.2497, allocations: 189.3 kB / 0.956 GB, free: 2.887 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.814e-05/0.2498, allocations: 89.09 kB / 0.956 GB, free: 2.781 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001275/0.2499, allocations: 159.4 kB / 0.9562 GB, free: 2.617 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.699e-05/0.2499, allocations: 33.7 kB / 0.9562 GB, free: 2.578 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 6.411e-05/0.25, allocations: 112.3 kB / 0.9563 GB, free: 2.461 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 3.319e-05/0.25, allocations: 23.7 kB / 0.9564 GB, free: 2.438 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.523e-05/0.2501, allocations: 37.7 kB / 0.9564 GB, free: 2.395 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 9.999e-05/0.2502, allocations: 334.8 kB / 0.9567 GB, free: 2.059 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001256/0.2503, allocations: 35.91 kB / 0.9567 GB, free: 2.023 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001691/0.2505, allocations: 121 kB / 0.9569 GB, free: 1.871 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002718/0.2508, allocations: 151.5 kB / 0.957 GB, free: 1.695 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.2508, allocations: 0 / 0.957 GB, free: 1.695 MB / 0.7325 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003443/0.2512, allocations: 165.2 kB / 0.9572 GB, free: 1.527 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.391e-05/0.2512, allocations: 4 kB / 0.9572 GB, free: 1.523 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.231e-06/0.2512, allocations: 4 kB / 0.9572 GB, free: 1.52 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.273e-05/0.2512, allocations: 0 / 0.9572 GB, free: 1.52 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001047/0.2513, allocations: 19.92 kB / 0.9572 GB, free: 1.5 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.815e-06/0.2513, allocations: 4 kB / 0.9572 GB, free: 1.496 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001019/0.2514, allocations: 24.2 kB / 0.9572 GB, free: 1.473 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.206e-05/0.2515, allocations: 4 kB / 0.9572 GB, free: 1.469 MB / 0.7325 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.0001133/0.2516, allocations: 141.8 kB / 0.9574 GB, free: 1.324 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.677e-05/0.2516, allocations: 15.81 kB / 0.9574 GB, free: 1.309 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.486e-05/0.2517, allocations: 17.39 kB / 0.9574 GB, free: 1.289 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.507e-06/0.2517, allocations: 4 kB / 0.9574 GB, free: 1.285 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.409e-06/0.2517, allocations: 0 / 0.9574 GB, free: 1.285 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.589e-06/0.2517, allocations: 3.938 kB / 0.9574 GB, free: 1.281 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006595/0.2524, allocations: 0.5409 MB / 0.9579 GB, free: 0.6836 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.2524, allocations: 0 / 0.9579 GB, free: 0.6836 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.276e-05/0.2525, allocations: 11.98 kB / 0.9579 GB, free: 0.6719 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.811e-06/0.2525, allocations: 8.031 kB / 0.9579 GB, free: 0.6641 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.119e-05/0.2525, allocations: 3.938 kB / 0.9579 GB, free: 0.6602 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.2525, allocations: 0 / 0.9579 GB, free: 0.6602 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.2525, allocations: 288 / 0.9579 GB, free: 0.6602 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003789/0.2529, allocations: 326.5 kB / 0.9583 GB, free: 332 kB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 4.625e-05/0.2529, allocations: 100.8 kB / 0.9584 GB, free: 212 kB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.244e-05/0.253, allocations: 3.938 kB / 0.9584 GB, free: 208 kB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001868/0.2532, allocations: 23.98 kB / 0.9584 GB, free: 184 kB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.889e-05/0.2532, allocations: 7.984 kB / 0.9584 GB, free: 176 kB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.609e-05/0.2533, allocations: 15.98 kB / 0.9584 GB, free: 160 kB / 0.7325 GB Notification: Performance of sorting global known variables: time 7.444e-05/0.2533, allocations: 119.2 kB / 0.9585 GB, free: 40 kB / 0.7325 GB Notification: Performance of sort global known variables: time 1.31e-07/0.2533, allocations: 0 / 0.9585 GB, free: 40 kB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0003444/0.2537, allocations: 32 kB / 0.9586 GB, free: 8 kB / 0.7325 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.0004257/0.2541, allocations: 210.8 kB / 0.9588 GB, free: 15.84 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0003575/0.2545, allocations: 107.9 kB / 0.9589 GB, free: 15.73 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.2545, allocations: 0 / 0.9589 GB, free: 15.73 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0001665/0.2547, allocations: 59.89 kB / 0.9589 GB, free: 15.67 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000382/0.2551, allocations: 16.55 kB / 0.9589 GB, free: 15.66 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004535/0.2555, allocations: 251.8 kB / 0.9592 GB, free: 15.38 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002429/0.2558, allocations: 0.7119 MB / 0.9599 GB, free: 14.64 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 6.499e-05/0.2559, allocations: 28.47 kB / 0.9599 GB, free: 14.62 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.287e-05/0.2559, allocations: 23.38 kB / 0.9599 GB, free: 14.59 MB / 0.7481 GB Notification: Performance of SimCode: time 2.61e-07/0.2559, allocations: 0 / 0.9599 GB, free: 14.59 MB / 0.7481 GB Notification: Performance of Templates: time 0.004885/0.2608, allocations: 1.773 MB / 0.9616 GB, free: 12.83 MB / 0.7481 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 -s gbode -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