Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001296/0.001296, allocations: 113.8 kB / 17.61 MB, free: 4.703 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001272/0.001272, allocations: 186 kB / 20.78 MB, free: 1.547 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.423/1.423, allocations: 225.6 MB / 249.4 MB, free: 3.309 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.566/2.566, allocations: 443.4 MB / 0.7304 GB, free: 13.93 MB / 0.5762 GB " [Timeout remaining time 177] Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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=2500,variableFilter="time|pri1.x.1.|pri1.x.2.",fileNamePrefix="Buildings_10_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_10_Buildings.Utilities.IO.Files.Examples.Printer") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.00211/0.00211, allocations: 67.89 kB / 1.059 GB, free: 404 kB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3087/0.3108, allocations: 160.7 MB / 1.216 GB, free: 15.37 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.003133/0.3139, allocations: 1.61 MB / 1.218 GB, free: 13.74 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001508/0.3154, allocations: 0.7255 MB / 1.218 GB, free: 13.01 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.008e-05/0.3155, allocations: 0 / 1.218 GB, free: 13.01 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0001132/0.3156, allocations: 19.8 kB / 1.218 GB, free: 12.99 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 5.129e-05/0.3156, allocations: 11.81 kB / 1.218 GB, free: 12.98 MB / 0.9669 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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.000501/0.3161, allocations: 107.7 kB / 1.219 GB, free: 12.87 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.000193/0.3163, allocations: 135.5 kB / 1.219 GB, free: 12.74 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001341/0.3165, allocations: 33.09 kB / 1.219 GB, free: 12.7 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 9.047e-05/0.3166, allocations: 51.78 kB / 1.219 GB, free: 12.65 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001023/0.3167, allocations: 71.67 kB / 1.219 GB, free: 12.58 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 2.232e-05/0.3167, allocations: 8 kB / 1.219 GB, free: 12.57 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001156/0.3168, allocations: 51.97 kB / 1.219 GB, free: 12.52 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 5.899e-05/0.3169, allocations: 35.84 kB / 1.219 GB, free: 12.49 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 6.99e-05/0.3169, allocations: 51.72 kB / 1.219 GB, free: 12.44 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0002493/0.3172, allocations: 175.3 kB / 1.219 GB, free: 12.27 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.3172, allocations: 0 / 1.219 GB, free: 12.27 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.242e-06/0.3172, allocations: 0 / 1.219 GB, free: 12.27 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 4.94e-06/0.3172, allocations: 4 kB / 1.219 GB, free: 12.26 MB / 0.9669 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.0009007/0.3181, allocations: 0.5505 MB / 1.22 GB, free: 11.64 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.332e-05/0.3181, allocations: 8.031 kB / 1.22 GB, free: 11.64 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.521e-05/0.3182, allocations: 16.84 kB / 1.22 GB, free: 11.62 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000245/0.3184, allocations: 229 kB / 1.22 GB, free: 11.36 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.74e-05/0.3184, allocations: 8.359 kB / 1.22 GB, free: 11.35 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.229e-05/0.3185, allocations: 12.38 kB / 1.22 GB, free: 11.34 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003298/0.3188, allocations: 127.7 kB / 1.22 GB, free: 11.2 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.758e-06/0.3188, allocations: 0 / 1.22 GB, free: 11.2 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.691e-05/0.3188, allocations: 4 kB / 1.22 GB, free: 11.2 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.901e-06/0.3188, allocations: 4 kB / 1.22 GB, free: 11.2 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002401/0.3191, allocations: 67.88 kB / 1.22 GB, free: 11.13 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000679/0.3197, allocations: 460.8 kB / 1.221 GB, free: 10.62 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002113/0.32, allocations: 81.19 kB / 1.221 GB, free: 10.53 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001372/0.3201, allocations: 45.81 kB / 1.221 GB, free: 10.48 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.341e-05/0.3201, allocations: 4.094 kB / 1.221 GB, free: 10.47 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003163/0.3204, allocations: 152.9 kB / 1.221 GB, free: 10.3 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=12): time 1.232e-06/0.3204, allocations: 0 / 1.221 GB, free: 10.3 MB / 0.9669 GB Notification: Performance of matching and sorting (n=12): time 0.0005822/0.321, allocations: 185.4 kB / 1.221 GB, free: 10.12 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.495e-05/0.3211, allocations: 89.11 kB / 1.221 GB, free: 10.01 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001547/0.3212, allocations: 162.9 kB / 1.221 GB, free: 9.844 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 3.779e-05/0.3213, allocations: 33.7 kB / 1.221 GB, free: 9.805 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 7.884e-05/0.3214, allocations: 112.3 kB / 1.221 GB, free: 9.688 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 4.343e-05/0.3214, allocations: 31.83 kB / 1.221 GB, free: 9.656 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.071e-05/0.3215, allocations: 29.72 kB / 1.221 GB, free: 9.621 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001515/0.3216, allocations: 334.8 kB / 1.222 GB, free: 9.285 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001258/0.3217, allocations: 35.97 kB / 1.222 GB, free: 9.25 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001961/0.3219, allocations: 112 kB / 1.222 GB, free: 9.105 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003061/0.3222, allocations: 155.5 kB / 1.222 GB, free: 8.926 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.3222, allocations: 0 / 1.222 GB, free: 8.926 MB / 0.9669 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003676/0.3226, allocations: 161.6 kB / 1.222 GB, free: 8.762 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.549e-05/0.3226, allocations: 8.031 kB / 1.222 GB, free: 8.754 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.859e-06/0.3226, allocations: 8 kB / 1.222 GB, free: 8.746 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.65e-05/0.3226, allocations: 4 kB / 1.222 GB, free: 8.742 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001121/0.3228, allocations: 20.3 kB / 1.222 GB, free: 8.723 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.877e-06/0.3228, allocations: 4 kB / 1.222 GB, free: 8.719 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001047/0.3229, allocations: 19.88 kB / 1.222 GB, free: 8.699 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.267e-05/0.3229, allocations: 4 kB / 1.222 GB, free: 8.695 MB / 0.9669 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.0001306/0.323, allocations: 145.6 kB / 1.222 GB, free: 8.543 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.795e-05/0.323, allocations: 15.95 kB / 1.222 GB, free: 8.527 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.034e-05/0.3231, allocations: 13.41 kB / 1.222 GB, free: 8.512 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.388e-06/0.3231, allocations: 4 kB / 1.222 GB, free: 8.508 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.572e-06/0.3231, allocations: 7.922 kB / 1.222 GB, free: 8.5 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.551e-06/0.3231, allocations: 3.938 kB / 1.222 GB, free: 8.496 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007478/0.3239, allocations: 0.5289 MB / 1.223 GB, free: 7.91 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.767e-06/0.3239, allocations: 7.984 kB / 1.223 GB, free: 7.902 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.323e-05/0.3239, allocations: 11.98 kB / 1.223 GB, free: 7.891 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.494e-06/0.3239, allocations: 7.938 kB / 1.223 GB, free: 7.883 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.074e-05/0.324, allocations: 0 / 1.223 GB, free: 7.883 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.324, allocations: 0 / 1.223 GB, free: 7.883 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.51e-07/0.324, allocations: 0 / 1.223 GB, free: 7.883 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004355/0.3244, allocations: 322.6 kB / 1.223 GB, free: 7.551 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 6.891e-05/0.3245, allocations: 89.02 kB / 1.223 GB, free: 7.445 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.835e-05/0.3245, allocations: 15.92 kB / 1.223 GB, free: 7.43 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001863/0.3247, allocations: 11.98 kB / 1.223 GB, free: 7.418 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.911e-05/0.3247, allocations: 11.98 kB / 1.223 GB, free: 7.406 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.591e-05/0.3248, allocations: 8 kB / 1.223 GB, free: 7.398 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 9.102e-05/0.3249, allocations: 124.2 kB / 1.224 GB, free: 7.277 MB / 0.9669 GB Notification: Performance of sort global known variables: time 9e-08/0.3249, allocations: 0 / 1.224 GB, free: 7.277 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0003551/0.3252, allocations: 43.88 kB / 1.224 GB, free: 7.234 MB / 0.9669 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.0004875/0.3257, allocations: 211.2 kB / 1.224 GB, free: 7.059 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0003828/0.3261, allocations: 104.1 kB / 1.224 GB, free: 6.957 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.3261, allocations: 0 / 1.224 GB, free: 6.957 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001654/0.3262, allocations: 55.89 kB / 1.224 GB, free: 6.902 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003636/0.3266, allocations: 18.02 kB / 1.224 GB, free: 6.887 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005146/0.3271, allocations: 259.6 kB / 1.224 GB, free: 6.605 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003489/0.3275, allocations: 0.7158 MB / 1.225 GB, free: 5.863 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 6.717e-05/0.3275, allocations: 16.55 kB / 1.225 GB, free: 5.848 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.406e-05/0.3276, allocations: 23.42 kB / 1.225 GB, free: 5.824 MB / 0.9669 GB Notification: Performance of SimCode: time 4.61e-07/0.3276, allocations: 0 / 1.225 GB, free: 5.824 MB / 0.9669 GB Notification: Performance of Templates: time 0.005456/0.333, allocations: 1.804 MB / 1.227 GB, free: 4.031 MB / 0.9669 GB " [Timeout remaining time 300] make -j1 -f Buildings_10_Buildings.Utilities.IO.Files.Examples.Printer.makefile [Timeout 300] (rm -f Buildings_10_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; mkfifo Buildings_10_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.IO.Files.Examples.Printer.pipe >> ../files/Buildings_10_Buildings.Utilities.IO.Files.Examples.Printer.sim & ./Buildings_10_Buildings.Utilities.IO.Files.Examples.Printer -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.IO.Files.Examples.Printer.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_10_Buildings.Utilities.IO.Files.Examples.Printer_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_IO_Files_Examples_Printer.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_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.032616533339024]