Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Utilities.IO.Files.Examples.Printer.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001353/0.001353, allocations: 104.2 kB / 16.45 MB, free: 6.449 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001428/0.001428, allocations: 210.4 kB / 19.43 MB, free: 3.637 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.505/1.505, allocations: 230.6 MB / 252.8 MB, free: 9.117 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.225/3.225, allocations: 0.49 GB / 0.7916 GB, free: 33.48 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.Printer,fileNamePrefix="Buildings_12_Buildings_Utilities_IO_Files_Examples_Printer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.Printer,fileNamePrefix="Buildings_12_Buildings_Utilities_IO_Files_Examples_Printer",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002175/0.002175, allocations: 65.31 kB / 1.149 GB, free: 26.55 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3558/0.358, allocations: 176.1 MB / 1.321 GB, free: 3.488 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.003825/0.3618, allocations: 1.614 MB / 1.322 GB, free: 1.863 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.00194/0.3637, allocations: 0.7597 MB / 1.323 GB, free: 1.098 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001044/0.3638, allocations: 3.938 kB / 1.323 GB, free: 1.094 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.0001424/0.364, allocations: 15.86 kB / 1.323 GB, free: 1.078 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 9.123e-05/0.3641, allocations: 19.75 kB / 1.323 GB, free: 1.059 MB / 1.014 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.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.0006763/0.3648, allocations: 111.7 kB / 1.323 GB, free: 0.9492 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0002826/0.365, allocations: 135.5 kB / 1.323 GB, free: 0.8164 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000173/0.3652, allocations: 29.09 kB / 1.323 GB, free: 0.7852 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001402/0.3654, allocations: 55.78 kB / 1.323 GB, free: 0.7305 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000139/0.3655, allocations: 71.73 kB / 1.324 GB, free: 0.6602 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 2.97e-05/0.3655, allocations: 8 kB / 1.324 GB, free: 0.6523 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001789/0.3657, allocations: 59.89 kB / 1.324 GB, free: 0.5938 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 7.227e-05/0.3658, allocations: 27.92 kB / 1.324 GB, free: 0.5664 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.0001096/0.3659, allocations: 63.64 kB / 1.324 GB, free: 0.5039 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0003654/0.3662, allocations: 167.6 kB / 1.324 GB, free: 348 kB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 7.704e-06/0.3663, allocations: 3.984 kB / 1.324 GB, free: 344 kB / 1.014 GB Notification: Performance of FrontEnd: time 1.513e-06/0.3663, allocations: 0 / 1.324 GB, free: 344 kB / 1.014 GB Notification: Performance of Transformations before backend: time 1.024e-05/0.3663, allocations: 0 / 1.324 GB, free: 344 kB / 1.014 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.00119/0.3675, allocations: 0.5466 MB / 1.324 GB, free: 15.72 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 5.367e-05/0.3675, allocations: 15.98 kB / 1.324 GB, free: 15.71 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.808e-05/0.3676, allocations: 38.73 kB / 1.324 GB, free: 15.66 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.775e-05/0.3676, allocations: 20.84 kB / 1.324 GB, free: 15.64 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003248/0.368, allocations: 224 kB / 1.325 GB, free: 15.38 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.386e-05/0.368, allocations: 4.375 kB / 1.325 GB, free: 15.38 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.581e-05/0.368, allocations: 12.38 kB / 1.325 GB, free: 15.37 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003802/0.3684, allocations: 131.5 kB / 1.325 GB, free: 15.23 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.006e-05/0.3684, allocations: 0 / 1.325 GB, free: 15.23 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.651e-05/0.3684, allocations: 0 / 1.325 GB, free: 15.23 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.37e-06/0.3684, allocations: 4 kB / 1.325 GB, free: 15.22 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002692/0.3687, allocations: 71.88 kB / 1.325 GB, free: 15.15 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008266/0.3695, allocations: 464.8 kB / 1.325 GB, free: 14.64 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002533/0.3698, allocations: 85.12 kB / 1.325 GB, free: 14.54 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001471/0.3699, allocations: 37.81 kB / 1.325 GB, free: 14.5 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 3.317e-05/0.37, allocations: 11.97 kB / 1.325 GB, free: 14.49 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003761/0.3703, allocations: 153 kB / 1.326 GB, free: 14.32 MB / 1.029 GB Notification: Performance of pre-optimization done (n=12): time 1.463e-06/0.3703, allocations: 0 / 1.326 GB, free: 14.32 MB / 1.029 GB Notification: Performance of matching and sorting (n=12): time 0.000704/0.371, allocations: 193.4 kB / 1.326 GB, free: 14.12 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.873e-05/0.3711, allocations: 81.11 kB / 1.326 GB, free: 14.03 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001936/0.3713, allocations: 166.8 kB / 1.326 GB, free: 13.86 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 4.338e-05/0.3714, allocations: 33.7 kB / 1.326 GB, free: 13.82 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001137/0.3715, allocations: 112.3 kB / 1.326 GB, free: 13.7 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 5.393e-05/0.3715, allocations: 27.84 kB / 1.326 GB, free: 13.67 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.878e-05/0.3716, allocations: 33.7 kB / 1.326 GB, free: 13.63 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001951/0.3718, allocations: 322.8 kB / 1.327 GB, free: 13.31 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001416/0.3719, allocations: 35.97 kB / 1.327 GB, free: 13.27 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002457/0.3722, allocations: 121.1 kB / 1.327 GB, free: 13.12 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003569/0.3725, allocations: 151.5 kB / 1.327 GB, free: 12.95 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.292e-06/0.3725, allocations: 4 kB / 1.327 GB, free: 12.94 MB / 1.029 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004434/0.373, allocations: 161.3 kB / 1.327 GB, free: 12.78 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.862e-05/0.373, allocations: 4 kB / 1.327 GB, free: 12.77 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.027e-05/0.373, allocations: 4.281 kB / 1.327 GB, free: 12.77 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.785e-05/0.373, allocations: 4 kB / 1.327 GB, free: 12.77 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001316/0.3732, allocations: 23.91 kB / 1.327 GB, free: 12.74 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.987e-06/0.3732, allocations: 4 kB / 1.327 GB, free: 12.74 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000107/0.3733, allocations: 15.94 kB / 1.327 GB, free: 12.72 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.873e-05/0.3733, allocations: 7.984 kB / 1.327 GB, free: 12.71 MB / 1.029 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.0001828/0.3735, allocations: 135.5 kB / 1.327 GB, free: 12.57 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.877e-05/0.3735, allocations: 15.91 kB / 1.327 GB, free: 12.56 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.781e-05/0.3736, allocations: 25.39 kB / 1.327 GB, free: 12.53 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.026e-06/0.3736, allocations: 0 / 1.327 GB, free: 12.53 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.746e-06/0.3736, allocations: 4 kB / 1.327 GB, free: 12.52 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.794e-06/0.3736, allocations: 3.938 kB / 1.327 GB, free: 12.52 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001067/0.3747, allocations: 0.537 MB / 1.328 GB, free: 11.93 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.3747, allocations: 0 / 1.328 GB, free: 11.93 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.708e-05/0.3748, allocations: 19.98 kB / 1.328 GB, free: 11.91 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.013e-06/0.3748, allocations: 11.88 kB / 1.328 GB, free: 11.89 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.726e-05/0.3748, allocations: 3.984 kB / 1.328 GB, free: 11.89 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.3748, allocations: 0 / 1.328 GB, free: 11.89 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.3748, allocations: 0 / 1.328 GB, free: 11.89 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005374/0.3753, allocations: 326.6 kB / 1.328 GB, free: 11.55 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 8.493e-05/0.3754, allocations: 92.95 kB / 1.328 GB, free: 11.45 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.767e-05/0.3754, allocations: 4 kB / 1.328 GB, free: 11.44 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001915/0.3756, allocations: 19.97 kB / 1.328 GB, free: 11.42 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.449e-05/0.3757, allocations: 7.984 kB / 1.328 GB, free: 11.41 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.361e-05/0.3757, allocations: 8 kB / 1.328 GB, free: 11.41 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001251/0.3759, allocations: 115.2 kB / 1.328 GB, free: 11.29 MB / 1.029 GB Notification: Performance of sort global known variables: time 1e-07/0.3759, allocations: 4 kB / 1.328 GB, free: 11.29 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003983/0.3763, allocations: 43.92 kB / 1.328 GB, free: 11.25 MB / 1.029 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.001483/0.3777, allocations: 0.9386 MB / 1.329 GB, free: 10.31 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0004047/0.3782, allocations: 107.8 kB / 1.329 GB, free: 10.21 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.3782, allocations: 0 / 1.329 GB, free: 10.21 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001745/0.3783, allocations: 51.91 kB / 1.329 GB, free: 10.16 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000396/0.3787, allocations: 27.97 kB / 1.329 GB, free: 10.13 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002946/0.3817, allocations: 1.905 MB / 1.331 GB, free: 8.086 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004998/0.3822, allocations: 0.7157 MB / 1.332 GB, free: 7.344 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 8.905e-05/0.3823, allocations: 28.47 kB / 1.332 GB, free: 7.316 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.091e-05/0.3823, allocations: 39.42 kB / 1.332 GB, free: 7.277 MB / 1.029 GB Notification: Performance of SimCode: time 6.62e-07/0.3823, allocations: 0 / 1.332 GB, free: 7.277 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02851/0.4109, allocations: 3.428 MB / 1.335 GB, free: 3.945 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.593/9.004, allocations: 10.88 kB / 1.335 GB, free: 3.938 MB / 1.029 GB " [Timeout remaining time 291] (rm -f Buildings_12_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; mkfifo Buildings_12_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.IO.Files.Examples.Printer.pipe >> ../files/Buildings_12_Buildings.Utilities.IO.Files.Examples.Printer.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Utilities.IO.Files.Examples.Printer_res.mat --tempDir=temp_Buildings_12_Buildings_Utilities_IO_Files_Examples_Printer_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Utilities_IO_Files_Examples_Printer.fmu > Buildings_12_Buildings.Utilities.IO.Files.Examples.Printer.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Utilities.IO.Files.Examples.Printer_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_IO_Files_Examples_Printer.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Utilities.IO.Files.Examples.Printer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 15.694916714914143]