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.001807/0.001807, allocations: 114.8 kB / 17.13 MB, free: 5.926 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.00214/0.00214, allocations: 205.5 kB / 20.09 MB, free: 2.977 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.595/1.595, allocations: 230.6 MB / 253.5 MB, free: 15.09 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.073/3.073, allocations: 0.49 GB / 0.7923 GB, free: 1.359 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-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.1.|pri1.x.2.",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.1.|pri1.x.2.",fileNamePrefix="Buildings_12_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.002052/0.002052, allocations: 63.89 kB / 1.15 GB, free: 14.92 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.13/1.132, allocations: 176.1 MB / 1.322 GB, free: 25.05 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.00291/1.135, allocations: 1.62 MB / 1.324 GB, free: 23.91 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001341/1.136, allocations: 0.7573 MB / 1.324 GB, free: 23.41 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.204e-05/1.136, allocations: 0 / 1.324 GB, free: 23.41 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.0001097/1.136, allocations: 17.95 kB / 1.324 GB, free: 23.39 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 4.531e-05/1.136, allocations: 18 kB / 1.324 GB, free: 23.38 MB / 1.061 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-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.0004649/1.137, allocations: 106.7 kB / 1.324 GB, free: 23.33 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0001753/1.137, allocations: 146.4 kB / 1.325 GB, free: 23.26 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001295/1.137, allocations: 23.5 kB / 1.325 GB, free: 23.25 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 9.009e-05/1.137, allocations: 59.02 kB / 1.325 GB, free: 23.22 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 8.281e-05/1.137, allocations: 70.73 kB / 1.325 GB, free: 23.19 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 2.083e-05/1.137, allocations: 10.12 kB / 1.325 GB, free: 23.19 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001036/1.137, allocations: 56.09 kB / 1.325 GB, free: 23.17 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 4.914e-05/1.138, allocations: 30.84 kB / 1.325 GB, free: 23.15 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 5.905e-05/1.138, allocations: 60.06 kB / 1.325 GB, free: 23.11 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0002171/1.138, allocations: 169.4 kB / 1.325 GB, free: 23.05 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/1.138, allocations: 4 kB / 1.325 GB, free: 23.05 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.523e-06/1.138, allocations: 0 / 1.325 GB, free: 23.05 MB / 1.061 GB Notification: Performance of Transformations before backend: time 5.791e-06/1.138, allocations: 0 / 1.325 GB, free: 23.05 MB / 1.061 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.0007727/1.139, allocations: 0.5525 MB / 1.326 GB, free: 22.52 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.325e-05/1.139, allocations: 18.61 kB / 1.326 GB, free: 22.52 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.547e-05/1.139, allocations: 17.16 kB / 1.326 GB, free: 22.51 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001734/1.139, allocations: 218 kB / 1.326 GB, free: 22.29 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.879e-06/1.139, allocations: 5.562 kB / 1.326 GB, free: 22.29 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.289e-05/1.139, allocations: 9.344 kB / 1.326 GB, free: 22.28 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002779/1.139, allocations: 131.7 kB / 1.326 GB, free: 22.21 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.748e-06/1.139, allocations: 3.938 kB / 1.326 GB, free: 22.21 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.562e-05/1.139, allocations: 6.438 kB / 1.326 GB, free: 22.2 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.829e-06/1.139, allocations: 0 / 1.326 GB, free: 22.2 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002282/1.139, allocations: 67.3 kB / 1.326 GB, free: 22.19 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005326/1.14, allocations: 461.1 kB / 1.326 GB, free: 21.8 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001804/1.14, allocations: 86.11 kB / 1.326 GB, free: 21.73 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001247/1.14, allocations: 44.05 kB / 1.327 GB, free: 21.71 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 2.575e-05/1.14, allocations: 10.84 kB / 1.327 GB, free: 21.7 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002638/1.141, allocations: 151.5 kB / 1.327 GB, free: 21.61 MB / 1.061 GB Notification: Performance of pre-optimization done (n=12): time 1.443e-06/1.141, allocations: 0 / 1.327 GB, free: 21.61 MB / 1.061 GB Notification: Performance of matching and sorting (n=12): time 0.0005346/1.141, allocations: 193.8 kB / 1.327 GB, free: 21.53 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.146e-05/1.141, allocations: 84.11 kB / 1.327 GB, free: 21.43 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001217/1.141, allocations: 162.8 kB / 1.327 GB, free: 21.31 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 2.235e-05/1.141, allocations: 32.55 kB / 1.327 GB, free: 21.28 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 4.64e-05/1.141, allocations: 110.9 kB / 1.327 GB, free: 21.17 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 3.264e-05/1.141, allocations: 27.59 kB / 1.327 GB, free: 21.15 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.097e-05/1.141, allocations: 33.97 kB / 1.327 GB, free: 21.13 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 6.781e-05/1.141, allocations: 325.4 kB / 1.328 GB, free: 20.81 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001429/1.142, allocations: 43.89 kB / 1.328 GB, free: 20.8 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001897/1.142, allocations: 114.9 kB / 1.328 GB, free: 20.69 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003111/1.142, allocations: 153.4 kB / 1.328 GB, free: 20.58 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/1.142, allocations: 0.7188 kB / 1.328 GB, free: 20.58 MB / 1.061 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004169/1.143, allocations: 165.2 kB / 1.328 GB, free: 20.5 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 2.104e-05/1.143, allocations: 14.88 kB / 1.328 GB, free: 20.5 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.474e-06/1.143, allocations: 2.219 kB / 1.328 GB, free: 20.5 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.751e-05/1.143, allocations: 2.188 kB / 1.328 GB, free: 20.5 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001213/1.143, allocations: 17.5 kB / 1.328 GB, free: 20.5 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.488e-06/1.143, allocations: 3 kB / 1.328 GB, free: 20.5 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001051/1.143, allocations: 19.72 kB / 1.328 GB, free: 20.49 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.73e-05/1.143, allocations: 6.344 kB / 1.328 GB, free: 20.49 MB / 1.061 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.618e-05/1.143, allocations: 139.8 kB / 1.328 GB, free: 20.36 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.26e-05/1.143, allocations: 16.25 kB / 1.328 GB, free: 20.35 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.477e-05/1.143, allocations: 16.28 kB / 1.328 GB, free: 20.33 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.576e-06/1.143, allocations: 1.75 kB / 1.328 GB, free: 20.33 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.491e-06/1.143, allocations: 0.6875 kB / 1.328 GB, free: 20.33 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.781e-06/1.143, allocations: 5.312 kB / 1.328 GB, free: 20.33 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006608/1.144, allocations: 0.536 MB / 1.329 GB, free: 19.89 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.985e-06/1.144, allocations: 5.219 kB / 1.329 GB, free: 19.89 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.905e-05/1.144, allocations: 11.86 kB / 1.329 GB, free: 19.89 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.461e-06/1.144, allocations: 5.375 kB / 1.329 GB, free: 19.88 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.409e-05/1.144, allocations: 4.969 kB / 1.329 GB, free: 19.88 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.695e-06/1.144, allocations: 0.9375 kB / 1.329 GB, free: 19.88 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.435e-06/1.144, allocations: 4.75 kB / 1.329 GB, free: 19.88 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004095/1.144, allocations: 317.6 kB / 1.329 GB, free: 19.64 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 3.344e-05/1.144, allocations: 93.11 kB / 1.329 GB, free: 19.54 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.446e-05/1.144, allocations: 8.828 kB / 1.329 GB, free: 19.53 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001834/1.144, allocations: 17.02 kB / 1.329 GB, free: 19.53 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.693e-05/1.145, allocations: 12.12 kB / 1.329 GB, free: 19.52 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.028e-05/1.145, allocations: 17.66 kB / 1.329 GB, free: 19.52 MB / 1.061 GB Notification: Performance of sorting global known variables: time 8.07e-05/1.145, allocations: 112.5 kB / 1.329 GB, free: 19.43 MB / 1.061 GB Notification: Performance of sort global known variables: time 7e-08/1.145, allocations: 0 / 1.329 GB, free: 19.43 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.000378/1.145, allocations: 44.86 kB / 1.329 GB, free: 19.42 MB / 1.061 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.0004776/1.145, allocations: 189.2 kB / 1.33 GB, free: 19.3 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0004045/1.146, allocations: 109 kB / 1.33 GB, free: 19.28 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/1.146, allocations: 0 / 1.33 GB, free: 19.28 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0001999/1.146, allocations: 54.31 kB / 1.33 GB, free: 19.27 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003755/1.146, allocations: 27.66 kB / 1.33 GB, free: 19.25 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005622/1.147, allocations: 282.4 kB / 1.33 GB, free: 19.04 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001677/1.147, allocations: 0.7193 MB / 1.331 GB, free: 18.33 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.251e-05/1.147, allocations: 19.88 kB / 1.331 GB, free: 18.32 MB / 1.061 GB Notification: Performance of SimCode: time 2.9e-07/1.147, allocations: 0 / 1.331 GB, free: 18.32 MB / 1.061 GB Notification: Performance of Templates: time 0.005591/1.153, allocations: 2.049 MB / 1.333 GB, free: 18.1 MB / 1.061 GB " [Timeout remaining time 299] 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=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Utilities.IO.Files.Examples.Printer.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Utilities.IO.Files.Examples.Printer_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_IO_Files_Examples_Printer.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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.500584011999308]