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.007396/0.007396, allocations: 101.6 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.00166/0.00166, allocations: 196.5 kB / 16.68 MB, free: 5.973 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.331/1.331, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.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.148/2.148, allocations: 390.3 MB / 0.6648 GB, free: 0.6445 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.00137/0.00137, allocations: 59.91 kB / 0.9504 GB, free: 8.195 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7548/0.7562, allocations: 140.4 MB / 1.087 GB, free: 5.289 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.002459/0.7587, allocations: 1.58 MB / 1.089 GB, free: 4.195 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001108/0.7599, allocations: 0.6954 MB / 1.09 GB, free: 3.727 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.575e-05/0.7599, allocations: 2.156 kB / 1.09 GB, free: 3.727 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0001045/0.76, allocations: 9.844 kB / 1.09 GB, free: 3.719 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 5.197e-05/0.7601, allocations: 24.02 kB / 1.09 GB, free: 3.699 MB / 0.8575 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.0004081/0.7605, allocations: 111.3 kB / 1.09 GB, free: 3.641 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001796/0.7607, allocations: 143 kB / 1.09 GB, free: 3.574 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001398/0.7609, allocations: 28.34 kB / 1.09 GB, free: 3.562 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 9.37e-05/0.761, allocations: 61.89 kB / 1.09 GB, free: 3.531 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001062/0.7611, allocations: 65.66 kB / 1.09 GB, free: 3.5 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.668e-05/0.7611, allocations: 10.16 kB / 1.09 GB, free: 3.5 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001357/0.7612, allocations: 44.09 kB / 1.09 GB, free: 3.492 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 7.488e-05/0.7613, allocations: 31.05 kB / 1.09 GB, free: 3.477 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 7.518e-05/0.7614, allocations: 57.27 kB / 1.09 GB, free: 3.441 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0003014/0.7617, allocations: 179.2 kB / 1.09 GB, free: 3.363 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.7617, allocations: 1.031 kB / 1.09 GB, free: 3.363 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.723e-06/0.7617, allocations: 0 / 1.09 GB, free: 3.363 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.612e-06/0.7618, allocations: 0 / 1.09 GB, free: 3.363 MB / 0.8575 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.0008224/0.7626, allocations: 0.5428 MB / 1.091 GB, free: 2.852 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.069e-05/0.7626, allocations: 13.31 kB / 1.091 GB, free: 2.848 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.674e-05/0.7627, allocations: 40.02 kB / 1.091 GB, free: 2.805 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.481e-05/0.7627, allocations: 17.88 kB / 1.091 GB, free: 2.797 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001896/0.7629, allocations: 213.3 kB / 1.091 GB, free: 2.578 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.68e-05/0.7629, allocations: 16.88 kB / 1.091 GB, free: 2.566 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.346e-05/0.763, allocations: 6.875 kB / 1.091 GB, free: 2.566 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003254/0.7633, allocations: 128.1 kB / 1.091 GB, free: 2.496 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.111e-05/0.7633, allocations: 1.156 kB / 1.091 GB, free: 2.496 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.609e-05/0.7633, allocations: 6.078 kB / 1.091 GB, free: 2.492 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.842e-06/0.7634, allocations: 1.828 kB / 1.091 GB, free: 2.492 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002663/0.7636, allocations: 73.39 kB / 1.091 GB, free: 2.473 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006285/0.7643, allocations: 455.7 kB / 1.092 GB, free: 2.082 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002115/0.7645, allocations: 85.19 kB / 1.092 GB, free: 2.02 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001487/0.7646, allocations: 46.59 kB / 1.092 GB, free: 1.996 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.556e-05/0.7647, allocations: 6.406 kB / 1.092 GB, free: 1.992 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000293/0.765, allocations: 154 kB / 1.092 GB, free: 1.895 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=12): time 1.373e-06/0.765, allocations: 0 / 1.092 GB, free: 1.895 MB / 0.8575 GB Notification: Performance of matching and sorting (n=12): time 0.0005906/0.7656, allocations: 187.7 kB / 1.092 GB, free: 1.824 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.998e-05/0.7656, allocations: 80.38 kB / 1.092 GB, free: 1.73 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001122/0.7657, allocations: 179.1 kB / 1.093 GB, free: 1.594 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.99e-05/0.7658, allocations: 29.64 kB / 1.093 GB, free: 1.562 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 4.574e-05/0.7658, allocations: 111.6 kB / 1.093 GB, free: 1.457 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.961e-05/0.7659, allocations: 30.08 kB / 1.093 GB, free: 1.434 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.421e-05/0.7659, allocations: 37.8 kB / 1.093 GB, free: 1.406 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 4.346e-05/0.766, allocations: 327.7 kB / 1.093 GB, free: 1.086 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001324/0.7661, allocations: 37.36 kB / 1.093 GB, free: 1.078 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001679/0.7663, allocations: 118.7 kB / 1.093 GB, free: 0.9688 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002923/0.7666, allocations: 148.1 kB / 1.093 GB, free: 0.8633 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.697e-06/0.7666, allocations: 0.6562 kB / 1.093 GB, free: 0.8633 MB / 0.8575 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003941/0.767, allocations: 165.3 kB / 1.094 GB, free: 0.7891 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.145e-05/0.767, allocations: 6.812 kB / 1.094 GB, free: 0.7891 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.466e-06/0.767, allocations: 5.906 kB / 1.094 GB, free: 0.7852 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.99e-05/0.7671, allocations: 3.031 kB / 1.094 GB, free: 0.7852 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001192/0.7672, allocations: 19.2 kB / 1.094 GB, free: 0.7812 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.017e-06/0.7672, allocations: 3.812 kB / 1.094 GB, free: 0.7812 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001079/0.7673, allocations: 23.42 kB / 1.094 GB, free: 0.7695 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.704e-05/0.7673, allocations: 6.109 kB / 1.094 GB, free: 0.7695 MB / 0.8575 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.0001042/0.7674, allocations: 139.7 kB / 1.094 GB, free: 0.6367 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.018e-05/0.7675, allocations: 16.3 kB / 1.094 GB, free: 0.6289 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.528e-05/0.7675, allocations: 20.17 kB / 1.094 GB, free: 0.6133 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.362e-06/0.7676, allocations: 1.625 kB / 1.094 GB, free: 0.6133 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.77e-06/0.7676, allocations: 0.9375 kB / 1.094 GB, free: 0.6133 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.583e-06/0.7676, allocations: 5.641 kB / 1.094 GB, free: 0.6094 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006708/0.7683, allocations: 0.5201 MB / 1.094 GB, free: 192 kB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.076e-06/0.7683, allocations: 9.547 kB / 1.094 GB, free: 184 kB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.823e-05/0.7684, allocations: 16.25 kB / 1.094 GB, free: 180 kB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.068e-06/0.7684, allocations: 5.938 kB / 1.094 GB, free: 176 kB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.138e-05/0.7684, allocations: 5.453 kB / 1.094 GB, free: 172 kB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.086e-06/0.7684, allocations: 1.969 kB / 1.094 GB, free: 172 kB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.7684, allocations: 0.8125 kB / 1.094 GB, free: 172 kB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004355/0.7688, allocations: 327.2 kB / 1.095 GB, free: 15.92 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 4.794e-05/0.7689, allocations: 89.2 kB / 1.095 GB, free: 15.82 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.418e-05/0.7689, allocations: 6.078 kB / 1.095 GB, free: 15.81 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001949/0.7691, allocations: 19.31 kB / 1.095 GB, free: 15.81 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.599e-05/0.7692, allocations: 8.484 kB / 1.095 GB, free: 15.81 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.553e-05/0.7692, allocations: 7.734 kB / 1.095 GB, free: 15.81 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0001138/0.7693, allocations: 124.5 kB / 1.095 GB, free: 15.72 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.4e-07/0.7694, allocations: 0 / 1.095 GB, free: 15.72 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.000376/0.7697, allocations: 42.14 kB / 1.095 GB, free: 15.71 MB / 0.8731 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.001009/0.7708, allocations: 0.9593 MB / 1.096 GB, free: 14.9 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0003951/0.7712, allocations: 110.3 kB / 1.096 GB, free: 14.87 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/0.7712, allocations: 0.6562 kB / 1.096 GB, free: 14.87 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0001818/0.7714, allocations: 54.55 kB / 1.096 GB, free: 14.86 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003865/0.7718, allocations: 26 kB / 1.096 GB, free: 14.85 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002435/0.7742, allocations: 1.897 MB / 1.098 GB, free: 13.26 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002509/0.7745, allocations: 0.715 MB / 1.099 GB, free: 12.56 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 8.208e-05/0.7746, allocations: 21.28 kB / 1.099 GB, free: 12.56 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.559e-05/0.7746, allocations: 41.33 kB / 1.099 GB, free: 12.53 MB / 0.8731 GB Notification: Performance of SimCode: time 4.41e-07/0.7746, allocations: 0 / 1.099 GB, free: 12.53 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02017/0.7948, allocations: 3.502 MB / 1.102 GB, free: 11.93 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.677/8.472, allocations: 2.125 kB / 1.102 GB, free: 11.93 MB / 0.8731 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