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.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.00135/0.00135, allocations: 118.8 kB / 17.16 MB, free: 5.914 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.001788/0.001788, allocations: 206.2 kB / 20.13 MB, free: 2.969 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.56/1.56, allocations: 230.6 MB / 253.5 MB, free: 15.1 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.012/3.012, allocations: 0.5003 GB / 0.8026 GB, free: 6.738 MB / 0.6387 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_latest_Buildings_Utilities_IO_Files_Examples_Printer",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.Printer,fileNamePrefix="Buildings_latest_Buildings_Utilities_IO_Files_Examples_Printer",fmuType="cs",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.002084/0.002084, allocations: 68.14 kB / 1.165 GB, free: 0.5312 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9521/0.9542, allocations: 179 MB / 1.34 GB, free: 16.14 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.002874/0.957, allocations: 1.616 MB / 1.342 GB, free: 15.01 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001304/0.9583, allocations: 0.7517 MB / 1.342 GB, free: 14.51 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.588e-05/0.9584, allocations: 5.062 kB / 1.342 GB, free: 14.5 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.0001182/0.9585, allocations: 11.25 kB / 1.342 GB, free: 14.5 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 5.042e-05/0.9586, allocations: 24.08 kB / 1.342 GB, free: 14.48 MB / 1.061 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 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.0004728/0.959, allocations: 109.1 kB / 1.343 GB, free: 14.42 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0002262/0.9593, allocations: 144.2 kB / 1.343 GB, free: 14.36 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001521/0.9594, allocations: 24.45 kB / 1.343 GB, free: 14.34 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001055/0.9595, allocations: 57.81 kB / 1.343 GB, free: 14.32 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001138/0.9596, allocations: 62.92 kB / 1.343 GB, free: 14.29 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 2.923e-05/0.9597, allocations: 10.38 kB / 1.343 GB, free: 14.29 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001319/0.9598, allocations: 65.19 kB / 1.343 GB, free: 14.26 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 6.251e-05/0.9599, allocations: 26.08 kB / 1.343 GB, free: 14.25 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 7.537e-05/0.9599, allocations: 64.89 kB / 1.343 GB, free: 14.21 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0002906/0.9602, allocations: 169 kB / 1.343 GB, free: 14.14 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.9602, allocations: 1.125 kB / 1.343 GB, free: 14.14 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.573e-06/0.9602, allocations: 0 / 1.343 GB, free: 14.14 MB / 1.061 GB Notification: Performance of Transformations before backend: time 7.083e-06/0.9602, allocations: 0 / 1.343 GB, free: 14.14 MB / 1.061 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.0008639/0.9611, allocations: 0.5501 MB / 1.344 GB, free: 13.62 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.372e-05/0.9612, allocations: 9.469 kB / 1.344 GB, free: 13.62 MB / 1.061 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.048e-05/0.9612, allocations: 5.406 kB / 1.344 GB, free: 13.62 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.23e-05/0.9612, allocations: 43.55 kB / 1.344 GB, free: 13.57 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.027e-05/0.9613, allocations: 17.98 kB / 1.344 GB, free: 13.56 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000185/0.9614, allocations: 225.7 kB / 1.344 GB, free: 13.33 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.833e-05/0.9615, allocations: 4.438 kB / 1.344 GB, free: 13.33 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.953e-05/0.9615, allocations: 10.44 kB / 1.344 GB, free: 13.33 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003143/0.9618, allocations: 128.9 kB / 1.344 GB, free: 13.26 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.061e-05/0.9618, allocations: 1.562 kB / 1.344 GB, free: 13.26 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.609e-05/0.9618, allocations: 0.8438 kB / 1.344 GB, free: 13.26 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.829e-06/0.9618, allocations: 5.781 kB / 1.344 GB, free: 13.25 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002573/0.9621, allocations: 69.55 kB / 1.344 GB, free: 13.24 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006012/0.9627, allocations: 465.3 kB / 1.345 GB, free: 12.84 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001976/0.9629, allocations: 78.41 kB / 1.345 GB, free: 12.78 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001398/0.963, allocations: 49.94 kB / 1.345 GB, free: 12.75 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 2.845e-05/0.963, allocations: 5.906 kB / 1.345 GB, free: 12.75 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003366/0.9634, allocations: 150.9 kB / 1.345 GB, free: 12.66 MB / 1.061 GB Notification: Performance of pre-optimization done (n=12): time 1.243e-06/0.9634, allocations: 0 / 1.345 GB, free: 12.66 MB / 1.061 GB Notification: Performance of matching and sorting (n=12): time 0.0005925/0.964, allocations: 191.2 kB / 1.345 GB, free: 12.58 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.103e-05/0.964, allocations: 85.11 kB / 1.345 GB, free: 12.48 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001206/0.9641, allocations: 163.6 kB / 1.345 GB, free: 12.36 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 2.049e-05/0.9642, allocations: 28.97 kB / 1.345 GB, free: 12.33 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 4.855e-05/0.9642, allocations: 112.8 kB / 1.345 GB, free: 12.23 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 3.049e-05/0.9642, allocations: 25.84 kB / 1.345 GB, free: 12.21 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.863e-05/0.9643, allocations: 38.22 kB / 1.346 GB, free: 12.18 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 7.049e-05/0.9644, allocations: 323.8 kB / 1.346 GB, free: 11.86 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001385/0.9645, allocations: 41.95 kB / 1.346 GB, free: 11.85 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001747/0.9647, allocations: 113.6 kB / 1.346 GB, free: 11.75 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002811/0.965, allocations: 148.1 kB / 1.346 GB, free: 11.64 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.965, allocations: 3.938 kB / 1.346 GB, free: 11.64 MB / 1.061 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003605/0.9653, allocations: 170.5 kB / 1.346 GB, free: 11.56 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.584e-05/0.9653, allocations: 6.875 kB / 1.346 GB, free: 11.56 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.101e-06/0.9653, allocations: 1.375 kB / 1.346 GB, free: 11.56 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.869e-05/0.9654, allocations: 4.922 kB / 1.346 GB, free: 11.56 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001138/0.9655, allocations: 18.02 kB / 1.346 GB, free: 11.55 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.285e-06/0.9655, allocations: 8.578 kB / 1.346 GB, free: 11.55 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.832e-05/0.9656, allocations: 19.3 kB / 1.346 GB, free: 11.54 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.281e-05/0.9656, allocations: 6.297 kB / 1.346 GB, free: 11.54 MB / 1.061 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 9.034e-05/0.9657, allocations: 139.3 kB / 1.346 GB, free: 11.41 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.722e-05/0.9657, allocations: 11.86 kB / 1.347 GB, free: 11.41 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.223e-05/0.9658, allocations: 19.88 kB / 1.347 GB, free: 11.39 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.957e-06/0.9658, allocations: 3.484 kB / 1.347 GB, free: 11.39 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.811e-06/0.9658, allocations: 3.938 kB / 1.347 GB, free: 11.39 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.919e-06/0.9658, allocations: 6.203 kB / 1.347 GB, free: 11.39 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006489/0.9664, allocations: 0.536 MB / 1.347 GB, free: 10.95 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.824e-06/0.9664, allocations: 0 / 1.347 GB, free: 10.95 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.989e-05/0.9665, allocations: 22.05 kB / 1.347 GB, free: 10.94 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.596e-06/0.9665, allocations: 1.891 kB / 1.347 GB, free: 10.94 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.446e-05/0.9665, allocations: 1.938 kB / 1.347 GB, free: 10.94 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.228e-06/0.9665, allocations: 5.922 kB / 1.347 GB, free: 10.94 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.173e-06/0.9665, allocations: 0 / 1.347 GB, free: 10.94 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003955/0.9669, allocations: 323.1 kB / 1.347 GB, free: 10.7 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 2.976e-05/0.967, allocations: 94.09 kB / 1.347 GB, free: 10.59 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.188e-05/0.967, allocations: 1.938 kB / 1.347 GB, free: 10.59 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001826/0.9672, allocations: 20.38 kB / 1.348 GB, free: 10.59 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.73e-05/0.9672, allocations: 7.391 kB / 1.348 GB, free: 10.59 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.379e-05/0.9672, allocations: 11.78 kB / 1.348 GB, free: 10.58 MB / 1.061 GB Notification: Performance of sorting global known variables: time 7.378e-05/0.9673, allocations: 123.2 kB / 1.348 GB, free: 10.49 MB / 1.061 GB Notification: Performance of sort global known variables: time 9e-08/0.9673, allocations: 1.156 kB / 1.348 GB, free: 10.49 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0003484/0.9677, allocations: 38.91 kB / 1.348 GB, free: 10.48 MB / 1.061 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.0009115/0.9686, allocations: 0.949 MB / 1.349 GB, free: 9.672 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0003763/0.9689, allocations: 107.5 kB / 1.349 GB, free: 9.645 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.969, allocations: 1.5 kB / 1.349 GB, free: 9.645 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0001651/0.9691, allocations: 56.42 kB / 1.349 GB, free: 9.629 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003633/0.9695, allocations: 21.34 kB / 1.349 GB, free: 9.621 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002042/0.9715, allocations: 1.911 MB / 1.351 GB, free: 8.035 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001697/0.9717, allocations: 0.7158 MB / 1.351 GB, free: 7.336 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 7.546e-05/0.9718, allocations: 20.02 kB / 1.351 GB, free: 7.336 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.295e-05/0.9718, allocations: 38.45 kB / 1.351 GB, free: 7.309 MB / 1.061 GB Notification: Performance of SimCode: time 2.91e-07/0.9718, allocations: 1.25 kB / 1.351 GB, free: 7.309 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02126/0.9931, allocations: 3.468 MB / 1.355 GB, free: 6.699 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.83/9.823, allocations: 13.8 kB / 1.355 GB, free: 6.691 MB / 1.061 GB " [Timeout remaining time 290] (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 --stepSize=0.0004 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_IO_Files_Examples_Printer.fmu > Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer.pipe 2>&1) [Timeout 840.0] [Calling os._exit(0), Time elapsed: 16.427281954034697] Failed to read output from testmodel.py, exit status != 0: 9.950716355000623 9.969388174 9.005698921 Calling exit ...