Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_Buildings_Utilities_IO_Files_Examples_Printer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.Printer,fileNamePrefix="Buildings_9_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.001077/0.001077, allocations: 108 kB / 15.61 MB, free: 152 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.001145/0.001145, allocations: 193 kB / 16.53 MB, free: 6.664 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.275/1.275, allocations: 222.9 MB / 240.2 MB, free: 4.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.142/2.142, allocations: 390.3 MB / 0.6647 GB, free: 460 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001143/0.001143, allocations: 59.91 kB / 0.8126 GB, free: 14.4 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4783/0.4794, allocations: 140.4 MB / 0.9497 GB, free: 9.242 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.002157/0.4816, allocations: 1.579 MB / 0.9513 GB, free: 7.996 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0008657/0.4825, allocations: 0.6896 MB / 0.9519 GB, free: 7.465 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.512e-05/0.4825, allocations: 1.312 kB / 0.9519 GB, free: 7.465 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 7.994e-05/0.4826, allocations: 13.44 kB / 0.9519 GB, free: 7.453 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.183e-05/0.4827, allocations: 21.2 kB / 0.952 GB, free: 7.434 MB / 0.7169 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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.0003261/0.483, allocations: 112.9 kB / 0.9521 GB, free: 7.352 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001322/0.4832, allocations: 143.5 kB / 0.9522 GB, free: 7.266 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000112/0.4833, allocations: 41.78 kB / 0.9523 GB, free: 7.238 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 6.28e-05/0.4833, allocations: 53.06 kB / 0.9523 GB, free: 7.207 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.733e-05/0.4834, allocations: 66.2 kB / 0.9524 GB, free: 7.16 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.194e-05/0.4834, allocations: 9.938 kB / 0.9524 GB, free: 7.16 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 9.844e-05/0.4836, allocations: 46.31 kB / 0.9524 GB, free: 7.145 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 4.735e-05/0.4836, allocations: 31.5 kB / 0.9524 GB, free: 7.121 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 5.797e-05/0.4837, allocations: 67.17 kB / 0.9525 GB, free: 7.07 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.000168/0.4838, allocations: 161.4 kB / 0.9527 GB, free: 6.961 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.136e-06/0.4839, allocations: 0 / 0.9527 GB, free: 6.961 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.062e-06/0.4839, allocations: 4 kB / 0.9527 GB, free: 6.957 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 7.574e-06/0.4839, allocations: 0 / 0.9527 GB, free: 6.957 MB / 0.7169 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.0006297/0.4845, allocations: 0.543 MB / 0.9532 GB, free: 6.414 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.219e-05/0.4845, allocations: 9.688 kB / 0.9532 GB, free: 6.414 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.489e-05/0.4846, allocations: 45.53 kB / 0.9533 GB, free: 6.363 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.178e-05/0.4846, allocations: 16.78 kB / 0.9533 GB, free: 6.355 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001348/0.4848, allocations: 223.5 kB / 0.9535 GB, free: 6.113 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.508e-06/0.4848, allocations: 9.406 kB / 0.9535 GB, free: 6.109 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.795e-05/0.4848, allocations: 6.469 kB / 0.9535 GB, free: 6.109 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002504/0.485, allocations: 130.5 kB / 0.9536 GB, free: 6.016 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.234e-06/0.4851, allocations: 0 / 0.9536 GB, free: 6.016 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.25e-05/0.4851, allocations: 2.562 kB / 0.9536 GB, free: 6.016 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.929e-06/0.4851, allocations: 5.25 kB / 0.9536 GB, free: 6.012 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000214/0.4853, allocations: 68.84 kB / 0.9537 GB, free: 5.98 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004429/0.4858, allocations: 466.1 kB / 0.9541 GB, free: 5.527 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001599/0.4859, allocations: 75.47 kB / 0.9542 GB, free: 5.465 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000117/0.4861, allocations: 46.69 kB / 0.9543 GB, free: 5.434 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.092e-05/0.4861, allocations: 9.922 kB / 0.9543 GB, free: 5.426 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002414/0.4863, allocations: 145 kB / 0.9544 GB, free: 5.312 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=12): time 1.743e-06/0.4863, allocations: 112 / 0.9544 GB, free: 5.312 MB / 0.7169 GB Notification: Performance of matching and sorting (n=12): time 0.0004785/0.4868, allocations: 193.4 kB / 0.9546 GB, free: 5.207 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.37e-05/0.4869, allocations: 87.03 kB / 0.9547 GB, free: 5.105 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.828e-05/0.4869, allocations: 168.2 kB / 0.9548 GB, free: 4.969 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.622e-05/0.487, allocations: 27.98 kB / 0.9549 GB, free: 4.938 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.567e-05/0.487, allocations: 115.2 kB / 0.955 GB, free: 4.824 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.523e-05/0.487, allocations: 29.2 kB / 0.955 GB, free: 4.801 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.298e-05/0.4871, allocations: 33.67 kB / 0.955 GB, free: 4.773 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.617e-05/0.4871, allocations: 326.5 kB / 0.9553 GB, free: 4.449 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001164/0.4873, allocations: 37.03 kB / 0.9554 GB, free: 4.434 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001437/0.4874, allocations: 123.5 kB / 0.9555 GB, free: 4.309 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002483/0.4877, allocations: 148.1 kB / 0.9556 GB, free: 4.188 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.4877, allocations: 1.156 kB / 0.9556 GB, free: 4.188 MB / 0.7169 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003075/0.488, allocations: 163.7 kB / 0.9558 GB, free: 4.094 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.106e-05/0.488, allocations: 6 kB / 0.9558 GB, free: 4.094 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.1e-06/0.488, allocations: 6.734 kB / 0.9558 GB, free: 4.09 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.183e-05/0.488, allocations: 2.844 kB / 0.9558 GB, free: 4.09 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.927e-05/0.4881, allocations: 18.2 kB / 0.9558 GB, free: 4.082 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.132e-06/0.4881, allocations: 3.906 kB / 0.9558 GB, free: 4.082 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.901e-05/0.4882, allocations: 24.48 kB / 0.9558 GB, free: 4.066 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.051e-05/0.4882, allocations: 5.969 kB / 0.9559 GB, free: 4.066 MB / 0.7169 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 6.949e-05/0.4883, allocations: 137.7 kB / 0.956 GB, free: 3.934 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.455e-05/0.4883, allocations: 19.09 kB / 0.956 GB, free: 3.922 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.513e-05/0.4884, allocations: 21.33 kB / 0.956 GB, free: 3.906 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.124e-06/0.4884, allocations: 1.625 kB / 0.956 GB, free: 3.906 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.4884, allocations: 3.969 kB / 0.956 GB, free: 3.906 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/0.4884, allocations: 3.938 kB / 0.956 GB, free: 3.902 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004863/0.4889, allocations: 0.5355 MB / 0.9566 GB, free: 3.406 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.4889, allocations: 0 / 0.9566 GB, free: 3.406 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.491e-05/0.489, allocations: 15.83 kB / 0.9566 GB, free: 3.398 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.375e-06/0.489, allocations: 5.688 kB / 0.9566 GB, free: 3.395 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.387e-06/0.489, allocations: 1.656 kB / 0.9566 GB, free: 3.395 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.014e-06/0.489, allocations: 1.469 kB / 0.9566 GB, free: 3.395 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.489, allocations: 4 kB / 0.9566 GB, free: 3.391 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003096/0.4893, allocations: 318.4 kB / 0.9569 GB, free: 3.133 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.244e-05/0.4894, allocations: 95.81 kB / 0.957 GB, free: 3.023 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.008e-05/0.4894, allocations: 2.094 kB / 0.957 GB, free: 3.023 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001629/0.4895, allocations: 20.95 kB / 0.957 GB, free: 3.012 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.917e-05/0.4896, allocations: 8.422 kB / 0.957 GB, free: 3.008 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.722e-05/0.4896, allocations: 11.67 kB / 0.957 GB, free: 3.004 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 5.235e-05/0.4897, allocations: 117.6 kB / 0.9571 GB, free: 2.91 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4897, allocations: 0 / 0.9571 GB, free: 2.91 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003077/0.49, allocations: 41.03 kB / 0.9572 GB, free: 2.898 MB / 0.7169 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.0006657/0.4907, allocations: 0.9684 MB / 0.9581 GB, free: 2.051 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003069/0.491, allocations: 120.6 kB / 0.9582 GB, free: 1.996 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.491, allocations: 0 / 0.9582 GB, free: 1.996 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001359/0.4911, allocations: 60.72 kB / 0.9583 GB, free: 1.969 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003246/0.4915, allocations: 13.06 kB / 0.9583 GB, free: 1.965 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001548/0.493, allocations: 1.892 MB / 0.9602 GB, free: 280 kB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002187/0.4933, allocations: 0.7078 MB / 0.9608 GB, free: 15.57 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 5.853e-05/0.4933, allocations: 20.41 kB / 0.9609 GB, free: 15.56 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.385e-05/0.4934, allocations: 39.52 kB / 0.9609 GB, free: 15.53 MB / 0.7325 GB Notification: Performance of SimCode: time 2.6e-07/0.4934, allocations: 4 kB / 0.9609 GB, free: 15.52 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09326/0.5867, allocations: 3.387 MB / 0.9642 GB, free: 13.77 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.072/7.658, allocations: 4.156 kB / 0.9642 GB, free: 13.77 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; mkfifo Buildings_9_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.IO.Files.Examples.Printer.pipe >> ../files/Buildings_9_Buildings.Utilities.IO.Files.Examples.Printer.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Utilities.IO.Files.Examples.Printer_res.mat --tempDir=temp_Buildings_9_Buildings_Utilities_IO_Files_Examples_Printer_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Utilities_IO_Files_Examples_Printer.fmu > Buildings_9_Buildings.Utilities.IO.Files.Examples.Printer.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.IO.Files.Examples.Printer_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_IO_Files_Examples_Printer.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.IO.Files.Examples.Printer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches