Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Utilities.IO.Files.Examples.Printer.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001457/0.001457, allocations: 104.3 kB / 19.7 MB, free: 2.004 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001975/0.001975, allocations: 221 kB / 23 MB, free: 4.918 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.597/1.597, allocations: 230.6 MB / 256.8 MB, free: 7.969 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.861/2.861, allocations: 476 MB / 0.7707 GB, free: 4.742 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Utilities.IO.Files.Examples.Printer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|pri1.x.1.|pri1.x.2.",fileNamePrefix="Buildings_11_Buildings.Utilities.IO.Files.Examples.Printer") translateModel(Buildings.Utilities.IO.Files.Examples.Printer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|pri1.x.1.|pri1.x.2.",fileNamePrefix="Buildings_11_Buildings.Utilities.IO.Files.Examples.Printer") [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002227/0.002227, allocations: 67.97 kB / 1.118 GB, free: 41.28 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3647/0.3669, allocations: 170 MB / 1.284 GB, free: 12.02 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.00341/0.3703, allocations: 1.581 MB / 1.285 GB, free: 10.43 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.00162/0.372, allocations: 0.7264 MB / 1.286 GB, free: 9.699 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.247e-05/0.372, allocations: 0 / 1.286 GB, free: 9.699 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0001287/0.3721, allocations: 15.8 kB / 1.286 GB, free: 9.684 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 5.854e-05/0.3722, allocations: 19.8 kB / 1.286 GB, free: 9.664 MB / 0.9825 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.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.0005141/0.3727, allocations: 115.7 kB / 1.286 GB, free: 9.551 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0002243/0.3729, allocations: 143.5 kB / 1.286 GB, free: 9.41 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001484/0.3731, allocations: 25.28 kB / 1.286 GB, free: 9.387 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001056/0.3732, allocations: 59.72 kB / 1.286 GB, free: 9.328 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001061/0.3733, allocations: 55.75 kB / 1.286 GB, free: 9.273 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 3.061e-05/0.3733, allocations: 12 kB / 1.286 GB, free: 9.262 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001301/0.3735, allocations: 51.97 kB / 1.286 GB, free: 9.211 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 6.954e-05/0.3735, allocations: 31.89 kB / 1.287 GB, free: 9.18 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 7.268e-05/0.3736, allocations: 47.73 kB / 1.287 GB, free: 9.133 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0002854/0.3739, allocations: 175.3 kB / 1.287 GB, free: 8.961 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 7.374e-06/0.3739, allocations: 4 kB / 1.287 GB, free: 8.957 MB / 0.9825 GB Notification: Performance of FrontEnd: time 4.478e-06/0.3739, allocations: 3.984 kB / 1.287 GB, free: 8.953 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 5.451e-06/0.3739, allocations: 4 kB / 1.287 GB, free: 8.949 MB / 0.9825 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.0009591/0.3749, allocations: 478.6 kB / 1.287 GB, free: 8.434 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.295e-05/0.3749, allocations: 12.03 kB / 1.287 GB, free: 8.422 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.657e-05/0.375, allocations: 16.84 kB / 1.287 GB, free: 8.406 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002494/0.3752, allocations: 159.5 kB / 1.287 GB, free: 8.227 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.814e-05/0.3752, allocations: 12.38 kB / 1.287 GB, free: 8.215 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.102e-05/0.3753, allocations: 4.375 kB / 1.287 GB, free: 8.211 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003442/0.3756, allocations: 135.6 kB / 1.288 GB, free: 8.066 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.329e-05/0.3756, allocations: 3.938 kB / 1.288 GB, free: 8.062 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.568e-05/0.3756, allocations: 4 kB / 1.288 GB, free: 8.059 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.169e-06/0.3756, allocations: 0 / 1.288 GB, free: 8.059 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002514/0.3759, allocations: 67.94 kB / 1.288 GB, free: 7.992 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006774/0.3766, allocations: 384.5 kB / 1.288 GB, free: 7.582 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002253/0.3768, allocations: 85.17 kB / 1.288 GB, free: 7.48 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001451/0.3769, allocations: 45.81 kB / 1.288 GB, free: 7.43 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.939e-05/0.377, allocations: 11.94 kB / 1.288 GB, free: 7.418 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003957/0.3774, allocations: 149 kB / 1.288 GB, free: 7.254 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=12): time 1.442e-06/0.3774, allocations: 0 / 1.288 GB, free: 7.254 MB / 0.9825 GB Notification: Performance of matching and sorting (n=12): time 0.0006143/0.378, allocations: 193.3 kB / 1.288 GB, free: 7.059 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.21e-05/0.3781, allocations: 85.11 kB / 1.289 GB, free: 6.957 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001644/0.3782, allocations: 162.9 kB / 1.289 GB, free: 6.789 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 3.469e-05/0.3783, allocations: 41.62 kB / 1.289 GB, free: 6.742 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 8.435e-05/0.3784, allocations: 112.3 kB / 1.289 GB, free: 6.625 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 4.068e-05/0.3784, allocations: 31.8 kB / 1.289 GB, free: 6.594 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.215e-05/0.3785, allocations: 33.7 kB / 1.289 GB, free: 6.555 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001583/0.3786, allocations: 330.8 kB / 1.289 GB, free: 6.223 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001347/0.3787, allocations: 35.95 kB / 1.289 GB, free: 6.188 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002541/0.379, allocations: 193.5 kB / 1.289 GB, free: 5.945 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003278/0.3793, allocations: 147.6 kB / 1.29 GB, free: 5.773 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-06/0.3793, allocations: 0 / 1.29 GB, free: 5.773 MB / 0.9825 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003831/0.3797, allocations: 169.3 kB / 1.29 GB, free: 5.602 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 2.139e-05/0.3797, allocations: 11.94 kB / 1.29 GB, free: 5.59 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.001e-06/0.3797, allocations: 0 / 1.29 GB, free: 5.59 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.957e-05/0.3798, allocations: 4 kB / 1.29 GB, free: 5.586 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001235/0.3799, allocations: 20.27 kB / 1.29 GB, free: 5.566 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.554e-06/0.3799, allocations: 4 kB / 1.29 GB, free: 5.562 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001006/0.38, allocations: 11.98 kB / 1.29 GB, free: 5.551 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.643e-05/0.38, allocations: 8 kB / 1.29 GB, free: 5.543 MB / 0.9825 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.0001498/0.3802, allocations: 145.6 kB / 1.29 GB, free: 5.391 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.975e-05/0.3802, allocations: 15.91 kB / 1.29 GB, free: 5.375 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.528e-05/0.3802, allocations: 13.41 kB / 1.29 GB, free: 5.355 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.465e-06/0.3802, allocations: 0 / 1.29 GB, free: 5.355 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.545e-06/0.3803, allocations: 3.984 kB / 1.29 GB, free: 5.352 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/0.3803, allocations: 0 / 1.29 GB, free: 5.352 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007361/0.381, allocations: 481.2 kB / 1.29 GB, free: 4.844 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.388e-06/0.381, allocations: 4.469 kB / 1.29 GB, free: 4.84 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.969e-05/0.3811, allocations: 15.98 kB / 1.29 GB, free: 4.824 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.969e-06/0.3811, allocations: 4 kB / 1.29 GB, free: 4.82 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.07e-05/0.3811, allocations: 0 / 1.29 GB, free: 4.82 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.288e-06/0.3811, allocations: 3.938 kB / 1.29 GB, free: 4.816 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.076e-05/0.3811, allocations: 19.84 kB / 1.29 GB, free: 4.797 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004551/0.3816, allocations: 322.6 kB / 1.291 GB, free: 4.465 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 1.902e-05/0.3816, allocations: 7.953 kB / 1.291 GB, free: 4.457 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.188e-05/0.3816, allocations: 0 / 1.291 GB, free: 4.457 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001908/0.3818, allocations: 27.91 kB / 1.291 GB, free: 4.43 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.825e-05/0.3818, allocations: 7.984 kB / 1.291 GB, free: 4.422 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.277e-05/0.3819, allocations: 4 kB / 1.291 GB, free: 4.418 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 9.642e-05/0.382, allocations: 119.2 kB / 1.291 GB, free: 4.301 MB / 0.9825 GB Notification: Performance of sort global known variables: time 8e-08/0.382, allocations: 0 / 1.291 GB, free: 4.301 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003623/0.3823, allocations: 47.88 kB / 1.291 GB, free: 4.254 MB / 0.9825 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.0005483/0.3829, allocations: 190.3 kB / 1.291 GB, free: 4.098 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0004025/0.3833, allocations: 111.7 kB / 1.291 GB, free: 3.988 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.996e-06/0.3833, allocations: 0 / 1.291 GB, free: 3.988 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001733/0.3835, allocations: 52.52 kB / 1.291 GB, free: 3.938 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003918/0.3839, allocations: 28.06 kB / 1.291 GB, free: 3.91 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006473/0.3845, allocations: 289.3 kB / 1.292 GB, free: 3.59 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000124/0.3846, allocations: 98.27 kB / 1.292 GB, free: 3.473 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.457e-05/0.3847, allocations: 19.44 kB / 1.292 GB, free: 3.453 MB / 0.9825 GB Notification: Performance of SimCode: time 5.81e-07/0.3847, allocations: 0 / 1.292 GB, free: 3.453 MB / 0.9825 GB Notification: Performance of Templates: time 0.005511/0.3902, allocations: 2.091 MB / 1.294 GB, free: 1.371 MB / 0.9825 GB " [Timeout remaining time 299] make -j1 -f Buildings_11_Buildings.Utilities.IO.Files.Examples.Printer.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; mkfifo Buildings_11_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.IO.Files.Examples.Printer.pipe >> ../files/Buildings_11_Buildings.Utilities.IO.Files.Examples.Printer.sim & ./Buildings_11_Buildings.Utilities.IO.Files.Examples.Printer -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Utilities.IO.Files.Examples.Printer.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_11_Buildings.Utilities.IO.Files.Examples.Printer_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_IO_Files_Examples_Printer.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Utilities.IO.Files.Examples.Printer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 12.024243513122201]