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.001288/0.001288, allocations: 101.5 kB / 19.73 MB, free: 2.23 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.001658/0.001658, allocations: 214.5 kB / 23.04 MB, free: 5.074 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.512/1.512, allocations: 230.6 MB / 256.8 MB, free: 8 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.374/3.374, allocations: 0.5003 GB / 0.8061 GB, free: 26.75 MB / 0.6231 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.002199/0.002199, allocations: 66.89 kB / 1.171 GB, free: 19.82 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3443/0.3465, allocations: 179 MB / 1.345 GB, free: 464 kB / 1.029 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.002831/0.3493, allocations: 1.617 MB / 1.347 GB, free: 14.82 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.001415/0.3507, allocations: 0.7714 MB / 1.348 GB, free: 14.05 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.811e-05/0.3508, allocations: 8 kB / 1.348 GB, free: 14.04 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.0001051/0.3509, allocations: 15.86 kB / 1.348 GB, free: 14.02 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 5.228e-05/0.3509, allocations: 15.75 kB / 1.348 GB, free: 14.01 MB / 1.045 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.0004669/0.3514, allocations: 107.7 kB / 1.348 GB, free: 13.9 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0002183/0.3516, allocations: 139.5 kB / 1.348 GB, free: 13.77 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001256/0.3517, allocations: 25.36 kB / 1.348 GB, free: 13.74 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 9.779e-05/0.3518, allocations: 55.84 kB / 1.348 GB, free: 13.69 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000106/0.352, allocations: 75.61 kB / 1.348 GB, free: 13.61 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 2.267e-05/0.352, allocations: 8 kB / 1.348 GB, free: 13.61 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00013/0.3521, allocations: 59.95 kB / 1.348 GB, free: 13.55 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 5.896e-05/0.3522, allocations: 35.84 kB / 1.348 GB, free: 13.51 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 7.984e-05/0.3522, allocations: 59.66 kB / 1.348 GB, free: 13.45 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0002558/0.3525, allocations: 167.3 kB / 1.348 GB, free: 13.29 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.3525, allocations: 0 / 1.348 GB, free: 13.29 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.523e-06/0.3525, allocations: 0 / 1.348 GB, free: 13.29 MB / 1.045 GB Notification: Performance of Transformations before backend: time 5.09e-06/0.3525, allocations: 0 / 1.348 GB, free: 13.29 MB / 1.045 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.0008843/0.3534, allocations: 490.6 kB / 1.349 GB, free: 12.76 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.147e-05/0.3534, allocations: 11.97 kB / 1.349 GB, free: 12.75 MB / 1.045 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.941e-05/0.3535, allocations: 4.172 kB / 1.349 GB, free: 12.75 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.291e-05/0.3535, allocations: 46.67 kB / 1.349 GB, free: 12.69 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.011e-05/0.3535, allocations: 16.84 kB / 1.349 GB, free: 12.68 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002076/0.3538, allocations: 158.3 kB / 1.349 GB, free: 12.5 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.523e-05/0.3538, allocations: 8.375 kB / 1.349 GB, free: 12.49 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.38e-05/0.3538, allocations: 20.36 kB / 1.349 GB, free: 12.47 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003329/0.3541, allocations: 137.3 kB / 1.349 GB, free: 12.32 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.016e-05/0.3541, allocations: 3.938 kB / 1.349 GB, free: 12.32 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.602e-05/0.3542, allocations: 3.984 kB / 1.349 GB, free: 12.32 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.909e-06/0.3542, allocations: 0 / 1.349 GB, free: 12.32 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002524/0.3544, allocations: 67.94 kB / 1.349 GB, free: 12.25 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006568/0.3551, allocations: 431.8 kB / 1.35 GB, free: 11.78 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002092/0.3553, allocations: 77.19 kB / 1.35 GB, free: 11.69 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001426/0.3554, allocations: 45.81 kB / 1.35 GB, free: 11.64 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 2.784e-05/0.3554, allocations: 11.91 kB / 1.35 GB, free: 11.62 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000315/0.3558, allocations: 145.1 kB / 1.35 GB, free: 11.46 MB / 1.045 GB Notification: Performance of pre-optimization done (n=12): time 1.153e-06/0.3558, allocations: 0 / 1.35 GB, free: 11.46 MB / 1.045 GB Notification: Performance of matching and sorting (n=12): time 0.0005983/0.3564, allocations: 193.4 kB / 1.35 GB, free: 11.27 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.084e-05/0.3564, allocations: 81.11 kB / 1.35 GB, free: 11.17 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001562/0.3566, allocations: 166.2 kB / 1.35 GB, free: 11 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 2.939e-05/0.3566, allocations: 33.7 kB / 1.35 GB, free: 10.96 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 7.756e-05/0.3567, allocations: 112.3 kB / 1.351 GB, free: 10.84 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 3.602e-05/0.3567, allocations: 27.84 kB / 1.351 GB, free: 10.81 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.563e-05/0.3568, allocations: 37.7 kB / 1.351 GB, free: 10.77 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001401/0.3569, allocations: 322.8 kB / 1.351 GB, free: 10.45 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001368/0.3571, allocations: 36.34 kB / 1.351 GB, free: 10.41 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002071/0.3573, allocations: 118.3 kB / 1.351 GB, free: 10.26 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000319/0.3576, allocations: 143.5 kB / 1.351 GB, free: 10.09 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.3576, allocations: 4 kB / 1.351 GB, free: 10.09 MB / 1.045 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003888/0.358, allocations: 169.3 kB / 1.351 GB, free: 9.914 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.622e-05/0.358, allocations: 8 kB / 1.351 GB, free: 9.906 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.478e-06/0.358, allocations: 4.219 kB / 1.351 GB, free: 9.902 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.515e-05/0.358, allocations: 8 kB / 1.351 GB, free: 9.895 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001107/0.3581, allocations: 19.97 kB / 1.351 GB, free: 9.875 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.538e-06/0.3581, allocations: 3.938 kB / 1.351 GB, free: 9.871 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00011/0.3583, allocations: 19.94 kB / 1.351 GB, free: 9.852 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.357e-05/0.3583, allocations: 8 kB / 1.351 GB, free: 9.844 MB / 1.045 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.0001236/0.3584, allocations: 133.7 kB / 1.352 GB, free: 9.703 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.628e-05/0.3584, allocations: 7.953 kB / 1.352 GB, free: 9.695 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.909e-05/0.3585, allocations: 29.39 kB / 1.352 GB, free: 9.664 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.584e-06/0.3585, allocations: 0 / 1.352 GB, free: 9.664 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.232e-06/0.3585, allocations: 3.938 kB / 1.352 GB, free: 9.66 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.877e-06/0.3585, allocations: 0 / 1.352 GB, free: 9.66 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007629/0.3592, allocations: 0.5008 MB / 1.352 GB, free: 9.109 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.784e-06/0.3592, allocations: 4.047 kB / 1.352 GB, free: 9.105 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.535e-05/0.3593, allocations: 19.91 kB / 1.352 GB, free: 9.086 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.925e-06/0.3593, allocations: 7.938 kB / 1.352 GB, free: 9.078 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.675e-05/0.3594, allocations: 8 kB / 1.352 GB, free: 9.07 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.502e-06/0.3594, allocations: 0 / 1.352 GB, free: 9.07 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.3594, allocations: 0 / 1.352 GB, free: 9.07 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004514/0.3598, allocations: 326.6 kB / 1.352 GB, free: 8.734 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 2.239e-05/0.3598, allocations: 15.84 kB / 1.352 GB, free: 8.719 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.291e-05/0.3599, allocations: 4 kB / 1.352 GB, free: 8.715 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001964/0.36, allocations: 23.97 kB / 1.352 GB, free: 8.691 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.982e-05/0.3601, allocations: 7.984 kB / 1.352 GB, free: 8.684 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.27e-05/0.3601, allocations: 4 kB / 1.352 GB, free: 8.68 MB / 1.045 GB Notification: Performance of sorting global known variables: time 9.853e-05/0.3602, allocations: 119.2 kB / 1.353 GB, free: 8.562 MB / 1.045 GB Notification: Performance of sort global known variables: time 7e-08/0.3602, allocations: 0 / 1.353 GB, free: 8.562 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0003595/0.3606, allocations: 43.92 kB / 1.353 GB, free: 8.52 MB / 1.045 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.00127/0.3618, allocations: 0.9418 MB / 1.354 GB, free: 7.582 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0003991/0.3622, allocations: 107.8 kB / 1.354 GB, free: 7.477 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 2.225e-06/0.3622, allocations: 0 / 1.354 GB, free: 7.477 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0001723/0.3624, allocations: 51.91 kB / 1.354 GB, free: 7.426 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003858/0.3628, allocations: 21.45 kB / 1.354 GB, free: 7.406 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00243/0.3652, allocations: 1.916 MB / 1.356 GB, free: 5.355 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003351/0.3656, allocations: 0.7157 MB / 1.356 GB, free: 4.613 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 7.088e-05/0.3656, allocations: 24.47 kB / 1.356 GB, free: 4.59 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.624e-05/0.3657, allocations: 39.42 kB / 1.356 GB, free: 4.551 MB / 1.045 GB Notification: Performance of SimCode: time 5.01e-07/0.3657, allocations: 0 / 1.356 GB, free: 4.551 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02408/0.3898, allocations: 3.622 MB / 1.36 GB, free: 1.098 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.91/12.3, allocations: 7.859 kB / 1.36 GB, free: 1.09 MB / 1.045 GB " [Timeout remaining time 288] (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: 19.291582139965612] Failed to read output from testmodel.py, exit status != 0: 12.462796146981418 12.479116939 12.123518608 Calling exit ...