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.001737/0.001737, allocations: 97.88 kB / 19.73 MB, free: 2.117 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.002303/0.002303, allocations: 216.2 kB / 23.03 MB, free: 4.922 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.496/1.496, allocations: 230.6 MB / 256.8 MB, free: 7.793 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.356/3.356, allocations: 0.49 GB / 0.7959 GB, free: 35.54 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.Printer,fileNamePrefix="Buildings_12_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.002006/0.002006, allocations: 65.88 kB / 1.155 GB, free: 25.48 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3537/0.3557, allocations: 176.1 MB / 1.327 GB, free: 1.504 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.002887/0.3586, allocations: 1.602 MB / 1.328 GB, free: 15.89 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.001353/0.36, allocations: 0.7209 MB / 1.329 GB, free: 15.17 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.821e-05/0.36, allocations: 4 kB / 1.329 GB, free: 15.16 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 9.357e-05/0.3601, allocations: 19.8 kB / 1.329 GB, free: 15.14 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 5.118e-05/0.3602, allocations: 15.81 kB / 1.329 GB, free: 15.13 MB / 1.029 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.0004505/0.3606, allocations: 111.7 kB / 1.329 GB, free: 15.02 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0002131/0.3608, allocations: 139.5 kB / 1.329 GB, free: 14.88 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001301/0.361, allocations: 29.56 kB / 1.329 GB, free: 14.85 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 9.161e-05/0.3611, allocations: 59.78 kB / 1.329 GB, free: 14.79 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001042/0.3612, allocations: 67.73 kB / 1.329 GB, free: 14.73 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 2.449e-05/0.3612, allocations: 11.94 kB / 1.329 GB, free: 14.71 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001156/0.3613, allocations: 51.97 kB / 1.329 GB, free: 14.66 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 6.33e-05/0.3614, allocations: 39.84 kB / 1.329 GB, free: 14.62 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 6.837e-05/0.3614, allocations: 47.78 kB / 1.329 GB, free: 14.58 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0002643/0.3617, allocations: 179.2 kB / 1.33 GB, free: 14.4 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 5.47e-06/0.3617, allocations: 0 / 1.33 GB, free: 14.4 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.513e-06/0.3617, allocations: 0 / 1.33 GB, free: 14.4 MB / 1.029 GB Notification: Performance of Transformations before backend: time 6.803e-06/0.3617, allocations: 0 / 1.33 GB, free: 14.4 MB / 1.029 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.0008862/0.3626, allocations: 486.6 kB / 1.33 GB, free: 13.88 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.116e-05/0.3626, allocations: 8.031 kB / 1.33 GB, free: 13.87 MB / 1.029 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.232e-05/0.3626, allocations: 4.188 kB / 1.33 GB, free: 13.87 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.695e-05/0.3627, allocations: 42.73 kB / 1.33 GB, free: 13.82 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.261e-05/0.3627, allocations: 16.84 kB / 1.33 GB, free: 13.8 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002323/0.363, allocations: 158.3 kB / 1.33 GB, free: 13.62 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.335e-05/0.363, allocations: 8.359 kB / 1.33 GB, free: 13.61 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.5e-05/0.363, allocations: 8.375 kB / 1.33 GB, free: 13.61 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003246/0.3633, allocations: 131.3 kB / 1.33 GB, free: 13.46 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.33e-05/0.3634, allocations: 8 kB / 1.33 GB, free: 13.46 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.432e-05/0.3634, allocations: 0 / 1.33 GB, free: 13.46 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.292e-06/0.3634, allocations: 0 / 1.33 GB, free: 13.46 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002426/0.3636, allocations: 71.88 kB / 1.33 GB, free: 13.39 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007509/0.3644, allocations: 408 kB / 1.331 GB, free: 12.94 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002163/0.3646, allocations: 81.12 kB / 1.331 GB, free: 12.84 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001403/0.3647, allocations: 45.92 kB / 1.331 GB, free: 12.79 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.563e-05/0.3647, allocations: 7.922 kB / 1.331 GB, free: 12.79 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003425/0.3651, allocations: 148.9 kB / 1.331 GB, free: 12.62 MB / 1.029 GB Notification: Performance of pre-optimization done (n=12): time 1.332e-06/0.3651, allocations: 0 / 1.331 GB, free: 12.62 MB / 1.029 GB Notification: Performance of matching and sorting (n=12): time 0.0006287/0.3657, allocations: 197.4 kB / 1.331 GB, free: 12.42 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.839e-05/0.3658, allocations: 81.11 kB / 1.331 GB, free: 12.32 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001838/0.366, allocations: 166.8 kB / 1.332 GB, free: 12.15 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 3.363e-05/0.366, allocations: 29.7 kB / 1.332 GB, free: 12.11 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 9.238e-05/0.3661, allocations: 116.2 kB / 1.332 GB, free: 11.99 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 5.407e-05/0.3662, allocations: 31.83 kB / 1.332 GB, free: 11.96 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.805e-05/0.3662, allocations: 38.08 kB / 1.332 GB, free: 11.92 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001908/0.3664, allocations: 322.8 kB / 1.332 GB, free: 11.59 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000132/0.3665, allocations: 39.97 kB / 1.332 GB, free: 11.55 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002594/0.3668, allocations: 193.2 kB / 1.332 GB, free: 11.31 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003219/0.3671, allocations: 155.5 kB / 1.332 GB, free: 11.13 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.3671, allocations: 0 / 1.332 GB, free: 11.13 MB / 1.029 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000407/0.3675, allocations: 165.5 kB / 1.333 GB, free: 10.96 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.672e-05/0.3676, allocations: 4 kB / 1.333 GB, free: 10.96 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.006e-06/0.3676, allocations: 4 kB / 1.333 GB, free: 10.96 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.296e-05/0.3676, allocations: 4 kB / 1.333 GB, free: 10.95 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001236/0.3677, allocations: 19.91 kB / 1.333 GB, free: 10.93 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.859e-06/0.3677, allocations: 7.938 kB / 1.333 GB, free: 10.93 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001013/0.3678, allocations: 15.98 kB / 1.333 GB, free: 10.91 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.479e-05/0.3678, allocations: 8 kB / 1.333 GB, free: 10.9 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.0001492/0.368, allocations: 138.4 kB / 1.333 GB, free: 10.76 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.225e-05/0.368, allocations: 19.91 kB / 1.333 GB, free: 10.74 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.522e-05/0.3681, allocations: 17.39 kB / 1.333 GB, free: 10.71 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.504e-06/0.3681, allocations: 7.938 kB / 1.333 GB, free: 10.71 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.413e-06/0.3681, allocations: 3.938 kB / 1.333 GB, free: 10.7 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.467e-06/0.3681, allocations: 0 / 1.333 GB, free: 10.7 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007609/0.3688, allocations: 0.4928 MB / 1.333 GB, free: 10.16 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.954e-06/0.3688, allocations: 0 / 1.333 GB, free: 10.16 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.951e-05/0.3689, allocations: 23.92 kB / 1.333 GB, free: 10.14 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.475e-06/0.3689, allocations: 0 / 1.333 GB, free: 10.14 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.41e-05/0.3689, allocations: 7.984 kB / 1.333 GB, free: 10.13 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.3689, allocations: 0 / 1.333 GB, free: 10.13 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.3689, allocations: 0 / 1.333 GB, free: 10.13 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005578/0.3695, allocations: 322.6 kB / 1.334 GB, free: 9.797 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 2.263e-05/0.3695, allocations: 15.84 kB / 1.334 GB, free: 9.781 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.561e-05/0.3695, allocations: 4 kB / 1.334 GB, free: 9.777 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001775/0.3697, allocations: 19.97 kB / 1.334 GB, free: 9.758 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.86e-05/0.3698, allocations: 11.98 kB / 1.334 GB, free: 9.746 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.608e-05/0.3698, allocations: 8 kB / 1.334 GB, free: 9.738 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001136/0.3699, allocations: 123.2 kB / 1.334 GB, free: 9.617 MB / 1.029 GB Notification: Performance of sort global known variables: time 8e-08/0.3699, allocations: 3.938 kB / 1.334 GB, free: 9.613 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003643/0.3703, allocations: 35.94 kB / 1.334 GB, free: 9.578 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.001234/0.3715, allocations: 0.9464 MB / 1.335 GB, free: 8.645 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0003843/0.3719, allocations: 107.8 kB / 1.335 GB, free: 8.539 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.3719, allocations: 0 / 1.335 GB, free: 8.539 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.000153/0.3721, allocations: 55.89 kB / 1.335 GB, free: 8.484 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003751/0.3724, allocations: 20.48 kB / 1.335 GB, free: 8.465 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002572/0.375, allocations: 1.904 MB / 1.337 GB, free: 6.422 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001161/0.3751, allocations: 106.2 kB / 1.337 GB, free: 6.297 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 7.67e-05/0.3752, allocations: 24.5 kB / 1.337 GB, free: 6.273 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.962e-05/0.3753, allocations: 39.42 kB / 1.337 GB, free: 6.234 MB / 1.029 GB Notification: Performance of SimCode: time 3.71e-07/0.3753, allocations: 0 / 1.337 GB, free: 6.234 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02483/0.4001, allocations: 3.715 MB / 1.341 GB, free: 2.723 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.89/12.29, allocations: 7.688 kB / 1.341 GB, free: 2.719 MB / 1.029 GB " [Timeout remaining time 288] (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] [Calling os._exit(0), Time elapsed: 19.38621485501062] Failed to read output from testmodel.py, exit status != 0: 12.457474850933068 12.474415884 12.109597246 Calling exit ...