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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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: "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.Printer,fileNamePrefix="Buildings_10_Buildings_Utilities_IO_Files_Examples_Printer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.Printer,fileNamePrefix="Buildings_10_Buildings_Utilities_IO_Files_Examples_Printer",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009047/0.0009083, allocations: 98.27 kB / 15.36 MB, free: 0.7344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.005595/0.005595, allocations: 170.6 kB / 16.27 MB, free: 6.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.271/1.271, allocations: 223.3 MB / 240.3 MB, free: 5.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.431/2.431, allocations: 437.8 MB / 0.7121 GB, free: 7.016 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0002995/0.0002994, allocations: 8 kB / 0.8729 GB, free: 3.191 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5033/0.5036, allocations: 153.8 MB / 1.023 GB, free: 15.84 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.001439/0.5051, allocations: 1.293 MB / 1.024 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.0009867/0.5061, allocations: 0.6898 MB / 1.025 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.444e-05/0.5061, allocations: 3.938 kB / 1.025 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 7.283e-05/0.5062, allocations: 11.86 kB / 1.025 GB, free: 13.82 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 4.779e-05/0.5063, allocations: 15.86 kB / 1.025 GB, free: 13.81 MB / 0.7794 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.0003427/0.5066, allocations: 99.83 kB / 1.025 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0001431/0.5068, allocations: 139.4 kB / 1.025 GB, free: 13.57 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001031/0.5069, allocations: 29.11 kB / 1.025 GB, free: 13.54 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 6.581e-05/0.507, allocations: 39.84 kB / 1.025 GB, free: 13.5 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 7.155e-05/0.507, allocations: 59.69 kB / 1.025 GB, free: 13.45 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.705e-05/0.5071, allocations: 12 kB / 1.025 GB, free: 13.43 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 9.704e-05/0.5072, allocations: 43.89 kB / 1.026 GB, free: 13.39 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 4.019e-05/0.5072, allocations: 19.92 kB / 1.026 GB, free: 13.37 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 6.25e-05/0.5073, allocations: 85.34 kB / 1.026 GB, free: 13.28 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001751/0.5075, allocations: 153.8 kB / 1.026 GB, free: 13.13 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 2.384e-06/0.5075, allocations: 0 / 1.026 GB, free: 13.13 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.102e-06/0.5075, allocations: 0 / 1.026 GB, free: 13.13 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 3.407e-06/0.5075, allocations: 0 / 1.026 GB, free: 13.13 MB / 0.7794 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.0006792/0.5082, allocations: 0.539 MB / 1.026 GB, free: 12.53 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.105e-05/0.5082, allocations: 8.031 kB / 1.026 GB, free: 12.52 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.751e-05/0.5083, allocations: 42.73 kB / 1.026 GB, free: 12.47 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.804e-05/0.5083, allocations: 20.75 kB / 1.026 GB, free: 12.45 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001636/0.5085, allocations: 208.1 kB / 1.027 GB, free: 12.21 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.517e-06/0.5085, allocations: 4.375 kB / 1.027 GB, free: 12.2 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.051e-05/0.5085, allocations: 12.38 kB / 1.027 GB, free: 12.19 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002819/0.5088, allocations: 139.4 kB / 1.027 GB, free: 12.04 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.331e-06/0.5088, allocations: 4 kB / 1.027 GB, free: 12.04 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.406e-05/0.5088, allocations: 4 kB / 1.027 GB, free: 12.04 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.349e-06/0.5088, allocations: 0 / 1.027 GB, free: 12.04 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002519/0.5091, allocations: 79.94 kB / 1.027 GB, free: 11.96 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005481/0.5097, allocations: 472.7 kB / 1.027 GB, free: 11.44 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001962/0.5099, allocations: 101.1 kB / 1.027 GB, free: 11.32 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001423/0.51, allocations: 57.81 kB / 1.027 GB, free: 11.26 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.255e-05/0.5101, allocations: 112 / 1.027 GB, free: 11.26 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002715/0.5103, allocations: 156.9 kB / 1.028 GB, free: 11.09 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=12): time 1.223e-06/0.5103, allocations: 0 / 1.028 GB, free: 11.09 MB / 0.7794 GB Notification: Performance of matching and sorting (n=12): time 0.0005456/0.5109, allocations: 209.3 kB / 1.028 GB, free: 10.88 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.989e-05/0.5109, allocations: 85.11 kB / 1.028 GB, free: 10.78 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001107/0.5111, allocations: 159.3 kB / 1.028 GB, free: 10.61 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.207e-05/0.5111, allocations: 30.08 kB / 1.028 GB, free: 10.58 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.403e-05/0.5111, allocations: 116.2 kB / 1.028 GB, free: 10.46 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.144e-05/0.5112, allocations: 23.7 kB / 1.028 GB, free: 10.43 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.767e-05/0.5112, allocations: 21.72 kB / 1.028 GB, free: 10.41 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 8.458e-05/0.5113, allocations: 330.8 kB / 1.028 GB, free: 10.07 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001325/0.5114, allocations: 43.97 kB / 1.028 GB, free: 10.03 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001801/0.5116, allocations: 128.7 kB / 1.029 GB, free: 9.871 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002999/0.5119, allocations: 167.5 kB / 1.029 GB, free: 9.68 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.512, allocations: 0 / 1.029 GB, free: 9.68 MB / 0.7794 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003614/0.5123, allocations: 177.2 kB / 1.029 GB, free: 9.5 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.131e-05/0.5123, allocations: 8 kB / 1.029 GB, free: 9.492 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.008e-06/0.5124, allocations: 0 / 1.029 GB, free: 9.492 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.007e-06/0.5124, allocations: 4.281 kB / 1.029 GB, free: 9.488 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001015/0.5125, allocations: 23.98 kB / 1.029 GB, free: 9.465 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.969e-06/0.5125, allocations: 3.938 kB / 1.029 GB, free: 9.461 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001009/0.5126, allocations: 23.92 kB / 1.029 GB, free: 9.438 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.979e-06/0.5126, allocations: 8 kB / 1.029 GB, free: 9.43 MB / 0.7794 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.761e-05/0.5127, allocations: 142.3 kB / 1.029 GB, free: 9.281 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.511e-05/0.5127, allocations: 19.81 kB / 1.029 GB, free: 9.262 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.65e-05/0.5128, allocations: 13.41 kB / 1.029 GB, free: 9.25 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.246e-06/0.5128, allocations: 0 / 1.029 GB, free: 9.25 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.55e-06/0.5128, allocations: 3.938 kB / 1.029 GB, free: 9.246 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.721e-06/0.5128, allocations: 11.86 kB / 1.029 GB, free: 9.234 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006338/0.5135, allocations: 0.5407 MB / 1.03 GB, free: 8.637 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.5135, allocations: 0 / 1.03 GB, free: 8.637 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.945e-05/0.5136, allocations: 27.91 kB / 1.03 GB, free: 8.609 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.457e-06/0.5136, allocations: 3.938 kB / 1.03 GB, free: 8.605 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.104e-05/0.5136, allocations: 8 kB / 1.03 GB, free: 8.598 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.5136, allocations: 0 / 1.03 GB, free: 8.598 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.355e-06/0.5136, allocations: 3.984 kB / 1.03 GB, free: 8.594 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003872/0.514, allocations: 330.6 kB / 1.03 GB, free: 8.254 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.9e-05/0.514, allocations: 93.14 kB / 1.03 GB, free: 8.145 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.002e-05/0.5141, allocations: 7.984 kB / 1.03 GB, free: 8.137 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001775/0.5142, allocations: 19.98 kB / 1.03 GB, free: 8.117 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.569e-05/0.5143, allocations: 15.92 kB / 1.03 GB, free: 8.102 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.865e-05/0.5143, allocations: 15.98 kB / 1.03 GB, free: 8.086 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 7.787e-05/0.5144, allocations: 124.7 kB / 1.03 GB, free: 7.965 MB / 0.7794 GB Notification: Performance of sort global known variables: time 2.595e-06/0.5144, allocations: 0 / 1.03 GB, free: 7.965 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003168/0.5147, allocations: 44.03 kB / 1.03 GB, free: 7.922 MB / 0.7794 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.0008746/0.5156, allocations: 0.96 MB / 1.031 GB, free: 6.969 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003472/0.516, allocations: 119.9 kB / 1.031 GB, free: 6.852 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.275e-06/0.516, allocations: 0.5625 kB / 1.031 GB, free: 6.852 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001635/0.5162, allocations: 63.91 kB / 1.032 GB, free: 6.789 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003552/0.5165, allocations: 23.92 kB / 1.032 GB, free: 6.766 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001963/0.5185, allocations: 1.961 MB / 1.033 GB, free: 4.668 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002121/0.5187, allocations: 0.716 MB / 1.034 GB, free: 3.926 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 6.134e-05/0.5188, allocations: 20.53 kB / 1.034 GB, free: 3.906 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.462e-05/0.5189, allocations: 39.42 kB / 1.034 GB, free: 3.867 MB / 0.7794 GB Notification: Performance of SimCode: time 2.71e-07/0.5189, allocations: 0 / 1.034 GB, free: 3.867 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5309/1.05, allocations: 3.04 MB / 1.037 GB, free: 0.9531 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003099/1.05, allocations: 230 kB / 1.037 GB, free: 0.7031 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.042/3.093, allocations: 3.938 kB / 1.037 GB, free: 0.6992 MB / 0.7794 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Utilities.IO.Files.Examples.Printer_res.mat --tempDir=temp_Buildings_10_Buildings_Utilities_IO_Files_Examples_Printer_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Utilities_IO_Files_Examples_Printer.fmu > Buildings_10_Buildings.Utilities.IO.Files.Examples.Printer.pipe 2>&1) 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.IO.Files.Examples.Printer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches