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.002139/0.002139, allocations: 97.31 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.00249/0.00249, allocations: 219.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.444/1.444, allocations: 230.6 MB / 256.8 MB, free: 7.801 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.752/2.752, allocations: 476.8 MB / 0.7715 GB, free: 3.879 MB / 0.6231 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.001996/0.001996, allocations: 64.38 kB / 1.118 GB, free: 39.67 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3636/0.3656, allocations: 170 MB / 1.284 GB, free: 10.62 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.003461/0.3691, allocations: 1.59 MB / 1.286 GB, free: 9.023 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001688/0.3707, allocations: 0.7226 MB / 1.286 GB, free: 8.297 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.485e-05/0.3708, allocations: 0 / 1.286 GB, free: 8.297 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0001271/0.371, allocations: 11.81 kB / 1.286 GB, free: 8.285 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 7.97e-05/0.371, allocations: 23.78 kB / 1.286 GB, free: 8.262 MB / 0.9825 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.0005796/0.3716, allocations: 111.7 kB / 1.286 GB, free: 8.152 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0002621/0.3719, allocations: 135.6 kB / 1.287 GB, free: 8.02 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001556/0.372, allocations: 25.28 kB / 1.287 GB, free: 7.996 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001356/0.3722, allocations: 59.72 kB / 1.287 GB, free: 7.938 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001205/0.3723, allocations: 71.73 kB / 1.287 GB, free: 7.867 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 3.45e-05/0.3723, allocations: 12 kB / 1.287 GB, free: 7.855 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001526/0.3725, allocations: 47.98 kB / 1.287 GB, free: 7.809 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 7.043e-05/0.3725, allocations: 31.89 kB / 1.287 GB, free: 7.777 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 8.958e-05/0.3726, allocations: 51.72 kB / 1.287 GB, free: 7.727 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0003082/0.3729, allocations: 178.8 kB / 1.287 GB, free: 7.555 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.389e-06/0.3729, allocations: 0 / 1.287 GB, free: 7.555 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.222e-06/0.3729, allocations: 0 / 1.287 GB, free: 7.555 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 1.108e-05/0.373, allocations: 0 / 1.287 GB, free: 7.555 MB / 0.9825 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.0009816/0.3739, allocations: 490.6 kB / 1.288 GB, free: 7.027 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.249e-05/0.374, allocations: 12.03 kB / 1.288 GB, free: 7.016 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.404e-05/0.374, allocations: 192 / 1.288 GB, free: 7.016 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.555e-05/0.374, allocations: 42.69 kB / 1.288 GB, free: 6.965 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.888e-05/0.3741, allocations: 16.84 kB / 1.288 GB, free: 6.949 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002387/0.3743, allocations: 155.6 kB / 1.288 GB, free: 6.773 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.738e-05/0.3744, allocations: 16.3 kB / 1.288 GB, free: 6.758 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.438e-05/0.3744, allocations: 8.375 kB / 1.288 GB, free: 6.75 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003595/0.3747, allocations: 141.4 kB / 1.288 GB, free: 6.602 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.448e-06/0.3748, allocations: 0 / 1.288 GB, free: 6.602 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.057e-05/0.3748, allocations: 4 kB / 1.288 GB, free: 6.598 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.179e-06/0.3748, allocations: 0 / 1.288 GB, free: 6.598 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002621/0.375, allocations: 67.94 kB / 1.288 GB, free: 6.531 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007685/0.3758, allocations: 411.9 kB / 1.288 GB, free: 6.082 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002324/0.376, allocations: 81.12 kB / 1.288 GB, free: 5.984 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001426/0.3762, allocations: 49.81 kB / 1.288 GB, free: 5.93 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.974e-05/0.3762, allocations: 4 kB / 1.288 GB, free: 5.926 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004246/0.3766, allocations: 157 kB / 1.289 GB, free: 5.754 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=12): time 1.513e-06/0.3766, allocations: 0 / 1.289 GB, free: 5.754 MB / 0.9825 GB Notification: Performance of matching and sorting (n=12): time 0.0006321/0.3773, allocations: 185.4 kB / 1.289 GB, free: 5.566 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.639e-05/0.3773, allocations: 81.11 kB / 1.289 GB, free: 5.469 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001825/0.3775, allocations: 170.7 kB / 1.289 GB, free: 5.293 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 3.851e-05/0.3776, allocations: 33.7 kB / 1.289 GB, free: 5.254 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 9.904e-05/0.3777, allocations: 108.3 kB / 1.289 GB, free: 5.141 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 4.332e-05/0.3777, allocations: 31.8 kB / 1.289 GB, free: 5.109 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.806e-05/0.3778, allocations: 37.7 kB / 1.289 GB, free: 5.066 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001734/0.378, allocations: 330.8 kB / 1.29 GB, free: 4.734 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001468/0.3781, allocations: 39.91 kB / 1.29 GB, free: 4.695 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002751/0.3784, allocations: 191.4 kB / 1.29 GB, free: 4.453 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003224/0.3787, allocations: 147.5 kB / 1.29 GB, free: 4.281 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.026e-06/0.3787, allocations: 0 / 1.29 GB, free: 4.281 MB / 0.9825 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004055/0.3791, allocations: 169.3 kB / 1.29 GB, free: 4.109 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.999e-05/0.3791, allocations: 6.188 kB / 1.29 GB, free: 4.105 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.017e-05/0.3791, allocations: 4.375 kB / 1.29 GB, free: 4.102 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.313e-05/0.3792, allocations: 4 kB / 1.29 GB, free: 4.098 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001139/0.3793, allocations: 15.92 kB / 1.29 GB, free: 4.082 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.373e-05/0.3793, allocations: 7.938 kB / 1.29 GB, free: 4.074 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001141/0.3794, allocations: 28.2 kB / 1.29 GB, free: 4.047 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.979e-05/0.3794, allocations: 8 kB / 1.29 GB, free: 4.039 MB / 0.9825 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.0001634/0.3796, allocations: 135.6 kB / 1.29 GB, free: 3.898 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.244e-05/0.3796, allocations: 15.84 kB / 1.29 GB, free: 3.883 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.126e-05/0.3797, allocations: 25.39 kB / 1.29 GB, free: 3.852 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.246e-06/0.3797, allocations: 0 / 1.29 GB, free: 3.852 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.116e-06/0.3797, allocations: 3.938 kB / 1.29 GB, free: 3.848 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.788e-06/0.3797, allocations: 0 / 1.29 GB, free: 3.848 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008069/0.3805, allocations: 0.4931 MB / 1.291 GB, free: 3.305 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.254e-06/0.3805, allocations: 0 / 1.291 GB, free: 3.305 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.102e-05/0.3806, allocations: 23.86 kB / 1.291 GB, free: 3.281 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.809e-06/0.3806, allocations: 4 kB / 1.291 GB, free: 3.277 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.073e-05/0.3806, allocations: 0 / 1.291 GB, free: 3.277 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.134e-06/0.3806, allocations: 3.938 kB / 1.291 GB, free: 3.273 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.3806, allocations: 0 / 1.291 GB, free: 3.273 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004581/0.3811, allocations: 326.7 kB / 1.291 GB, free: 2.938 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 2.124e-05/0.3811, allocations: 11.89 kB / 1.291 GB, free: 2.926 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.241e-05/0.3811, allocations: 0 / 1.291 GB, free: 2.926 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000187/0.3813, allocations: 27.91 kB / 1.291 GB, free: 2.898 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.132e-05/0.3813, allocations: 7.984 kB / 1.291 GB, free: 2.891 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.33e-05/0.3814, allocations: 4 kB / 1.291 GB, free: 2.887 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0001002/0.3815, allocations: 119.2 kB / 1.291 GB, free: 2.77 MB / 0.9825 GB Notification: Performance of sort global known variables: time 9.1e-08/0.3815, allocations: 0 / 1.291 GB, free: 2.77 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003625/0.3818, allocations: 47.88 kB / 1.291 GB, free: 2.723 MB / 0.9825 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.001332/0.3832, allocations: 0.9537 MB / 1.292 GB, free: 1.781 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0003891/0.3836, allocations: 103.8 kB / 1.292 GB, free: 1.68 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 5.019e-06/0.3836, allocations: 4 kB / 1.292 GB, free: 1.676 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001674/0.3837, allocations: 48.47 kB / 1.292 GB, free: 1.629 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004203/0.3842, allocations: 23.98 kB / 1.292 GB, free: 1.605 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002665/0.3868, allocations: 1.912 MB / 1.294 GB, free: 15.55 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001266/0.3869, allocations: 106.1 kB / 1.294 GB, free: 15.43 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 8.653e-05/0.387, allocations: 24.47 kB / 1.294 GB, free: 15.4 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.069e-05/0.3871, allocations: 39.36 kB / 1.295 GB, free: 15.36 MB / 0.9981 GB Notification: Performance of SimCode: time 5.61e-07/0.3871, allocations: 3.938 kB / 1.295 GB, free: 15.36 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03554/0.4226, allocations: 3.706 MB / 1.298 GB, free: 11.84 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.01/12.43, allocations: 4.062 kB / 1.298 GB, free: 11.84 MB / 0.9981 GB " [Timeout remaining time 287] (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: 19.129580158973113] Failed to read output from testmodel.py, exit status != 0: 13.158155986107886 12.6323036 12.254702643 Calling exit ...