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.001771/0.001771, 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.002273/0.002273, allocations: 215.8 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.515/1.515, allocations: 230.6 MB / 256.8 MB, free: 7.789 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.403/3.403, allocations: 0.5003 GB / 0.8062 GB, free: 28.27 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.001957/0.001957, allocations: 62.91 kB / 1.17 GB, free: 19.58 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3367/0.3387, allocations: 179 MB / 1.345 GB, free: 15.95 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.002906/0.3416, allocations: 1.587 MB / 1.347 GB, free: 14.34 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.00138/0.3429, allocations: 0.7326 MB / 1.348 GB, free: 13.6 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.388e-05/0.343, allocations: 3.938 kB / 1.348 GB, free: 13.6 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.0001038/0.3431, allocations: 7.875 kB / 1.348 GB, free: 13.59 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 5.433e-05/0.3432, allocations: 23.73 kB / 1.348 GB, free: 13.57 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.0004818/0.3436, allocations: 111.7 kB / 1.348 GB, free: 13.46 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0001979/0.3438, allocations: 139.5 kB / 1.348 GB, free: 13.32 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001437/0.344, allocations: 33.34 kB / 1.348 GB, free: 13.29 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 9.265e-05/0.3441, allocations: 51.84 kB / 1.348 GB, free: 13.24 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000104/0.3442, allocations: 63.73 kB / 1.348 GB, free: 13.18 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 2.559e-05/0.3442, allocations: 12 kB / 1.348 GB, free: 13.16 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001243/0.3443, allocations: 59.84 kB / 1.348 GB, free: 13.11 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 6.654e-05/0.3444, allocations: 31.91 kB / 1.348 GB, free: 13.07 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 7.08e-05/0.3445, allocations: 51.72 kB / 1.348 GB, free: 13.02 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0002518/0.3447, allocations: 167.3 kB / 1.348 GB, free: 12.86 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.3447, allocations: 3.938 kB / 1.348 GB, free: 12.86 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.453e-06/0.3447, allocations: 4 kB / 1.348 GB, free: 12.85 MB / 1.045 GB Notification: Performance of Transformations before backend: time 1.042e-05/0.3447, allocations: 0 / 1.348 GB, free: 12.85 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.0008566/0.3456, allocations: 490.6 kB / 1.349 GB, free: 12.32 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 3.554e-05/0.3456, allocations: 8.031 kB / 1.349 GB, free: 12.32 MB / 1.045 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.481e-05/0.3456, allocations: 4.188 kB / 1.349 GB, free: 12.31 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.681e-05/0.3457, allocations: 34.75 kB / 1.349 GB, free: 12.27 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.115e-05/0.3457, allocations: 20.84 kB / 1.349 GB, free: 12.25 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002289/0.3459, allocations: 162.2 kB / 1.349 GB, free: 12.07 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.558e-05/0.346, allocations: 4.375 kB / 1.349 GB, free: 12.06 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.505e-05/0.346, allocations: 12.38 kB / 1.349 GB, free: 12.05 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000373/0.3464, allocations: 136.5 kB / 1.349 GB, free: 11.91 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.967e-06/0.3464, allocations: 0 / 1.349 GB, free: 11.91 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.69e-05/0.3464, allocations: 4 kB / 1.349 GB, free: 11.9 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.712e-06/0.3464, allocations: 4 kB / 1.349 GB, free: 11.9 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002322/0.3466, allocations: 67.88 kB / 1.349 GB, free: 11.83 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006615/0.3473, allocations: 423.8 kB / 1.35 GB, free: 11.37 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000213/0.3475, allocations: 77.19 kB / 1.35 GB, free: 11.28 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001374/0.3476, allocations: 45.81 kB / 1.35 GB, free: 11.23 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 2.46e-05/0.3477, allocations: 4 kB / 1.35 GB, free: 11.22 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003124/0.348, allocations: 148.9 kB / 1.35 GB, free: 11.06 MB / 1.045 GB Notification: Performance of pre-optimization done (n=12): time 1.784e-06/0.348, allocations: 0 / 1.35 GB, free: 11.06 MB / 1.045 GB Notification: Performance of matching and sorting (n=12): time 0.0005838/0.3486, allocations: 189.4 kB / 1.35 GB, free: 10.87 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.566e-05/0.3486, allocations: 89.09 kB / 1.35 GB, free: 10.76 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000169/0.3488, allocations: 162.2 kB / 1.35 GB, free: 10.59 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 3.69e-05/0.3488, allocations: 33.7 kB / 1.35 GB, free: 10.55 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 9.608e-05/0.3489, allocations: 116.3 kB / 1.35 GB, free: 10.43 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 3.757e-05/0.349, allocations: 27.83 kB / 1.35 GB, free: 10.4 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.323e-05/0.349, allocations: 33.7 kB / 1.35 GB, free: 10.36 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001938/0.3492, allocations: 326.8 kB / 1.351 GB, free: 10.04 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000126/0.3494, allocations: 31.97 kB / 1.351 GB, free: 10 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002572/0.3496, allocations: 198.2 kB / 1.351 GB, free: 9.758 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003101/0.3499, allocations: 147.5 kB / 1.351 GB, free: 9.586 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.175e-06/0.3499, allocations: 4.375 kB / 1.351 GB, free: 9.582 MB / 1.045 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003717/0.3503, allocations: 161.3 kB / 1.351 GB, free: 9.418 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 2.135e-05/0.3503, allocations: 8 kB / 1.351 GB, free: 9.41 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.332e-06/0.3503, allocations: 288 / 1.351 GB, free: 9.41 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.833e-05/0.3503, allocations: 11.94 kB / 1.351 GB, free: 9.398 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001229/0.3505, allocations: 23.92 kB / 1.351 GB, free: 9.375 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.188e-05/0.3505, allocations: 12.03 kB / 1.351 GB, free: 9.363 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.543e-05/0.3506, allocations: 15.89 kB / 1.351 GB, free: 9.348 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.257e-05/0.3506, allocations: 4 kB / 1.351 GB, free: 9.344 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.0001354/0.3507, allocations: 141.7 kB / 1.351 GB, free: 9.195 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.967e-05/0.3508, allocations: 12.19 kB / 1.352 GB, free: 9.184 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.073e-05/0.3508, allocations: 17.39 kB / 1.352 GB, free: 9.164 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.639e-06/0.3508, allocations: 3.984 kB / 1.352 GB, free: 9.16 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.454e-06/0.3508, allocations: 11.94 kB / 1.352 GB, free: 9.148 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-06/0.3508, allocations: 0 / 1.352 GB, free: 9.148 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007428/0.3516, allocations: 0.4889 MB / 1.352 GB, free: 8.609 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.3516, allocations: 0 / 1.352 GB, free: 8.609 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.574e-05/0.3517, allocations: 19.92 kB / 1.352 GB, free: 8.59 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.073e-06/0.3517, allocations: 0 / 1.352 GB, free: 8.59 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.538e-05/0.3517, allocations: 4 kB / 1.352 GB, free: 8.586 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.878e-06/0.3517, allocations: 4 kB / 1.352 GB, free: 8.582 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.3517, allocations: 4 kB / 1.352 GB, free: 8.578 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004466/0.3521, allocations: 322.6 kB / 1.352 GB, free: 8.246 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 2.221e-05/0.3521, allocations: 15.84 kB / 1.352 GB, free: 8.23 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.346e-05/0.3522, allocations: 7.938 kB / 1.352 GB, free: 8.223 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001798/0.3523, allocations: 15.97 kB / 1.352 GB, free: 8.207 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.428e-05/0.3524, allocations: 15.98 kB / 1.352 GB, free: 8.191 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.676e-05/0.3524, allocations: 12 kB / 1.352 GB, free: 8.18 MB / 1.045 GB Notification: Performance of sorting global known variables: time 8.805e-05/0.3525, allocations: 115.2 kB / 1.353 GB, free: 8.066 MB / 1.045 GB Notification: Performance of sort global known variables: time 7e-08/0.3525, allocations: 0 / 1.353 GB, free: 8.066 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0003455/0.3529, allocations: 43.92 kB / 1.353 GB, free: 8.023 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.001215/0.3541, allocations: 0.9367 MB / 1.353 GB, free: 7.098 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0003584/0.3545, allocations: 123.9 kB / 1.354 GB, free: 6.977 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.3545, allocations: 0 / 1.354 GB, free: 6.977 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0001545/0.3546, allocations: 47.91 kB / 1.354 GB, free: 6.93 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004257/0.355, allocations: 27.88 kB / 1.354 GB, free: 6.902 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002456/0.3575, allocations: 1.915 MB / 1.356 GB, free: 4.855 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001145/0.3576, allocations: 102.2 kB / 1.356 GB, free: 4.734 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 7.912e-05/0.3577, allocations: 24.47 kB / 1.356 GB, free: 4.711 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.491e-05/0.3578, allocations: 39.42 kB / 1.356 GB, free: 4.672 MB / 1.045 GB Notification: Performance of SimCode: time 3.01e-07/0.3578, allocations: 0 / 1.356 GB, free: 4.672 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02449/0.3823, allocations: 3.708 MB / 1.359 GB, free: 1.141 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.93/12.31, allocations: 8.516 kB / 1.359 GB, free: 1.137 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.277933084988035] Failed to read output from testmodel.py, exit status != 0: 12.473668424994685 12.491710662000001 12.143615611 Calling exit ...