Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.001316/0.001316, allocations: 117.1 kB / 17.16 MB, free: 5.895 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.001363/0.001363, allocations: 215 kB / 20.13 MB, free: 2.949 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.531/1.531, allocations: 230.6 MB / 253.5 MB, free: 15.11 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.793/2.793, allocations: 476.7 MB / 0.7678 GB, free: 9.438 MB / 0.6075 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.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_11_Buildings_Utilities_IO_Files_Examples_Printer",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.Printer,fileNamePrefix="Buildings_11_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.00342/0.00342, allocations: 67.91 kB / 1.113 GB, free: 15.9 MB / 0.8575 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.067/1.071, allocations: 169.9 MB / 1.279 GB, free: 11.75 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.003647/1.075, allocations: 1.609 MB / 1.28 GB, free: 10.62 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001629/1.076, allocations: 0.7646 MB / 1.281 GB, free: 10.11 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.653e-05/1.076, allocations: 1.094 kB / 1.281 GB, free: 10.11 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001193/1.076, allocations: 19.19 kB / 1.281 GB, free: 10.09 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 5.522e-05/1.076, allocations: 16.72 kB / 1.281 GB, free: 10.08 MB / 0.9981 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.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.0005093/1.077, allocations: 113 kB / 1.281 GB, free: 10.02 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0002299/1.077, allocations: 143.6 kB / 1.282 GB, free: 9.957 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001403/1.077, allocations: 23.28 kB / 1.282 GB, free: 9.945 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001105/1.077, allocations: 59.23 kB / 1.282 GB, free: 9.918 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001773/1.078, allocations: 65.8 kB / 1.282 GB, free: 9.887 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 3.292e-05/1.078, allocations: 10.41 kB / 1.282 GB, free: 9.887 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001576/1.078, allocations: 58.17 kB / 1.282 GB, free: 9.867 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 6.616e-05/1.078, allocations: 25.55 kB / 1.282 GB, free: 9.855 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001003/1.078, allocations: 62.17 kB / 1.282 GB, free: 9.816 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.000351/1.078, allocations: 179.9 kB / 1.282 GB, free: 9.738 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/1.078, allocations: 0.5 kB / 1.282 GB, free: 9.738 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.573e-06/1.078, allocations: 0.5938 kB / 1.282 GB, free: 9.738 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 1.047e-05/1.078, allocations: 0 / 1.282 GB, free: 9.738 MB / 0.9981 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.001061/1.079, allocations: 0.5462 MB / 1.283 GB, free: 9.223 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.122e-05/1.079, allocations: 9.328 kB / 1.283 GB, free: 9.223 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.461e-05/1.079, allocations: 7.125 kB / 1.283 GB, free: 9.219 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.705e-05/1.079, allocations: 37.88 kB / 1.283 GB, free: 9.176 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.715e-05/1.08, allocations: 21.95 kB / 1.283 GB, free: 9.164 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002429/1.08, allocations: 214.3 kB / 1.283 GB, free: 8.945 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2e-05/1.08, allocations: 9.453 kB / 1.283 GB, free: 8.941 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.351e-05/1.08, allocations: 10.72 kB / 1.283 GB, free: 8.938 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003489/1.08, allocations: 137.1 kB / 1.283 GB, free: 8.859 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.006e-05/1.08, allocations: 1.125 kB / 1.283 GB, free: 8.859 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.742e-05/1.08, allocations: 2.125 kB / 1.283 GB, free: 8.859 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.982e-06/1.08, allocations: 1.25 kB / 1.283 GB, free: 8.859 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002632/1.08, allocations: 69.7 kB / 1.283 GB, free: 8.844 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007163/1.081, allocations: 464 kB / 1.283 GB, free: 8.445 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002169/1.081, allocations: 83.45 kB / 1.284 GB, free: 8.383 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001457/1.082, allocations: 48.94 kB / 1.284 GB, free: 8.355 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.753e-05/1.082, allocations: 3.234 kB / 1.284 GB, free: 8.355 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003372/1.082, allocations: 157.4 kB / 1.284 GB, free: 8.254 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=12): time 1.743e-06/1.082, allocations: 1.062 kB / 1.284 GB, free: 8.254 MB / 0.9981 GB Notification: Performance of matching and sorting (n=12): time 0.0006283/1.083, allocations: 186.6 kB / 1.284 GB, free: 8.184 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.674e-05/1.083, allocations: 81.23 kB / 1.284 GB, free: 8.09 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001609/1.083, allocations: 171.8 kB / 1.284 GB, free: 7.961 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 3.115e-05/1.083, allocations: 32.7 kB / 1.284 GB, free: 7.926 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 8.117e-05/1.083, allocations: 108.4 kB / 1.284 GB, free: 7.824 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 4.312e-05/1.083, allocations: 30.59 kB / 1.284 GB, free: 7.801 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.044e-05/1.083, allocations: 39.05 kB / 1.284 GB, free: 7.773 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001471/1.083, allocations: 322.1 kB / 1.285 GB, free: 7.457 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000141/1.083, allocations: 37.75 kB / 1.285 GB, free: 7.449 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002192/1.084, allocations: 122.9 kB / 1.285 GB, free: 7.336 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003317/1.084, allocations: 148.1 kB / 1.285 GB, free: 7.23 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.366e-06/1.084, allocations: 1.188 kB / 1.285 GB, free: 7.23 MB / 0.9981 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000393/1.084, allocations: 165.9 kB / 1.285 GB, free: 7.156 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.613e-05/1.084, allocations: 6.5 kB / 1.285 GB, free: 7.156 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.085e-06/1.084, allocations: 6.75 kB / 1.285 GB, free: 7.152 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.878e-05/1.084, allocations: 2.781 kB / 1.285 GB, free: 7.152 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001152/1.084, allocations: 15.02 kB / 1.285 GB, free: 7.152 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.253e-05/1.084, allocations: 11.06 kB / 1.285 GB, free: 7.145 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001035/1.085, allocations: 16.75 kB / 1.285 GB, free: 7.141 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.319e-05/1.085, allocations: 5.156 kB / 1.285 GB, free: 7.141 MB / 0.9981 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.0001374/1.085, allocations: 136.7 kB / 1.285 GB, free: 7.012 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.395e-05/1.085, allocations: 16.34 kB / 1.285 GB, free: 7.004 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.443e-05/1.085, allocations: 29.02 kB / 1.285 GB, free: 6.977 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.885e-06/1.085, allocations: 1.469 kB / 1.285 GB, free: 6.977 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.688e-06/1.085, allocations: 9.312 kB / 1.285 GB, free: 6.969 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.738e-06/1.085, allocations: 4.734 kB / 1.285 GB, free: 6.965 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000807/1.086, allocations: 0.5292 MB / 1.286 GB, free: 6.535 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.845e-06/1.086, allocations: 0.6562 kB / 1.286 GB, free: 6.535 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.432e-05/1.086, allocations: 25.16 kB / 1.286 GB, free: 6.523 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.614e-06/1.086, allocations: 1.031 kB / 1.286 GB, free: 6.523 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.504e-05/1.086, allocations: 10.14 kB / 1.286 GB, free: 6.516 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/1.086, allocations: 1.031 kB / 1.286 GB, free: 6.516 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/1.086, allocations: 1.812 kB / 1.286 GB, free: 6.516 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004553/1.086, allocations: 319.5 kB / 1.286 GB, free: 6.277 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.673e-05/1.086, allocations: 89.62 kB / 1.286 GB, free: 6.176 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.242e-05/1.086, allocations: 1.734 kB / 1.286 GB, free: 6.176 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000181/1.086, allocations: 15.64 kB / 1.286 GB, free: 6.176 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.791e-05/1.086, allocations: 15.69 kB / 1.286 GB, free: 6.168 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.508e-05/1.086, allocations: 8.812 kB / 1.286 GB, free: 6.168 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 9.755e-05/1.087, allocations: 118.8 kB / 1.286 GB, free: 6.082 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1e-07/1.087, allocations: 4 kB / 1.286 GB, free: 6.078 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0003595/1.087, allocations: 42.88 kB / 1.287 GB, free: 6.066 MB / 0.9981 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.001141/1.088, allocations: 0.9387 MB / 1.287 GB, free: 5.266 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0003897/1.088, allocations: 103.6 kB / 1.288 GB, free: 5.242 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/1.088, allocations: 1.156 kB / 1.288 GB, free: 5.242 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001798/1.089, allocations: 51.73 kB / 1.288 GB, free: 5.23 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003814/1.089, allocations: 29.03 kB / 1.288 GB, free: 5.215 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002572/1.092, allocations: 1.917 MB / 1.289 GB, free: 3.621 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003637/1.092, allocations: 0.7151 MB / 1.29 GB, free: 2.922 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 8.395e-05/1.092, allocations: 23.78 kB / 1.29 GB, free: 2.918 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.231e-05/1.092, allocations: 38.98 kB / 1.29 GB, free: 2.891 MB / 0.9981 GB Notification: Performance of SimCode: time 3.11e-07/1.092, allocations: 0 / 1.29 GB, free: 2.891 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02035/1.112, allocations: 3.463 MB / 1.294 GB, free: 2.281 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.553/9.665, allocations: 12.41 kB / 1.294 GB, free: 2.273 MB / 0.9981 GB " [Timeout remaining time 290] (rm -f Buildings_11_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; mkfifo Buildings_11_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.IO.Files.Examples.Printer.pipe >> ../files/Buildings_11_Buildings.Utilities.IO.Files.Examples.Printer.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Utilities.IO.Files.Examples.Printer_res.mat --tempDir=temp_Buildings_11_Buildings_Utilities_IO_Files_Examples_Printer_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Utilities_IO_Files_Examples_Printer.fmu > Buildings_11_Buildings.Utilities.IO.Files.Examples.Printer.pipe 2>&1) [Timeout 420.0] [Calling os._exit(0), Time elapsed: 15.898087515030056] Failed to read output from testmodel.py, exit status != 0: 9.796984260028694 9.820832717 8.737663995 Calling exit ...