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.1-maint.10.0.x/package.mo", uses=false) 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: "" <> 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.00716/0.00716, allocations: 95.86 kB / 15.73 MB, free: 6.484 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.001866/0.001866, allocations: 192.1 kB / 16.67 MB, free: 6.391 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.448/1.448, allocations: 222.9 MB / 240.4 MB, free: 4.277 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.804/2.804, allocations: 437 MB / 0.7105 GB, free: 5.008 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001396/0.001396, allocations: 71.88 kB / 1.018 GB, free: 15.06 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2987/0.3001, allocations: 151.6 MB / 1.166 GB, free: 7.316 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.002929/0.3031, allocations: 1.581 MB / 1.168 GB, free: 5.719 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.001249/0.3044, allocations: 0.7052 MB / 1.168 GB, free: 5.008 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.109e-05/0.3045, allocations: 0 / 1.168 GB, free: 5.008 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 9.332e-05/0.3046, allocations: 11.81 kB / 1.168 GB, free: 4.996 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 7.454e-05/0.3047, allocations: 19.8 kB / 1.168 GB, free: 4.977 MB / 0.92 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.0004518/0.3051, allocations: 111.7 kB / 1.169 GB, free: 4.867 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0002092/0.3054, allocations: 139.5 kB / 1.169 GB, free: 4.73 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001302/0.3055, allocations: 33.09 kB / 1.169 GB, free: 4.695 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 9.347e-05/0.3056, allocations: 55.78 kB / 1.169 GB, free: 4.641 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 9.12e-05/0.3057, allocations: 63.75 kB / 1.169 GB, free: 4.578 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 2.553e-05/0.3057, allocations: 12 kB / 1.169 GB, free: 4.566 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001304/0.3059, allocations: 55.89 kB / 1.169 GB, free: 4.512 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 5.274e-05/0.3059, allocations: 31.91 kB / 1.169 GB, free: 4.48 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 7.035e-05/0.306, allocations: 59.66 kB / 1.169 GB, free: 4.422 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.000258/0.3063, allocations: 171.5 kB / 1.169 GB, free: 4.254 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 3.287e-06/0.3063, allocations: 0 / 1.169 GB, free: 4.254 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.092e-06/0.3063, allocations: 0 / 1.169 GB, free: 4.254 MB / 0.92 GB Notification: Performance of Transformations before backend: time 5.36e-06/0.3063, allocations: 0 / 1.169 GB, free: 4.254 MB / 0.92 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.0008334/0.3071, allocations: 0.5505 MB / 1.17 GB, free: 3.637 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.488e-05/0.3072, allocations: 12.03 kB / 1.17 GB, free: 3.625 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.64e-05/0.3072, allocations: 38.75 kB / 1.17 GB, free: 3.578 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.187e-05/0.3073, allocations: 16.84 kB / 1.17 GB, free: 3.562 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002074/0.3075, allocations: 225 kB / 1.17 GB, free: 3.305 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.394e-05/0.3075, allocations: 12.36 kB / 1.17 GB, free: 3.293 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.005e-05/0.3076, allocations: 12.38 kB / 1.17 GB, free: 3.281 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002951/0.3079, allocations: 127.5 kB / 1.17 GB, free: 3.145 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.835e-06/0.3079, allocations: 0 / 1.17 GB, free: 3.145 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.314e-05/0.3079, allocations: 0 / 1.17 GB, free: 3.145 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.593e-06/0.3079, allocations: 4 kB / 1.17 GB, free: 3.141 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000253/0.3082, allocations: 71.88 kB / 1.17 GB, free: 3.07 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006292/0.3088, allocations: 456.8 kB / 1.171 GB, free: 2.57 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001953/0.309, allocations: 89.12 kB / 1.171 GB, free: 2.465 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001391/0.3092, allocations: 45.81 kB / 1.171 GB, free: 2.414 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 2.373e-05/0.3092, allocations: 4 kB / 1.171 GB, free: 2.41 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000291/0.3095, allocations: 153 kB / 1.171 GB, free: 2.242 MB / 0.92 GB Notification: Performance of pre-optimization done (n=12): time 1.482e-06/0.3095, allocations: 0 / 1.171 GB, free: 2.242 MB / 0.92 GB Notification: Performance of matching and sorting (n=12): time 0.0005754/0.3101, allocations: 189.4 kB / 1.171 GB, free: 2.051 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.771e-05/0.3101, allocations: 85.05 kB / 1.171 GB, free: 1.949 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001257/0.3103, allocations: 170.8 kB / 1.171 GB, free: 1.773 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 2.748e-05/0.3103, allocations: 33.7 kB / 1.171 GB, free: 1.734 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 7.218e-05/0.3104, allocations: 108.4 kB / 1.171 GB, free: 1.621 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 3.21e-05/0.3104, allocations: 27.8 kB / 1.171 GB, free: 1.594 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.594e-05/0.3105, allocations: 33.7 kB / 1.171 GB, free: 1.555 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001156/0.3106, allocations: 330.8 kB / 1.172 GB, free: 1.223 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001292/0.3107, allocations: 31.97 kB / 1.172 GB, free: 1.191 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001802/0.3109, allocations: 114.3 kB / 1.172 GB, free: 1.043 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002953/0.3112, allocations: 151.6 kB / 1.172 GB, free: 0.8672 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.937e-06/0.3113, allocations: 3.984 kB / 1.172 GB, free: 0.8633 MB / 0.92 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003705/0.3116, allocations: 161.3 kB / 1.172 GB, free: 0.6992 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.489e-05/0.3117, allocations: 10.31 kB / 1.172 GB, free: 0.6914 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.502e-06/0.3117, allocations: 4 kB / 1.172 GB, free: 0.6875 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.417e-05/0.3117, allocations: 4 kB / 1.172 GB, free: 0.6836 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001058/0.3118, allocations: 19.92 kB / 1.172 GB, free: 0.6641 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.395e-06/0.3118, allocations: 4 kB / 1.172 GB, free: 0.6602 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.92e-05/0.3119, allocations: 19.88 kB / 1.172 GB, free: 0.6406 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.279e-05/0.3119, allocations: 8 kB / 1.172 GB, free: 0.6328 MB / 0.92 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.0001129/0.3121, allocations: 137.9 kB / 1.172 GB, free: 500 kB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.857e-05/0.3121, allocations: 19.94 kB / 1.172 GB, free: 480 kB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.323e-05/0.3121, allocations: 13.41 kB / 1.172 GB, free: 464 kB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.037e-06/0.3122, allocations: 4 kB / 1.172 GB, free: 460 kB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.3122, allocations: 0 / 1.172 GB, free: 460 kB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.096e-06/0.3122, allocations: 7.922 kB / 1.172 GB, free: 452 kB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007067/0.3129, allocations: 0.5327 MB / 1.173 GB, free: 15.85 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.3129, allocations: 4 kB / 1.173 GB, free: 15.85 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.399e-05/0.313, allocations: 11.98 kB / 1.173 GB, free: 15.84 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.123e-06/0.313, allocations: 11.92 kB / 1.173 GB, free: 15.82 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.272e-05/0.313, allocations: 4 kB / 1.173 GB, free: 15.82 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.763e-06/0.313, allocations: 0 / 1.173 GB, free: 15.82 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/0.313, allocations: 4.469 kB / 1.173 GB, free: 15.82 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004046/0.3134, allocations: 322.5 kB / 1.173 GB, free: 15.48 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 5.259e-05/0.3135, allocations: 92.95 kB / 1.173 GB, free: 15.38 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.362e-05/0.3135, allocations: 15.92 kB / 1.173 GB, free: 15.36 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001822/0.3137, allocations: 11.98 kB / 1.173 GB, free: 15.35 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.725e-05/0.3138, allocations: 11.98 kB / 1.173 GB, free: 15.34 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.308e-05/0.3138, allocations: 8 kB / 1.173 GB, free: 15.33 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 7.948e-05/0.3139, allocations: 120.2 kB / 1.174 GB, free: 15.21 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.5e-07/0.3139, allocations: 4 kB / 1.174 GB, free: 15.21 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0003488/0.3143, allocations: 39.92 kB / 1.174 GB, free: 15.17 MB / 0.9356 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.0009757/0.3152, allocations: 0.9532 MB / 1.175 GB, free: 14.23 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0003776/0.3156, allocations: 111.8 kB / 1.175 GB, free: 14.12 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.3157, allocations: 0 / 1.175 GB, free: 14.12 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001619/0.3158, allocations: 52.47 kB / 1.175 GB, free: 14.07 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003678/0.3162, allocations: 27.97 kB / 1.175 GB, free: 14.04 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002123/0.3183, allocations: 1.901 MB / 1.177 GB, free: 12.01 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002733/0.3186, allocations: 0.7273 MB / 1.177 GB, free: 11.25 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 6.9e-05/0.3187, allocations: 20.53 kB / 1.177 GB, free: 11.23 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.901e-05/0.3188, allocations: 35.42 kB / 1.177 GB, free: 11.2 MB / 0.9356 GB Notification: Performance of SimCode: time 3.5e-07/0.3188, allocations: 4 kB / 1.177 GB, free: 11.2 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02032/0.3391, allocations: 3.435 MB / 1.181 GB, free: 7.852 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.24/8.579, allocations: 1.875 kB / 1.181 GB, free: 7.852 MB / 0.9356 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 & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Utilities.IO.Files.Examples.Printer_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 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.csv","/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