Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/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_latest_Buildings_Utilities_IO_Files_Examples_Printer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.Printer,fileNamePrefix="Buildings_latest_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.00489/0.004891, allocations: 99.81 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.001176/0.001176, allocations: 195.1 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.378/1.378, allocations: 222.9 MB / 240.4 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.658/2.658, allocations: 469.4 MB / 0.7422 GB, free: 3.504 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001413/0.001413, allocations: 63.91 kB / 1.064 GB, free: 14.29 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8908/0.8923, allocations: 159.1 MB / 1.22 GB, free: 2.285 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.003441/0.8957, allocations: 1.589 MB / 1.221 GB, free: 0.6836 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001745/0.8975, allocations: 0.6984 MB / 1.222 GB, free: 15.98 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001216/0.8977, allocations: 3.938 kB / 1.222 GB, free: 15.97 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.0001528/0.8979, allocations: 7.875 kB / 1.222 GB, free: 15.96 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 9.979e-05/0.898, allocations: 23.7 kB / 1.222 GB, free: 15.95 MB / 0.9512 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/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.0007038/0.8987, allocations: 107.7 kB / 1.222 GB, free: 15.84 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0002699/0.899, allocations: 135.5 kB / 1.222 GB, free: 15.71 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000176/0.8992, allocations: 33.11 kB / 1.222 GB, free: 15.68 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001308/0.8993, allocations: 59.75 kB / 1.222 GB, free: 15.62 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000104/0.8994, allocations: 59.77 kB / 1.222 GB, free: 15.56 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 2.833e-05/0.8994, allocations: 12 kB / 1.222 GB, free: 15.55 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001481/0.8996, allocations: 51.95 kB / 1.222 GB, free: 15.5 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 6.743e-05/0.8997, allocations: 35.84 kB / 1.222 GB, free: 15.46 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 9.299e-05/0.8998, allocations: 59.66 kB / 1.223 GB, free: 15.4 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0002971/0.9001, allocations: 167.1 kB / 1.223 GB, free: 15.24 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 5.17e-06/0.9001, allocations: 3.938 kB / 1.223 GB, free: 15.24 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.804e-06/0.9001, allocations: 0 / 1.223 GB, free: 15.24 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 7.384e-06/0.9001, allocations: 0 / 1.223 GB, free: 15.24 MB / 0.9512 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.0009258/0.901, allocations: 0.5505 MB / 1.223 GB, free: 14.62 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 4.853e-05/0.9011, allocations: 12.62 kB / 1.223 GB, free: 14.61 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.744e-05/0.9012, allocations: 38.73 kB / 1.223 GB, free: 14.56 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.5e-05/0.9012, allocations: 16.84 kB / 1.223 GB, free: 14.55 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002605/0.9015, allocations: 224.1 kB / 1.223 GB, free: 14.29 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.381e-05/0.9015, allocations: 4.375 kB / 1.223 GB, free: 14.29 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.744e-05/0.9016, allocations: 12.36 kB / 1.224 GB, free: 14.27 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003731/0.9019, allocations: 135.4 kB / 1.224 GB, free: 14.13 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.13e-05/0.902, allocations: 4 kB / 1.224 GB, free: 14.12 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.712e-05/0.902, allocations: 0 / 1.224 GB, free: 14.12 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.506e-06/0.902, allocations: 7.938 kB / 1.224 GB, free: 14.12 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002648/0.9023, allocations: 67.88 kB / 1.224 GB, free: 14.05 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007913/0.9031, allocations: 472.7 kB / 1.224 GB, free: 13.54 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002035/0.9033, allocations: 85.12 kB / 1.224 GB, free: 13.43 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001342/0.9034, allocations: 45.81 kB / 1.224 GB, free: 13.38 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 2.59e-05/0.9035, allocations: 8 kB / 1.224 GB, free: 13.38 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003777/0.9038, allocations: 137 kB / 1.224 GB, free: 13.22 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=12): time 1.733e-06/0.9039, allocations: 4 kB / 1.224 GB, free: 13.22 MB / 0.9512 GB Notification: Performance of matching and sorting (n=12): time 0.0005966/0.9045, allocations: 193.4 kB / 1.225 GB, free: 13.02 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.636e-05/0.9045, allocations: 77.11 kB / 1.225 GB, free: 12.93 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001395/0.9047, allocations: 166.3 kB / 1.225 GB, free: 12.76 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 2.823e-05/0.9047, allocations: 33.7 kB / 1.225 GB, free: 12.72 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 6.952e-05/0.9048, allocations: 112.4 kB / 1.225 GB, free: 12.6 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 3.971e-05/0.9048, allocations: 27.75 kB / 1.225 GB, free: 12.57 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.013e-05/0.9049, allocations: 33.7 kB / 1.225 GB, free: 12.54 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001082/0.905, allocations: 330.8 kB / 1.225 GB, free: 12.2 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001336/0.9052, allocations: 35.95 kB / 1.225 GB, free: 12.17 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001943/0.9054, allocations: 125.3 kB / 1.226 GB, free: 12.01 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003046/0.9057, allocations: 143.6 kB / 1.226 GB, free: 11.84 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.697e-06/0.9057, allocations: 0 / 1.226 GB, free: 11.84 MB / 0.9512 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003848/0.9061, allocations: 169.3 kB / 1.226 GB, free: 11.67 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.966e-05/0.9061, allocations: 7.984 kB / 1.226 GB, free: 11.66 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.093e-05/0.9061, allocations: 4.109 kB / 1.226 GB, free: 11.66 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.075e-05/0.9061, allocations: 7.938 kB / 1.226 GB, free: 11.65 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001164/0.9063, allocations: 15.98 kB / 1.226 GB, free: 11.64 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.078e-05/0.9063, allocations: 7.938 kB / 1.226 GB, free: 11.63 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001103/0.9064, allocations: 20.2 kB / 1.226 GB, free: 11.61 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.811e-05/0.9064, allocations: 12 kB / 1.226 GB, free: 11.6 MB / 0.9512 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.000116/0.9066, allocations: 129.6 kB / 1.226 GB, free: 11.46 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.284e-05/0.9066, allocations: 19.89 kB / 1.226 GB, free: 11.45 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.169e-05/0.9066, allocations: 13.41 kB / 1.226 GB, free: 11.42 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.899e-06/0.9067, allocations: 4 kB / 1.226 GB, free: 11.41 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/0.9067, allocations: 0 / 1.226 GB, free: 11.41 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.561e-06/0.9067, allocations: 4.312 kB / 1.226 GB, free: 11.41 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007236/0.9074, allocations: 0.5446 MB / 1.227 GB, free: 10.81 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.796e-06/0.9074, allocations: 48 / 1.227 GB, free: 10.81 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.294e-05/0.9075, allocations: 19.97 kB / 1.227 GB, free: 10.79 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.13e-06/0.9075, allocations: 7.875 kB / 1.227 GB, free: 10.78 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.366e-05/0.9075, allocations: 3.984 kB / 1.227 GB, free: 10.78 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.759e-06/0.9076, allocations: 4 kB / 1.227 GB, free: 10.77 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.803e-06/0.9076, allocations: 0 / 1.227 GB, free: 10.77 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004356/0.908, allocations: 322.5 kB / 1.227 GB, free: 10.44 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 5.074e-05/0.9081, allocations: 92.95 kB / 1.227 GB, free: 10.33 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.75e-05/0.9081, allocations: 8 kB / 1.227 GB, free: 10.32 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001892/0.9083, allocations: 19.97 kB / 1.227 GB, free: 10.3 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.963e-05/0.9084, allocations: 11.98 kB / 1.227 GB, free: 10.29 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.116e-05/0.9084, allocations: 8 kB / 1.227 GB, free: 10.29 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0001126/0.9085, allocations: 124.2 kB / 1.227 GB, free: 10.16 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.2e-07/0.9085, allocations: 0 / 1.227 GB, free: 10.16 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0003884/0.9089, allocations: 39.92 kB / 1.227 GB, free: 10.12 MB / 0.9512 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.001121/0.9101, allocations: 0.9596 MB / 1.228 GB, free: 9.176 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0003867/0.9105, allocations: 112 kB / 1.228 GB, free: 9.066 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 3.326e-06/0.9105, allocations: 0 / 1.228 GB, free: 9.066 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0001693/0.9106, allocations: 55.84 kB / 1.228 GB, free: 9.012 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003975/0.911, allocations: 18.33 kB / 1.228 GB, free: 8.996 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002259/0.9133, allocations: 1.902 MB / 1.23 GB, free: 6.965 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002661/0.9136, allocations: 0.7119 MB / 1.231 GB, free: 6.227 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 7.622e-05/0.9137, allocations: 20.53 kB / 1.231 GB, free: 6.207 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.498e-05/0.9138, allocations: 43.42 kB / 1.231 GB, free: 6.164 MB / 0.9512 GB Notification: Performance of SimCode: time 3.7e-07/0.9138, allocations: 0 / 1.231 GB, free: 6.164 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0233/0.9371, allocations: 3.441 MB / 1.234 GB, free: 2.824 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.839/8.776, allocations: 10.45 kB / 1.234 GB, free: 2.816 MB / 0.9512 GB (rm -f Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; mkfifo Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer.pipe >> ../files/Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer.sim & python3 -m fmpy simulate --output-file Buildings_latest_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_latest_Buildings_Utilities_IO_Files_Examples_Printer.fmu > Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_IO_Files_Examples_Printer.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches