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.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001291/0.001291, allocations: 108 kB / 15.6 MB, free: 132 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.001273/0.001273, allocations: 193.4 kB / 16.53 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.279/1.279, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.598/2.598, allocations: 461.9 MB / 0.7346 GB, free: 14.71 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001241/0.001242, allocations: 62.31 kB / 0.8992 GB, free: 36.9 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2468/0.2481, allocations: 157.4 MB / 1.053 GB, free: 8.25 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.002672/0.2508, allocations: 1.604 MB / 1.054 GB, free: 6.633 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001166/0.252, allocations: 0.7055 MB / 1.055 GB, free: 5.922 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.121e-05/0.252, allocations: 3.938 kB / 1.055 GB, free: 5.918 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 9.333e-05/0.2521, allocations: 11.86 kB / 1.055 GB, free: 5.906 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 5.807e-05/0.2522, allocations: 27.73 kB / 1.055 GB, free: 5.879 MB / 0.8106 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.0004353/0.2527, allocations: 99.75 kB / 1.055 GB, free: 5.781 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.000174/0.2529, allocations: 135.6 kB / 1.055 GB, free: 5.648 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001209/0.253, allocations: 33.11 kB / 1.055 GB, free: 5.617 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 8.177e-05/0.2531, allocations: 55.77 kB / 1.055 GB, free: 5.562 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 8.536e-05/0.2532, allocations: 67.69 kB / 1.056 GB, free: 5.496 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.284e-05/0.2532, allocations: 12 kB / 1.056 GB, free: 5.484 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001157/0.2533, allocations: 51.95 kB / 1.056 GB, free: 5.434 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 4.802e-05/0.2534, allocations: 23.92 kB / 1.056 GB, free: 5.41 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 7.149e-05/0.2534, allocations: 67.64 kB / 1.056 GB, free: 5.344 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002107/0.2537, allocations: 163.8 kB / 1.056 GB, free: 5.184 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 2.936e-06/0.2537, allocations: 0 / 1.056 GB, free: 5.184 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.293e-06/0.2537, allocations: 0 / 1.056 GB, free: 5.184 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.839e-06/0.2537, allocations: 7.938 kB / 1.056 GB, free: 5.176 MB / 0.8106 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.0007573/0.2545, allocations: 0.5351 MB / 1.056 GB, free: 4.574 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.623e-05/0.2545, allocations: 8.625 kB / 1.056 GB, free: 4.566 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.677e-05/0.2545, allocations: 46.67 kB / 1.056 GB, free: 4.512 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.9e-05/0.2546, allocations: 20.75 kB / 1.056 GB, free: 4.492 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001829/0.2548, allocations: 212.1 kB / 1.057 GB, free: 4.246 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.336e-05/0.2548, allocations: 8.375 kB / 1.057 GB, free: 4.238 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.857e-05/0.2548, allocations: 8.375 kB / 1.057 GB, free: 4.23 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002969/0.2551, allocations: 138.6 kB / 1.057 GB, free: 4.086 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.536e-06/0.2552, allocations: 7.938 kB / 1.057 GB, free: 4.078 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.309e-05/0.2552, allocations: 0 / 1.057 GB, free: 4.078 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.177e-06/0.2552, allocations: 0 / 1.057 GB, free: 4.078 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002397/0.2554, allocations: 71.94 kB / 1.057 GB, free: 4.008 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005766/0.256, allocations: 468.6 kB / 1.057 GB, free: 3.496 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001921/0.2562, allocations: 81.17 kB / 1.057 GB, free: 3.398 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001332/0.2564, allocations: 49.8 kB / 1.057 GB, free: 3.344 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.313e-05/0.2564, allocations: 3.938 kB / 1.057 GB, free: 3.34 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000282/0.2567, allocations: 148.9 kB / 1.058 GB, free: 3.176 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=12): time 1.293e-06/0.2567, allocations: 0 / 1.058 GB, free: 3.176 MB / 0.8106 GB Notification: Performance of matching and sorting (n=12): time 0.0005528/0.2572, allocations: 193.4 kB / 1.058 GB, free: 2.98 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.827e-05/0.2573, allocations: 81.11 kB / 1.058 GB, free: 2.883 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001242/0.2574, allocations: 168.1 kB / 1.058 GB, free: 2.711 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.49e-05/0.2575, allocations: 33.7 kB / 1.058 GB, free: 2.672 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.644e-05/0.2575, allocations: 108.3 kB / 1.058 GB, free: 2.559 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 3.213e-05/0.2576, allocations: 27.66 kB / 1.058 GB, free: 2.531 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.799e-05/0.2576, allocations: 37.7 kB / 1.058 GB, free: 2.488 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.817e-05/0.2577, allocations: 322.8 kB / 1.059 GB, free: 2.164 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000128/0.2579, allocations: 39.97 kB / 1.059 GB, free: 2.125 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001807/0.2581, allocations: 116.1 kB / 1.059 GB, free: 1.977 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002882/0.2583, allocations: 147.5 kB / 1.059 GB, free: 1.805 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.2584, allocations: 4 kB / 1.059 GB, free: 1.801 MB / 0.8106 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003541/0.2587, allocations: 165.3 kB / 1.059 GB, free: 1.633 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.554e-05/0.2587, allocations: 5.25 kB / 1.059 GB, free: 1.629 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.703e-06/0.2588, allocations: 8.312 kB / 1.059 GB, free: 1.621 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.363e-05/0.2588, allocations: 0 / 1.059 GB, free: 1.621 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001024/0.2589, allocations: 15.98 kB / 1.059 GB, free: 1.605 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.839e-06/0.2589, allocations: 7.984 kB / 1.059 GB, free: 1.598 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.523e-05/0.259, allocations: 19.88 kB / 1.059 GB, free: 1.578 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.165e-05/0.259, allocations: 12.17 kB / 1.059 GB, free: 1.566 MB / 0.8106 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.0001003/0.2591, allocations: 129.9 kB / 1.059 GB, free: 1.43 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.985e-05/0.2592, allocations: 23.75 kB / 1.059 GB, free: 1.406 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.325e-05/0.2592, allocations: 21.39 kB / 1.059 GB, free: 1.387 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.084e-06/0.2592, allocations: 0 / 1.059 GB, free: 1.387 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.579e-06/0.2592, allocations: 4 kB / 1.059 GB, free: 1.383 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.23e-06/0.2592, allocations: 3.938 kB / 1.059 GB, free: 1.379 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006539/0.2599, allocations: 0.5405 MB / 1.06 GB, free: 0.7812 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.943e-06/0.2599, allocations: 0 / 1.06 GB, free: 0.7812 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.204e-05/0.26, allocations: 11.98 kB / 1.06 GB, free: 0.7695 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.622e-06/0.26, allocations: 7.938 kB / 1.06 GB, free: 0.7617 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.728e-06/0.26, allocations: 0 / 1.06 GB, free: 0.7617 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.26, allocations: 0 / 1.06 GB, free: 0.7617 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/0.26, allocations: 3.938 kB / 1.06 GB, free: 0.7578 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003885/0.2604, allocations: 322.6 kB / 1.06 GB, free: 436 kB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.2e-05/0.2605, allocations: 88.95 kB / 1.06 GB, free: 328 kB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.05e-05/0.2605, allocations: 0 / 1.06 GB, free: 328 kB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001782/0.2607, allocations: 28.25 kB / 1.06 GB, free: 300 kB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.51e-05/0.2607, allocations: 4 kB / 1.06 GB, free: 296 kB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.973e-05/0.2608, allocations: 19.92 kB / 1.06 GB, free: 276 kB / 0.8106 GB Notification: Performance of sorting global known variables: time 7.277e-05/0.2609, allocations: 111.2 kB / 1.06 GB, free: 164 kB / 0.8106 GB Notification: Performance of sort global known variables: time 1e-07/0.2609, allocations: 0 / 1.06 GB, free: 164 kB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0003284/0.2612, allocations: 40 kB / 1.06 GB, free: 124 kB / 0.8106 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.0009272/0.2621, allocations: 0.9667 MB / 1.061 GB, free: 15.17 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003497/0.2625, allocations: 120 kB / 1.061 GB, free: 15.05 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.2625, allocations: 0 / 1.061 GB, free: 15.05 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001527/0.2627, allocations: 51.91 kB / 1.061 GB, free: 15 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003527/0.263, allocations: 15.98 kB / 1.061 GB, free: 14.98 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00206/0.2651, allocations: 1.886 MB / 1.063 GB, free: 12.96 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002368/0.2653, allocations: 0.7158 MB / 1.064 GB, free: 12.22 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 7.053e-05/0.2654, allocations: 20.53 kB / 1.064 GB, free: 12.2 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.827e-05/0.2655, allocations: 39.42 kB / 1.064 GB, free: 12.16 MB / 0.8262 GB Notification: Performance of SimCode: time 3.21e-07/0.2655, allocations: 0 / 1.064 GB, free: 12.16 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01988/0.2854, allocations: 3.393 MB / 1.067 GB, free: 8.859 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.481/7.766, allocations: 6.156 kB / 1.067 GB, free: 8.855 MB / 0.8262 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_IO_Files_Examples_Printer_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 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.mat","/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