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.006766/0.006766, allocations: 97.19 kB / 15.73 MB, free: 6.055 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.002394/0.002394, allocations: 193.2 kB / 16.67 MB, free: 5.969 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.453/1.453, allocations: 222.9 MB / 240.4 MB, free: 4.172 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.758/2.758, allocations: 437 MB / 0.7105 GB, free: 4.973 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.002081/0.002081, allocations: 64.14 kB / 1.018 GB, free: 15.11 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3057/0.3078, allocations: 151.6 MB / 1.166 GB, free: 7.363 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.003995/0.3118, allocations: 1.579 MB / 1.168 GB, free: 5.766 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.001824/0.3137, allocations: 0.7052 MB / 1.168 GB, free: 5.055 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.772e-05/0.3138, allocations: 0 / 1.168 GB, free: 5.055 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.0001356/0.314, allocations: 11.81 kB / 1.168 GB, free: 5.043 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 9.281e-05/0.3141, allocations: 23.78 kB / 1.168 GB, free: 5.02 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.0006243/0.3147, allocations: 107.7 kB / 1.169 GB, free: 4.914 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0003192/0.3151, allocations: 135.5 kB / 1.169 GB, free: 4.781 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001605/0.3153, allocations: 29.12 kB / 1.169 GB, free: 4.75 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000136/0.3154, allocations: 63.75 kB / 1.169 GB, free: 4.688 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001274/0.3156, allocations: 59.75 kB / 1.169 GB, free: 4.629 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 3.742e-05/0.3156, allocations: 12 kB / 1.169 GB, free: 4.617 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001687/0.3158, allocations: 51.91 kB / 1.169 GB, free: 4.566 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 8.387e-05/0.3159, allocations: 35.89 kB / 1.169 GB, free: 4.531 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.0001018/0.316, allocations: 59.67 kB / 1.169 GB, free: 4.473 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.000388/0.3164, allocations: 175.5 kB / 1.169 GB, free: 4.301 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.3164, allocations: 0 / 1.169 GB, free: 4.301 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.623e-06/0.3164, allocations: 0 / 1.169 GB, free: 4.301 MB / 0.92 GB Notification: Performance of Transformations before backend: time 6.372e-06/0.3164, allocations: 0 / 1.169 GB, free: 4.301 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.001194/0.3176, allocations: 0.5466 MB / 1.17 GB, free: 3.688 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 5.492e-05/0.3177, allocations: 16.02 kB / 1.17 GB, free: 3.672 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.217e-05/0.3178, allocations: 34.75 kB / 1.17 GB, free: 3.629 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.03e-05/0.3178, allocations: 20.83 kB / 1.17 GB, free: 3.609 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003148/0.3182, allocations: 221 kB / 1.17 GB, free: 3.355 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.6e-05/0.3182, allocations: 4.375 kB / 1.17 GB, free: 3.352 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.544e-05/0.3182, allocations: 16.36 kB / 1.17 GB, free: 3.336 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004363/0.3187, allocations: 131.5 kB / 1.17 GB, free: 3.195 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.107e-05/0.3187, allocations: 0 / 1.17 GB, free: 3.195 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.959e-05/0.3187, allocations: 4 kB / 1.17 GB, free: 3.191 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.514e-06/0.3187, allocations: 4 kB / 1.17 GB, free: 3.188 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003417/0.3191, allocations: 63.88 kB / 1.17 GB, free: 3.125 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009384/0.32, allocations: 472.7 kB / 1.171 GB, free: 2.609 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000284/0.3203, allocations: 81.19 kB / 1.171 GB, free: 2.512 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001978/0.3206, allocations: 49.75 kB / 1.171 GB, free: 2.457 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 3.088e-05/0.3206, allocations: 4 kB / 1.171 GB, free: 2.453 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004268/0.321, allocations: 149 kB / 1.171 GB, free: 2.289 MB / 0.92 GB Notification: Performance of pre-optimization done (n=12): time 1.934e-06/0.3211, allocations: 0 / 1.171 GB, free: 2.289 MB / 0.92 GB Notification: Performance of matching and sorting (n=12): time 0.0008237/0.3219, allocations: 193.4 kB / 1.171 GB, free: 2.094 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.944e-05/0.322, allocations: 81.11 kB / 1.171 GB, free: 1.996 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002034/0.3222, allocations: 166.8 kB / 1.171 GB, free: 1.824 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 3.93e-05/0.3222, allocations: 33.7 kB / 1.171 GB, free: 1.785 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 9.579e-05/0.3223, allocations: 108.4 kB / 1.171 GB, free: 1.672 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 4.843e-05/0.3224, allocations: 31.78 kB / 1.171 GB, free: 1.641 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.271e-05/0.3225, allocations: 37.7 kB / 1.171 GB, free: 1.598 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001838/0.3227, allocations: 330.8 kB / 1.172 GB, free: 1.266 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001763/0.3229, allocations: 31.97 kB / 1.172 GB, free: 1.234 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002925/0.3232, allocations: 116.2 kB / 1.172 GB, free: 1.086 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000483/0.3237, allocations: 147.6 kB / 1.172 GB, free: 0.9141 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.477e-06/0.3237, allocations: 0 / 1.172 GB, free: 0.9141 MB / 0.92 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0005583/0.3242, allocations: 173.3 kB / 1.172 GB, free: 0.7383 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.989e-05/0.3243, allocations: 4 kB / 1.172 GB, free: 0.7344 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.555e-05/0.3243, allocations: 4 kB / 1.172 GB, free: 0.7305 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.045e-05/0.3243, allocations: 4 kB / 1.172 GB, free: 0.7266 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001413/0.3245, allocations: 15.92 kB / 1.172 GB, free: 0.7109 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.114e-05/0.3245, allocations: 4 kB / 1.172 GB, free: 0.707 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000158/0.3248, allocations: 24.16 kB / 1.172 GB, free: 0.6836 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.546e-05/0.3248, allocations: 8 kB / 1.172 GB, free: 0.6758 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.0001613/0.325, allocations: 137.7 kB / 1.172 GB, free: 0.5312 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.046e-05/0.325, allocations: 11.95 kB / 1.172 GB, free: 0.5195 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.01e-05/0.3251, allocations: 17.41 kB / 1.172 GB, free: 0.5 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.033e-06/0.3251, allocations: 4 kB / 1.172 GB, free: 0.4961 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.426e-06/0.3251, allocations: 0 / 1.172 GB, free: 0.4961 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.081e-05/0.3251, allocations: 12.09 kB / 1.172 GB, free: 496 kB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001173/0.3263, allocations: 0.5292 MB / 1.173 GB, free: 15.9 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.025e-06/0.3263, allocations: 96 / 1.173 GB, free: 15.9 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.803e-05/0.3265, allocations: 15.92 kB / 1.173 GB, free: 15.88 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.041e-05/0.3265, allocations: 7.938 kB / 1.173 GB, free: 15.88 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.147e-05/0.3265, allocations: 7.984 kB / 1.173 GB, free: 15.87 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.795e-06/0.3265, allocations: 0 / 1.173 GB, free: 15.87 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.3265, allocations: 0 / 1.173 GB, free: 15.87 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006213/0.3272, allocations: 318.6 kB / 1.173 GB, free: 15.54 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 7.766e-05/0.3273, allocations: 92.95 kB / 1.173 GB, free: 15.43 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.605e-05/0.3273, allocations: 11.98 kB / 1.173 GB, free: 15.42 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002765/0.3276, allocations: 15.98 kB / 1.173 GB, free: 15.4 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.325e-05/0.3277, allocations: 15.98 kB / 1.173 GB, free: 15.39 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.659e-05/0.3277, allocations: 8 kB / 1.173 GB, free: 15.38 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0001351/0.3279, allocations: 116.2 kB / 1.174 GB, free: 15.27 MB / 0.9356 GB Notification: Performance of sort global known variables: time 2.1e-07/0.3279, allocations: 0 / 1.174 GB, free: 15.27 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0005923/0.3285, allocations: 43.92 kB / 1.174 GB, free: 15.22 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.001654/0.3301, allocations: 0.9537 MB / 1.175 GB, free: 14.28 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0005128/0.3307, allocations: 119.9 kB / 1.175 GB, free: 14.16 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.3307, allocations: 0 / 1.175 GB, free: 14.16 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0002307/0.3309, allocations: 51.91 kB / 1.175 GB, free: 14.11 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005982/0.3315, allocations: 20.11 kB / 1.175 GB, free: 14.09 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003343/0.3349, allocations: 1.912 MB / 1.177 GB, free: 12.05 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005238/0.3354, allocations: 0.7118 MB / 1.177 GB, free: 11.31 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 0.0001109/0.3356, allocations: 28.53 kB / 1.177 GB, free: 11.28 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.975e-05/0.3357, allocations: 35.42 kB / 1.177 GB, free: 11.25 MB / 0.9356 GB Notification: Performance of SimCode: time 6.11e-07/0.3357, allocations: 0 / 1.177 GB, free: 11.25 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03585/0.3715, allocations: 3.443 MB / 1.181 GB, free: 7.898 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.301/8.672, allocations: 14.09 kB / 1.181 GB, free: 7.891 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