Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001081/0.001081, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001542/0.002623, allocations: 449.7 kB / 10.37 MB, free: 328 kB / 10.45 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.00113/0.00113, allocations: 165.2 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001383/0.002513, allocations: 459.6 kB / 11.71 MB, free: 2.457 MB / 13.93 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 0.9171/0.9171, allocations: 177.2 MB / 189.6 MB, free: 5.32 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08177/0.9989, allocations: 53.65 MB / 243.2 MB, free: 15.59 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo): time 1.832/1.832, allocations: 378.2 MB / 0.6076 GB, free: 7.82 MB / 0.5886 GB Notification: Performance of NFInstanceAPI.mkTop(): time 0.4823/2.314, allocations: 123.3 MB / 0.728 GB, free: 5.844 MB / 0.698 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.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.[0-9,]+.",fileNamePrefix="Buildings_12_Buildings.Utilities.IO.Files.Examples.Printer") translateModel(Buildings.Utilities.IO.Files.Examples.Printer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|pri1.x.[0-9,]+.",fileNamePrefix="Buildings_12_Buildings.Utilities.IO.Files.Examples.Printer") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.583e-06/1.583e-06, allocations: 0.6562 kB / 0.7293 GB, free: 4.586 MB / 0.698 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.109e-05/2.267e-05, allocations: 3.656 kB / 0.7293 GB, free: 4.582 MB / 0.698 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.002828/0.002851, allocations: 1.681 MB / 0.7309 GB, free: 2.914 MB / 0.698 GB Notification: Performance of NFInst.instExpressions: time 0.001485/0.004336, allocations: 0.7705 MB / 0.7317 GB, free: 2.145 MB / 0.698 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.653e-05/0.004392, allocations: 0 / 0.7317 GB, free: 2.145 MB / 0.698 GB Notification: Performance of NFTyping.typeComponents: time 7.777e-05/0.00447, allocations: 17.22 kB / 0.7317 GB, free: 2.129 MB / 0.698 GB Notification: Performance of NFTyping.typeBindings: time 5.821e-05/0.004528, allocations: 15.34 kB / 0.7317 GB, free: 2.121 MB / 0.698 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.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.0004364/0.004965, allocations: 105.9 kB / 0.7318 GB, free: 2.02 MB / 0.698 GB Notification: Performance of NFFlatten.flatten: time 0.0002368/0.005202, allocations: 155.9 kB / 0.732 GB, free: 1.875 MB / 0.698 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001324/0.005334, allocations: 22.83 kB / 0.732 GB, free: 1.852 MB / 0.698 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001709/0.005505, allocations: 87.84 kB / 0.7321 GB, free: 1.766 MB / 0.698 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001025/0.005608, allocations: 60.67 kB / 0.7321 GB, free: 1.707 MB / 0.698 GB Notification: Performance of NFPackage.collectConstants: time 2.781e-05/0.005635, allocations: 8 kB / 0.7322 GB, free: 1.699 MB / 0.698 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001506/0.005786, allocations: 53.34 kB / 0.7322 GB, free: 1.648 MB / 0.698 GB Notification: Performance of NFScalarize.scalarize: time 5.313e-05/0.005839, allocations: 23.92 kB / 0.7322 GB, free: 1.625 MB / 0.698 GB Notification: Performance of NFVerifyModel.verify: time 5.178e-05/0.005891, allocations: 27.94 kB / 0.7323 GB, free: 1.598 MB / 0.698 GB Notification: Performance of NFConvertDAE.convert: time 0.0002338/0.006125, allocations: 135.5 kB / 0.7324 GB, free: 1.465 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 1.746e-05/0.006142, allocations: 0.6562 kB / 0.7324 GB, free: 1.465 MB / 0.698 GB Notification: Performance of FrontEnd: time 1.152e-06/0.006143, allocations: 0 / 0.7324 GB, free: 1.465 MB / 0.698 GB Notification: Performance of Transformations before backend: time 1.752e-05/0.006161, allocations: 0.6875 kB / 0.7324 GB, free: 1.465 MB / 0.698 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.0007457/0.006906, allocations: 479.6 kB / 0.7328 GB, free: 0.957 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 3.452e-05/0.006941, allocations: 12.03 kB / 0.7329 GB, free: 0.9453 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.982e-05/0.006991, allocations: 20.86 kB / 0.7329 GB, free: 0.9258 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001859/0.007177, allocations: 150.1 kB / 0.733 GB, free: 0.7539 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.458e-05/0.007191, allocations: 4.375 kB / 0.733 GB, free: 0.75 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.143e-05/0.007213, allocations: 17.23 kB / 0.733 GB, free: 0.7344 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001964/0.007409, allocations: 100.3 kB / 0.7331 GB, free: 0.6211 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.237e-06/0.007418, allocations: 4.188 kB / 0.7331 GB, free: 0.6172 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.363e-05/0.007432, allocations: 8.312 kB / 0.7331 GB, free: 0.6094 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.843e-06/0.007439, allocations: 4.812 kB / 0.7331 GB, free: 0.6055 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.164e-05/0.00748, allocations: 15.98 kB / 0.7332 GB, free: 0.5898 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004255/0.007906, allocations: 304.4 kB / 0.7335 GB, free: 280 kB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 9.058e-05/0.007997, allocations: 47.09 kB / 0.7335 GB, free: 216 kB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.411e-05/0.008031, allocations: 21.7 kB / 0.7335 GB, free: 188 kB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 3.068e-05/0.008061, allocations: 7.875 kB / 0.7335 GB, free: 180 kB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001766/0.008238, allocations: 112 kB / 0.7336 GB, free: 48 kB / 0.698 GB Notification: Performance of pre-optimization done (n=12): time 1.713e-06/0.00824, allocations: 0.7969 kB / 0.7336 GB, free: 48 kB / 0.698 GB Notification: Performance of matching and sorting (n=12): time 0.0002224/0.008462, allocations: 98.19 kB / 0.7337 GB, free: 15.95 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.203e-05/0.008514, allocations: 77.11 kB / 0.7338 GB, free: 15.85 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001246/0.008639, allocations: 171.1 kB / 0.734 GB, free: 15.67 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 2.316e-05/0.008662, allocations: 26.8 kB / 0.734 GB, free: 15.64 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 5.32e-05/0.008715, allocations: 104.4 kB / 0.7341 GB, free: 15.53 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 3.448e-05/0.00875, allocations: 24.52 kB / 0.7341 GB, free: 15.51 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.161e-05/0.008811, allocations: 45.69 kB / 0.7342 GB, free: 15.46 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 9.908e-05/0.00891, allocations: 327.3 kB / 0.7345 GB, free: 15.13 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.283e-05/0.008933, allocations: 11.94 kB / 0.7345 GB, free: 15.12 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001319/0.009065, allocations: 216.3 kB / 0.7347 GB, free: 14.84 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001028/0.009168, allocations: 100.5 kB / 0.7348 GB, free: 14.72 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.00917, allocations: 0 / 0.7348 GB, free: 14.72 MB / 0.7136 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000145/0.009315, allocations: 99.19 kB / 0.7349 GB, free: 14.62 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.837e-05/0.009334, allocations: 10.5 kB / 0.7349 GB, free: 14.61 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.091e-06/0.00934, allocations: 0.75 kB / 0.7349 GB, free: 14.61 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.297e-05/0.009353, allocations: 4 kB / 0.7349 GB, free: 14.61 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.293e-05/0.009446, allocations: 20.52 kB / 0.7349 GB, free: 14.59 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.591e-06/0.009451, allocations: 4.734 kB / 0.7349 GB, free: 14.59 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.945e-05/0.009521, allocations: 12 kB / 0.7349 GB, free: 14.57 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.382e-05/0.009545, allocations: 5.406 kB / 0.7349 GB, free: 14.57 MB / 0.7136 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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.9e-05/0.009644, allocations: 133.7 kB / 0.7351 GB, free: 14.43 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.619e-05/0.00967, allocations: 15.92 kB / 0.7351 GB, free: 14.41 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.5e-05/0.009715, allocations: 22.25 kB / 0.7351 GB, free: 14.39 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.888e-06/0.009719, allocations: 3.984 kB / 0.7351 GB, free: 14.39 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.555e-06/0.009721, allocations: 0.9375 kB / 0.7351 GB, free: 14.39 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.078e-06/0.009725, allocations: 0 / 0.7351 GB, free: 14.39 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003531/0.01008, allocations: 338.7 kB / 0.7354 GB, free: 14.04 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.465e-06/0.01008, allocations: 0 / 0.7354 GB, free: 14.04 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.49e-05/0.01014, allocations: 16.58 kB / 0.7354 GB, free: 14.02 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 1.622e-05/0.01015, allocations: 15.84 kB / 0.7355 GB, free: 14 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.354e-06/0.01015, allocations: 0.5938 kB / 0.7355 GB, free: 14 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.11e-05/0.01017, allocations: 13.14 kB / 0.7355 GB, free: 13.99 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.883e-06/0.01017, allocations: 0 / 0.7355 GB, free: 13.99 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.01017, allocations: 3.938 kB / 0.7355 GB, free: 13.99 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001652/0.01033, allocations: 247 kB / 0.7357 GB, free: 13.73 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.756e-05/0.01035, allocations: 5.469 kB / 0.7357 GB, free: 13.73 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001385/0.01049, allocations: 11.98 kB / 0.7357 GB, free: 13.71 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.064e-05/0.01053, allocations: 22.66 kB / 0.7357 GB, free: 13.7 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.233e-05/0.01055, allocations: 7.984 kB / 0.7358 GB, free: 13.69 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 4.23e-05/0.0106, allocations: 38.33 kB / 0.7358 GB, free: 13.65 MB / 0.7136 GB Notification: Performance of sort global known variables: time 8.1e-08/0.0106, allocations: 0 / 0.7358 GB, free: 13.65 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0003623/0.01096, allocations: 47.92 kB / 0.7358 GB, free: 13.6 MB / 0.7136 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.0005416/0.0115, allocations: 213.9 kB / 0.736 GB, free: 13.45 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0001344/0.01163, allocations: 52.72 kB / 0.7361 GB, free: 13.39 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 9.207e-06/0.01164, allocations: 7.938 kB / 0.7361 GB, free: 13.39 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 5.04e-05/0.01169, allocations: 35.22 kB / 0.7361 GB, free: 13.35 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003401/0.01203, allocations: 38.39 kB / 0.7362 GB, free: 13.32 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006086/0.01264, allocations: 252.5 kB / 0.7364 GB, free: 13.04 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.657e-05/0.0127, allocations: 73.39 kB / 0.7365 GB, free: 12.95 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 5.899e-05/0.01276, allocations: 16.48 kB / 0.7365 GB, free: 12.93 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.415e-05/0.01284, allocations: 75.34 kB / 0.7366 GB, free: 12.86 MB / 0.7136 GB Notification: Performance of SimCode: time 6.72e-07/0.01284, allocations: 1.031 kB / 0.7366 GB, free: 12.86 MB / 0.7136 GB Notification: Performance of Templates: time 0.00561/0.01845, allocations: 2.045 MB / 0.7386 GB, free: 10.96 MB / 0.7136 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Utilities.IO.Files.Examples.Printer.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; mkfifo Buildings_12_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.IO.Files.Examples.Printer.pipe >> ../files/Buildings_12_Buildings.Utilities.IO.Files.Examples.Printer.sim & ./Buildings_12_Buildings.Utilities.IO.Files.Examples.Printer -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Buildings_12_Buildings.Utilities.IO.Files.Examples.Printer.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Utilities.IO.Files.Examples.Printer_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/Buildings_12_Buildings.Utilities.IO.Files.Examples.Printer/Buildings_12_Buildings.Utilities.IO.Files.Examples.Printer.ref.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 4.74512714613229]