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.001424/0.001424, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.001536/0.001536, allocations: 216.9 kB / 22.25 MB, free: 4.855 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.496/1.496, allocations: 230.6 MB / 256 MB, free: 7.797 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.838/2.838, allocations: 475.9 MB / 0.7699 GB, free: 4.789 MB / 0.6231 GB " [Timeout remaining time 177] 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.002092/0.002092, allocations: 71.06 kB / 1.117 GB, free: 41.11 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3005/0.3026, allocations: 170 MB / 1.283 GB, free: 11.95 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.002921/0.3055, allocations: 1.596 MB / 1.285 GB, free: 10.35 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001507/0.307, allocations: 0.7187 MB / 1.285 GB, free: 9.625 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.895e-05/0.3071, allocations: 4 kB / 1.285 GB, free: 9.621 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 8.91e-05/0.3072, allocations: 7.875 kB / 1.285 GB, free: 9.613 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 6.387e-05/0.3073, allocations: 27.72 kB / 1.285 GB, free: 9.586 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.0004484/0.3077, allocations: 115.8 kB / 1.285 GB, free: 9.473 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0002096/0.3079, allocations: 139.5 kB / 1.286 GB, free: 9.336 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001316/0.308, allocations: 21.3 kB / 1.286 GB, free: 9.316 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 9.68e-05/0.3081, allocations: 59.77 kB / 1.286 GB, free: 9.258 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001037/0.3082, allocations: 67.67 kB / 1.286 GB, free: 9.191 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 2.233e-05/0.3083, allocations: 8 kB / 1.286 GB, free: 9.184 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001222/0.3084, allocations: 47.98 kB / 1.286 GB, free: 9.137 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 6.36e-05/0.3085, allocations: 35.83 kB / 1.286 GB, free: 9.102 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 6.733e-05/0.3085, allocations: 47.78 kB / 1.286 GB, free: 9.055 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0002656/0.3088, allocations: 179.3 kB / 1.286 GB, free: 8.879 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.3088, allocations: 4 kB / 1.286 GB, free: 8.875 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.543e-06/0.3088, allocations: 0 / 1.286 GB, free: 8.875 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 9.598e-06/0.3088, allocations: 3.938 kB / 1.286 GB, free: 8.871 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.0008802/0.3097, allocations: 482.6 kB / 1.286 GB, free: 8.352 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.291e-05/0.3097, allocations: 8.031 kB / 1.286 GB, free: 8.344 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.529e-05/0.3098, allocations: 20.84 kB / 1.286 GB, free: 8.324 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002327/0.31, allocations: 163.5 kB / 1.287 GB, free: 8.141 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.091e-05/0.31, allocations: 4.375 kB / 1.287 GB, free: 8.137 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.358e-05/0.31, allocations: 8.375 kB / 1.287 GB, free: 8.129 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003139/0.3103, allocations: 130.3 kB / 1.287 GB, free: 7.992 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.507e-06/0.3104, allocations: 0 / 1.287 GB, free: 7.992 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.487e-05/0.3104, allocations: 4 kB / 1.287 GB, free: 7.988 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.252e-06/0.3104, allocations: 3.984 kB / 1.287 GB, free: 7.984 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002629/0.3107, allocations: 71.88 kB / 1.287 GB, free: 7.914 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000646/0.3113, allocations: 388.5 kB / 1.287 GB, free: 7.5 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000222/0.3115, allocations: 81.19 kB / 1.287 GB, free: 7.402 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001451/0.3117, allocations: 53.8 kB / 1.287 GB, free: 7.344 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.745e-05/0.3117, allocations: 4 kB / 1.287 GB, free: 7.34 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003544/0.312, allocations: 157 kB / 1.287 GB, free: 7.168 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=12): time 1.252e-06/0.312, allocations: 0 / 1.287 GB, free: 7.168 MB / 0.9825 GB Notification: Performance of matching and sorting (n=12): time 0.0005943/0.3126, allocations: 185.4 kB / 1.288 GB, free: 6.98 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.202e-05/0.3127, allocations: 85.05 kB / 1.288 GB, free: 6.879 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001613/0.3129, allocations: 170.8 kB / 1.288 GB, free: 6.703 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.956e-05/0.3129, allocations: 29.7 kB / 1.288 GB, free: 6.668 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 9.457e-05/0.313, allocations: 112.3 kB / 1.288 GB, free: 6.551 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 3.884e-05/0.313, allocations: 31.78 kB / 1.288 GB, free: 6.52 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.011e-05/0.3131, allocations: 33.72 kB / 1.288 GB, free: 6.48 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001609/0.3132, allocations: 334.8 kB / 1.288 GB, free: 6.145 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001372/0.3134, allocations: 31.97 kB / 1.288 GB, free: 6.113 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002466/0.3136, allocations: 191.4 kB / 1.289 GB, free: 5.871 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003221/0.314, allocations: 151.5 kB / 1.289 GB, free: 5.695 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.314, allocations: 4 kB / 1.289 GB, free: 5.691 MB / 0.9825 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003938/0.3144, allocations: 161.3 kB / 1.289 GB, free: 5.527 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.589e-05/0.3144, allocations: 4 kB / 1.289 GB, free: 5.523 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.903e-06/0.3144, allocations: 4 kB / 1.289 GB, free: 5.52 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.363e-05/0.3144, allocations: 4.656 kB / 1.289 GB, free: 5.516 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001176/0.3145, allocations: 23.92 kB / 1.289 GB, free: 5.492 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.039e-05/0.3145, allocations: 7.984 kB / 1.289 GB, free: 5.484 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.875e-05/0.3146, allocations: 8 kB / 1.289 GB, free: 5.477 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.642e-05/0.3146, allocations: 15.94 kB / 1.289 GB, free: 5.461 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.0001361/0.3148, allocations: 141.6 kB / 1.289 GB, free: 5.312 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.703e-05/0.3148, allocations: 11.91 kB / 1.289 GB, free: 5.301 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.568e-05/0.3149, allocations: 21.39 kB / 1.289 GB, free: 5.273 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.505e-06/0.3149, allocations: 0 / 1.289 GB, free: 5.273 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/0.3149, allocations: 4 kB / 1.289 GB, free: 5.27 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/0.3149, allocations: 0 / 1.289 GB, free: 5.27 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007224/0.3156, allocations: 477.2 kB / 1.29 GB, free: 4.766 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.128e-06/0.3156, allocations: 4 kB / 1.29 GB, free: 4.762 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.718e-05/0.3157, allocations: 19.91 kB / 1.29 GB, free: 4.742 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.108e-06/0.3157, allocations: 4 kB / 1.29 GB, free: 4.738 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.084e-05/0.3157, allocations: 0 / 1.29 GB, free: 4.738 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.312e-06/0.3157, allocations: 3.938 kB / 1.29 GB, free: 4.734 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.3157, allocations: 4 kB / 1.29 GB, free: 4.73 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004386/0.3161, allocations: 322.6 kB / 1.29 GB, free: 4.398 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 2.031e-05/0.3162, allocations: 7.953 kB / 1.29 GB, free: 4.391 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.325e-05/0.3162, allocations: 3.984 kB / 1.29 GB, free: 4.387 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001844/0.3164, allocations: 23.92 kB / 1.29 GB, free: 4.363 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.44e-05/0.3164, allocations: 7.984 kB / 1.29 GB, free: 4.355 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.372e-05/0.3164, allocations: 12.27 kB / 1.29 GB, free: 4.344 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 9.525e-05/0.3165, allocations: 119.2 kB / 1.29 GB, free: 4.227 MB / 0.9825 GB Notification: Performance of sort global known variables: time 9e-08/0.3165, allocations: 0 / 1.29 GB, free: 4.227 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.00035/0.3169, allocations: 43.89 kB / 1.29 GB, free: 4.184 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.0004493/0.3173, allocations: 191.7 kB / 1.29 GB, free: 4.023 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0003655/0.3177, allocations: 107.8 kB / 1.29 GB, free: 3.918 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.3177, allocations: 0.5625 kB / 1.29 GB, free: 3.918 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001638/0.3179, allocations: 55.91 kB / 1.291 GB, free: 3.863 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003837/0.3183, allocations: 30.06 kB / 1.291 GB, free: 3.836 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005587/0.3188, allocations: 255.6 kB / 1.291 GB, free: 3.555 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001129/0.3189, allocations: 98.27 kB / 1.291 GB, free: 3.438 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 7.227e-05/0.319, allocations: 28.33 kB / 1.291 GB, free: 3.41 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.719e-05/0.319, allocations: 15.44 kB / 1.291 GB, free: 3.395 MB / 0.9825 GB Notification: Performance of SimCode: time 3.31e-07/0.319, allocations: 0 / 1.291 GB, free: 3.395 MB / 0.9825 GB Notification: Performance of Templates: time 0.005907/0.3249, allocations: 1.878 MB / 1.293 GB, free: 1.559 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/jenkins/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: 8.814434671774507]