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.0009896/0.0009896, allocations: 99.27 kB / 16.35 MB, free: 5.875 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.0009667/0.0009667, allocations: 191.8 kB / 17.29 MB, free: 5.516 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.207/1.207, allocations: 222.9 MB / 241 MB, free: 14.99 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.002/2.002, allocations: 390.3 MB / 0.6655 GB, free: 0.5586 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001153/0.001153, allocations: 67.62 kB / 0.814 GB, free: 32.55 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.222/0.2231, allocations: 140.4 MB / 0.9511 GB, free: 8.035 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.002485/0.2257, allocations: 1.578 MB / 0.9527 GB, free: 6.449 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001085/0.2268, allocations: 0.6974 MB / 0.9533 GB, free: 5.746 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.718e-05/0.2268, allocations: 3.938 kB / 0.9533 GB, free: 5.742 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 9.025e-05/0.2269, allocations: 11.86 kB / 0.9534 GB, free: 5.73 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 4.667e-05/0.227, allocations: 15.81 kB / 0.9534 GB, free: 5.715 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.0003807/0.2274, allocations: 115.7 kB / 0.9535 GB, free: 5.602 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0001622/0.2275, allocations: 143.4 kB / 0.9536 GB, free: 5.461 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001419/0.2277, allocations: 37.09 kB / 0.9537 GB, free: 5.422 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 8.006e-05/0.2278, allocations: 51.78 kB / 0.9537 GB, free: 5.371 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 7.965e-05/0.2279, allocations: 67.73 kB / 0.9538 GB, free: 5.305 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.93e-05/0.2279, allocations: 8 kB / 0.9538 GB, free: 5.297 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001065/0.228, allocations: 55.95 kB / 0.9538 GB, free: 5.242 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 4.862e-05/0.228, allocations: 31.86 kB / 0.9539 GB, free: 5.211 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 6.741e-05/0.2281, allocations: 67.64 kB / 0.9539 GB, free: 5.145 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001985/0.2283, allocations: 171.4 kB / 0.9541 GB, free: 4.977 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 3.356e-06/0.2283, allocations: 0 / 0.9541 GB, free: 4.977 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.552e-06/0.2283, allocations: 0 / 0.9541 GB, free: 4.977 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 4.789e-06/0.2284, allocations: 0 / 0.9541 GB, free: 4.977 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.000738/0.2291, allocations: 0.5439 MB / 0.9546 GB, free: 4.367 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.006e-05/0.2291, allocations: 8.031 kB / 0.9546 GB, free: 4.359 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.083e-05/0.2292, allocations: 16.75 kB / 0.9546 GB, free: 4.344 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001893/0.2294, allocations: 212.6 kB / 0.9548 GB, free: 4.098 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.204e-05/0.2294, allocations: 4.375 kB / 0.9548 GB, free: 4.094 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.043e-05/0.2294, allocations: 12.38 kB / 0.9549 GB, free: 4.082 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002698/0.2297, allocations: 135.6 kB / 0.955 GB, free: 3.938 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.953e-06/0.2297, allocations: 4 kB / 0.955 GB, free: 3.934 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.25e-05/0.2297, allocations: 0 / 0.955 GB, free: 3.934 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.202e-06/0.2297, allocations: 4 kB / 0.955 GB, free: 3.93 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002035/0.2299, allocations: 63.94 kB / 0.9551 GB, free: 3.867 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005341/0.2305, allocations: 472.6 kB / 0.9555 GB, free: 3.352 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001678/0.2307, allocations: 85.12 kB / 0.9556 GB, free: 3.25 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001144/0.2308, allocations: 49.75 kB / 0.9556 GB, free: 3.195 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.362e-05/0.2308, allocations: 4 kB / 0.9556 GB, free: 3.191 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002574/0.2311, allocations: 141 kB / 0.9558 GB, free: 3.035 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=12): time 1.212e-06/0.2311, allocations: 0 / 0.9558 GB, free: 3.035 MB / 0.7325 GB Notification: Performance of matching and sorting (n=12): time 0.0004735/0.2316, allocations: 193.3 kB / 0.956 GB, free: 2.84 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.443e-05/0.2316, allocations: 85.09 kB / 0.956 GB, free: 2.738 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001186/0.2318, allocations: 163.4 kB / 0.9562 GB, free: 2.57 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.397e-05/0.2318, allocations: 33.7 kB / 0.9562 GB, free: 2.531 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 5.745e-05/0.2319, allocations: 112.3 kB / 0.9563 GB, free: 2.414 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.541e-05/0.2319, allocations: 19.72 kB / 0.9564 GB, free: 2.395 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.991e-05/0.2319, allocations: 33.7 kB / 0.9564 GB, free: 2.355 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001002/0.232, allocations: 334.8 kB / 0.9567 GB, free: 2.02 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001099/0.2322, allocations: 39.89 kB / 0.9567 GB, free: 1.98 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001567/0.2323, allocations: 122.2 kB / 0.9569 GB, free: 1.824 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002392/0.2326, allocations: 143.6 kB / 0.957 GB, free: 1.656 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.2326, allocations: 0 / 0.957 GB, free: 1.656 MB / 0.7325 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003115/0.2329, allocations: 169.3 kB / 0.9572 GB, free: 1.484 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.452e-05/0.2329, allocations: 9.859 kB / 0.9572 GB, free: 1.477 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.811e-06/0.2329, allocations: 4 kB / 0.9572 GB, free: 1.473 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.63e-05/0.233, allocations: 4.109 kB / 0.9572 GB, free: 1.469 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.373e-05/0.233, allocations: 15.92 kB / 0.9572 GB, free: 1.453 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.937e-06/0.2331, allocations: 4 kB / 0.9572 GB, free: 1.449 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.879e-05/0.2332, allocations: 20.11 kB / 0.9572 GB, free: 1.43 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.687e-05/0.2332, allocations: 16 kB / 0.9572 GB, free: 1.414 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 9.28e-05/0.2333, allocations: 122.6 kB / 0.9573 GB, free: 1.285 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.753e-05/0.2333, allocations: 23.78 kB / 0.9574 GB, free: 1.262 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.138e-05/0.2334, allocations: 17.41 kB / 0.9574 GB, free: 1.242 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.158e-06/0.2334, allocations: 4 kB / 0.9574 GB, free: 1.238 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.108e-06/0.2334, allocations: 0 / 0.9574 GB, free: 1.238 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.859e-06/0.2334, allocations: 3.938 kB / 0.9574 GB, free: 1.234 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006007/0.234, allocations: 0.5369 MB / 0.9579 GB, free: 0.6406 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.234, allocations: 0 / 0.9579 GB, free: 0.6406 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.324e-05/0.2341, allocations: 11.98 kB / 0.9579 GB, free: 0.6289 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.306e-06/0.2341, allocations: 7.938 kB / 0.9579 GB, free: 0.6211 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.102e-05/0.2341, allocations: 3.984 kB / 0.9579 GB, free: 0.6172 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.519e-06/0.2341, allocations: 7.938 kB / 0.9579 GB, free: 0.6094 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/0.2341, allocations: 4 kB / 0.9579 GB, free: 0.6055 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003328/0.2345, allocations: 318.6 kB / 0.9583 GB, free: 284 kB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 4.447e-05/0.2345, allocations: 92.86 kB / 0.9583 GB, free: 172 kB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.113e-05/0.2345, allocations: 11.94 kB / 0.9584 GB, free: 160 kB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001651/0.2347, allocations: 19.97 kB / 0.9584 GB, free: 140 kB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.045e-05/0.2347, allocations: 11.98 kB / 0.9584 GB, free: 128 kB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.884e-05/0.2348, allocations: 8 kB / 0.9584 GB, free: 120 kB / 0.7325 GB Notification: Performance of sorting global known variables: time 6.93e-05/0.2349, allocations: 119.2 kB / 0.9585 GB, free: 0 / 0.7325 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2349, allocations: 0 / 0.9585 GB, free: 0 / 0.7325 GB Notification: Performance of remove unused functions: time 0.0003255/0.2352, allocations: 35.98 kB / 0.9585 GB, free: 15.96 MB / 0.7481 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.0003402/0.2355, allocations: 211.1 kB / 0.9587 GB, free: 15.79 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0003232/0.2359, allocations: 111.8 kB / 0.9588 GB, free: 15.68 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.2359, allocations: 0 / 0.9588 GB, free: 15.68 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0001356/0.236, allocations: 55.89 kB / 0.9589 GB, free: 15.63 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003282/0.2364, allocations: 16.73 kB / 0.9589 GB, free: 15.61 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000397/0.2368, allocations: 251.6 kB / 0.9592 GB, free: 15.34 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002222/0.237, allocations: 0.7119 MB / 0.9599 GB, free: 14.6 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 6.079e-05/0.2371, allocations: 24.53 kB / 0.9599 GB, free: 14.58 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.02e-05/0.2371, allocations: 15.44 kB / 0.9599 GB, free: 14.56 MB / 0.7481 GB Notification: Performance of SimCode: time 2.4e-07/0.2371, allocations: 0 / 0.9599 GB, free: 14.56 MB / 0.7481 GB Notification: Performance of Templates: time 0.004307/0.2414, allocations: 1.773 MB / 0.9616 GB, free: 12.8 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 cvode -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