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.001305/0.001305, allocations: 112.5 kB / 15.73 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001427/0.001427, allocations: 192.2 kB / 16.67 MB, free: 6.574 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.401/1.401, allocations: 222.9 MB / 240.4 MB, free: 4.348 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.674/2.674, allocations: 437 MB / 0.7105 GB, free: 4.973 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001201/0.001201, allocations: 67.89 kB / 1.018 GB, free: 15.12 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2773/0.2785, 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.002596/0.2811, allocations: 1.579 MB / 1.168 GB, free: 5.766 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.001193/0.2823, allocations: 0.7013 MB / 1.168 GB, free: 5.059 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.676e-05/0.2824, allocations: 4 kB / 1.168 GB, free: 5.055 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 9.927e-05/0.2825, allocations: 11.86 kB / 1.168 GB, free: 5.043 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 5.446e-05/0.2826, allocations: 23.73 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.0004112/0.283, allocations: 103.7 kB / 1.169 GB, free: 4.918 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0001908/0.2832, allocations: 135.6 kB / 1.169 GB, free: 4.785 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001506/0.2834, allocations: 37.09 kB / 1.169 GB, free: 4.746 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 9.844e-05/0.2835, allocations: 59.7 kB / 1.169 GB, free: 4.688 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 8.613e-05/0.2836, allocations: 67.73 kB / 1.169 GB, free: 4.621 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 2.344e-05/0.2836, allocations: 12 kB / 1.169 GB, free: 4.609 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001152/0.2837, allocations: 47.98 kB / 1.169 GB, free: 4.562 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 5.335e-05/0.2838, allocations: 31.89 kB / 1.169 GB, free: 4.531 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 7.129e-05/0.2839, allocations: 63.66 kB / 1.169 GB, free: 4.469 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0002489/0.2841, allocations: 175.5 kB / 1.169 GB, free: 4.297 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.2841, allocations: 0 / 1.169 GB, free: 4.297 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.363e-06/0.2841, allocations: 0 / 1.169 GB, free: 4.297 MB / 0.92 GB Notification: Performance of Transformations before backend: time 5.079e-06/0.2841, allocations: 0 / 1.169 GB, free: 4.297 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.0008262/0.285, allocations: 0.5466 MB / 1.17 GB, free: 3.684 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.41e-05/0.285, allocations: 8.031 kB / 1.17 GB, free: 3.676 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.268e-05/0.2851, allocations: 42.75 kB / 1.17 GB, free: 3.625 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.815e-05/0.2851, allocations: 20.83 kB / 1.17 GB, free: 3.605 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002211/0.2853, allocations: 217.1 kB / 1.17 GB, free: 3.355 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.371e-05/0.2854, allocations: 8.375 kB / 1.17 GB, free: 3.348 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.079e-05/0.2854, allocations: 8.375 kB / 1.17 GB, free: 3.34 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003083/0.2857, allocations: 139.4 kB / 1.17 GB, free: 3.191 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.576e-06/0.2857, allocations: 0 / 1.17 GB, free: 3.191 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.604e-05/0.2857, allocations: 3.984 kB / 1.17 GB, free: 3.188 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.227e-06/0.2858, allocations: 0 / 1.17 GB, free: 3.188 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002369/0.286, allocations: 67.94 kB / 1.17 GB, free: 3.121 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006369/0.2866, allocations: 464.8 kB / 1.171 GB, free: 2.613 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002063/0.2869, allocations: 89.11 kB / 1.171 GB, free: 2.508 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001311/0.287, allocations: 45.81 kB / 1.171 GB, free: 2.457 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 2.281e-05/0.287, allocations: 4 kB / 1.171 GB, free: 2.453 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003372/0.2874, allocations: 149 kB / 1.171 GB, free: 2.289 MB / 0.92 GB Notification: Performance of pre-optimization done (n=12): time 1.733e-06/0.2874, allocations: 0 / 1.171 GB, free: 2.289 MB / 0.92 GB Notification: Performance of matching and sorting (n=12): time 0.0005589/0.288, allocations: 185.4 kB / 1.171 GB, free: 2.102 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.758e-05/0.288, allocations: 85.09 kB / 1.171 GB, free: 2 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001354/0.2882, allocations: 166.8 kB / 1.171 GB, free: 1.828 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 2.324e-05/0.2882, allocations: 29.7 kB / 1.171 GB, free: 1.793 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 6.194e-05/0.2883, allocations: 112.4 kB / 1.171 GB, free: 1.676 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 4.29e-05/0.2883, allocations: 35.77 kB / 1.171 GB, free: 1.641 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.48e-05/0.2884, allocations: 37.7 kB / 1.171 GB, free: 1.598 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001127/0.2885, allocations: 318.8 kB / 1.172 GB, free: 1.277 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001274/0.2886, allocations: 39.97 kB / 1.172 GB, free: 1.238 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001883/0.2888, allocations: 119.5 kB / 1.172 GB, free: 1.086 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002968/0.2891, allocations: 147.5 kB / 1.172 GB, free: 0.9141 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.037e-06/0.2891, allocations: 8 kB / 1.172 GB, free: 0.9062 MB / 0.92 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003522/0.2895, allocations: 157.3 kB / 1.172 GB, free: 0.7461 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.356e-05/0.2895, allocations: 8 kB / 1.172 GB, free: 0.7383 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.256e-06/0.2895, allocations: 4 kB / 1.172 GB, free: 0.7344 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.326e-05/0.2895, allocations: 288 / 1.172 GB, free: 0.7344 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001109/0.2897, allocations: 19.98 kB / 1.172 GB, free: 0.7148 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.504e-06/0.2897, allocations: 7.938 kB / 1.172 GB, free: 0.707 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.942e-05/0.2898, allocations: 23.88 kB / 1.172 GB, free: 0.6836 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.104e-05/0.2898, allocations: 4 kB / 1.172 GB, free: 0.6797 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.0001036/0.2899, allocations: 133.8 kB / 1.172 GB, free: 0.5391 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.805e-05/0.2899, allocations: 16.19 kB / 1.172 GB, free: 0.5234 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.455e-05/0.29, allocations: 17.39 kB / 1.172 GB, free: 0.5039 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.576e-06/0.29, allocations: 7.984 kB / 1.172 GB, free: 0.4961 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.451e-05/0.29, allocations: 4 kB / 1.172 GB, free: 0.4922 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.641e-06/0.29, allocations: 7.875 kB / 1.172 GB, free: 496 kB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006953/0.2907, allocations: 0.5327 MB / 1.173 GB, free: 15.89 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.2907, allocations: 480 / 1.173 GB, free: 15.89 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.329e-05/0.2908, allocations: 15.92 kB / 1.173 GB, free: 15.88 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.208e-06/0.2908, allocations: 7.938 kB / 1.173 GB, free: 15.87 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.308e-05/0.2909, allocations: 4 kB / 1.173 GB, free: 15.87 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.986e-06/0.2909, allocations: 4 kB / 1.173 GB, free: 15.86 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.2909, allocations: 3.938 kB / 1.173 GB, free: 15.86 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004156/0.2913, allocations: 314.7 kB / 1.173 GB, free: 15.54 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 4.842e-05/0.2913, allocations: 100.9 kB / 1.173 GB, free: 15.42 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.939e-05/0.2914, allocations: 0 / 1.173 GB, free: 15.42 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001857/0.2916, allocations: 19.98 kB / 1.173 GB, free: 15.4 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.618e-05/0.2916, allocations: 11.92 kB / 1.173 GB, free: 15.39 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.529e-05/0.2917, allocations: 11.98 kB / 1.173 GB, free: 15.38 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 8.692e-05/0.2918, allocations: 116.2 kB / 1.174 GB, free: 15.26 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2918, allocations: 0 / 1.174 GB, free: 15.26 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0003473/0.2921, allocations: 39.94 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.0009505/0.2931, allocations: 0.9536 MB / 1.175 GB, free: 14.29 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0003482/0.2934, allocations: 111.9 kB / 1.175 GB, free: 14.18 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.2934, allocations: 0 / 1.175 GB, free: 14.18 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001666/0.2936, allocations: 55.89 kB / 1.175 GB, free: 14.12 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003661/0.294, allocations: 16.75 kB / 1.175 GB, free: 14.11 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002161/0.2962, allocations: 1.912 MB / 1.177 GB, free: 12.06 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002954/0.2965, allocations: 0.7196 MB / 1.177 GB, free: 11.31 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 7.491e-05/0.2966, allocations: 24.53 kB / 1.177 GB, free: 11.29 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.845e-05/0.2966, allocations: 35.44 kB / 1.177 GB, free: 11.25 MB / 0.9356 GB Notification: Performance of SimCode: time 5.31e-07/0.2966, allocations: 0 / 1.177 GB, free: 11.25 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02072/0.3174, allocations: 3.443 MB / 1.181 GB, free: 7.902 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.813/8.131, allocations: 7.156 kB / 1.181 GB, free: 7.898 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