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.001917/0.001917, allocations: 119 kB / 17.17 MB, free: 5.906 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.00254/0.00254, allocations: 211 kB / 20.13 MB, free: 2.969 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 / 253.5 MB, free: 15.07 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.048/3.048, allocations: 0.49 GB / 0.7923 GB, free: 1.246 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.001942/0.001942, allocations: 71.88 kB / 1.149 GB, free: 15.35 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9824/0.9843, allocations: 176.1 MB / 1.321 GB, free: 24.7 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.002663/0.987, allocations: 1.612 MB / 1.323 GB, free: 23.57 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001177/0.9882, allocations: 0.7684 MB / 1.324 GB, free: 23.05 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.078e-05/0.9882, allocations: 0 / 1.324 GB, free: 23.05 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.0001075/0.9883, allocations: 15.28 kB / 1.324 GB, free: 23.04 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 4.754e-05/0.9884, allocations: 18.33 kB / 1.324 GB, free: 23.03 MB / 1.061 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.0004127/0.9888, allocations: 111.4 kB / 1.324 GB, free: 22.97 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0001604/0.989, allocations: 142.3 kB / 1.324 GB, free: 22.91 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001289/0.9891, allocations: 27.44 kB / 1.324 GB, free: 22.89 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 9.371e-05/0.9892, allocations: 61.31 kB / 1.324 GB, free: 22.86 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001058/0.9893, allocations: 65.59 kB / 1.324 GB, free: 22.83 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 2.489e-05/0.9893, allocations: 8.625 kB / 1.324 GB, free: 22.83 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001177/0.9894, allocations: 55.62 kB / 1.324 GB, free: 22.82 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 5.836e-05/0.9895, allocations: 35.59 kB / 1.324 GB, free: 22.8 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 6.841e-05/0.9896, allocations: 59.58 kB / 1.324 GB, free: 22.76 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0002225/0.9898, allocations: 170.8 kB / 1.325 GB, free: 22.69 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.9898, allocations: 0 / 1.325 GB, free: 22.69 MB / 1.061 GB Notification: Performance of FrontEnd: time 2.074e-06/0.9898, allocations: 0 / 1.325 GB, free: 22.69 MB / 1.061 GB Notification: Performance of Transformations before backend: time 6.141e-06/0.9898, allocations: 0 / 1.325 GB, free: 22.69 MB / 1.061 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.0008162/0.9906, allocations: 0.5526 MB / 1.325 GB, free: 22.17 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.346e-05/0.9906, allocations: 11.7 kB / 1.325 GB, free: 22.16 MB / 1.061 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.215e-05/0.9907, allocations: 2.781 kB / 1.325 GB, free: 22.16 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.991e-05/0.9907, allocations: 44.47 kB / 1.325 GB, free: 22.12 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.906e-05/0.9908, allocations: 17.12 kB / 1.325 GB, free: 22.11 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000194/0.991, allocations: 219.2 kB / 1.325 GB, free: 21.89 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.871e-05/0.991, allocations: 3.156 kB / 1.325 GB, free: 21.89 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.197e-05/0.991, allocations: 12.59 kB / 1.325 GB, free: 21.88 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003017/0.9913, allocations: 133.7 kB / 1.325 GB, free: 21.81 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.816e-06/0.9913, allocations: 0 / 1.325 GB, free: 21.81 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.579e-05/0.9913, allocations: 0 / 1.325 GB, free: 21.81 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.811e-06/0.9913, allocations: 7.25 kB / 1.325 GB, free: 21.8 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002319/0.9916, allocations: 66.95 kB / 1.326 GB, free: 21.79 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005374/0.9921, allocations: 462.1 kB / 1.326 GB, free: 21.39 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001824/0.9923, allocations: 87.14 kB / 1.326 GB, free: 21.33 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001267/0.9924, allocations: 51.61 kB / 1.326 GB, free: 21.3 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 2.617e-05/0.9924, allocations: 14.64 kB / 1.326 GB, free: 21.29 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000318/0.9927, allocations: 146.7 kB / 1.326 GB, free: 21.2 MB / 1.061 GB Notification: Performance of pre-optimization done (n=12): time 1.342e-06/0.9928, allocations: 0 / 1.326 GB, free: 21.2 MB / 1.061 GB Notification: Performance of matching and sorting (n=12): time 0.0005768/0.9933, allocations: 184.9 kB / 1.326 GB, free: 21.13 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.003e-05/0.9934, allocations: 87.17 kB / 1.327 GB, free: 21.03 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001017/0.9935, allocations: 164.2 kB / 1.327 GB, free: 20.91 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 1.972e-05/0.9935, allocations: 32.67 kB / 1.327 GB, free: 20.88 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 4.829e-05/0.9935, allocations: 109.3 kB / 1.327 GB, free: 20.77 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 2.829e-05/0.9936, allocations: 28.59 kB / 1.327 GB, free: 20.75 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.947e-05/0.9936, allocations: 35.91 kB / 1.327 GB, free: 20.73 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 5.252e-05/0.9937, allocations: 325 kB / 1.327 GB, free: 20.41 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001241/0.9938, allocations: 39.5 kB / 1.327 GB, free: 20.4 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001547/0.9939, allocations: 116.4 kB / 1.327 GB, free: 20.29 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002595/0.9942, allocations: 153.6 kB / 1.327 GB, free: 20.18 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.446e-06/0.9942, allocations: 2.719 kB / 1.327 GB, free: 20.18 MB / 1.061 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003974/0.9946, allocations: 163.5 kB / 1.328 GB, free: 20.11 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 2.172e-05/0.9946, allocations: 6.188 kB / 1.328 GB, free: 20.11 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.004e-06/0.9946, allocations: 2.031 kB / 1.328 GB, free: 20.11 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.136e-05/0.9947, allocations: 2.781 kB / 1.328 GB, free: 20.11 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001314/0.9948, allocations: 21.17 kB / 1.328 GB, free: 20.1 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.293e-05/0.9948, allocations: 7.094 kB / 1.328 GB, free: 20.1 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001053/0.9949, allocations: 15.5 kB / 1.328 GB, free: 20.09 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.997e-05/0.9949, allocations: 5.875 kB / 1.328 GB, free: 20.09 MB / 1.061 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.000113/0.995, allocations: 138.2 kB / 1.328 GB, free: 19.96 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.463e-05/0.9951, allocations: 16.16 kB / 1.328 GB, free: 19.96 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.933e-05/0.9951, allocations: 20.11 kB / 1.328 GB, free: 19.94 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.508e-06/0.9951, allocations: 6.203 kB / 1.328 GB, free: 19.93 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.013e-05/0.9951, allocations: 8.656 kB / 1.328 GB, free: 19.93 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.991e-06/0.9951, allocations: 1.188 kB / 1.328 GB, free: 19.93 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006516/0.9958, allocations: 0.5401 MB / 1.328 GB, free: 19.48 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.545e-06/0.9958, allocations: 0.875 kB / 1.328 GB, free: 19.48 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.147e-05/0.9959, allocations: 20.66 kB / 1.328 GB, free: 19.48 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.725e-06/0.9959, allocations: 7.266 kB / 1.328 GB, free: 19.47 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.191e-05/0.9959, allocations: 1.594 kB / 1.328 GB, free: 19.47 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.755e-06/0.9959, allocations: 2.188 kB / 1.328 GB, free: 19.47 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.9959, allocations: 0 / 1.328 GB, free: 19.47 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004179/0.9963, allocations: 318.6 kB / 1.329 GB, free: 19.23 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 3.485e-05/0.9964, allocations: 96.42 kB / 1.329 GB, free: 19.13 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.251e-05/0.9964, allocations: 1.094 kB / 1.329 GB, free: 19.13 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001848/0.9966, allocations: 16.92 kB / 1.329 GB, free: 19.12 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.746e-05/0.9966, allocations: 16.56 kB / 1.329 GB, free: 19.12 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.045e-05/0.9966, allocations: 13.53 kB / 1.329 GB, free: 19.11 MB / 1.061 GB Notification: Performance of sorting global known variables: time 7.617e-05/0.9967, allocations: 120 kB / 1.329 GB, free: 19.03 MB / 1.061 GB Notification: Performance of sort global known variables: time 9e-08/0.9967, allocations: 0 / 1.329 GB, free: 19.03 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0003679/0.9971, allocations: 41.16 kB / 1.329 GB, free: 19.02 MB / 1.061 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.0009238/0.998, allocations: 0.9376 MB / 1.33 GB, free: 18.21 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0003835/0.9984, allocations: 102.1 kB / 1.33 GB, free: 18.2 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.9984, allocations: 4.719 kB / 1.33 GB, free: 18.19 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0001662/0.9986, allocations: 56.14 kB / 1.33 GB, free: 18.18 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003701/0.9989, allocations: 26.41 kB / 1.33 GB, free: 18.16 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002068/1.001, allocations: 1.904 MB / 1.332 GB, free: 16.58 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00016/1.001, allocations: 0.7193 MB / 1.333 GB, free: 15.88 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 7.24e-05/1.001, allocations: 21.03 kB / 1.333 GB, free: 15.88 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.921e-05/1.001, allocations: 42.48 kB / 1.333 GB, free: 15.85 MB / 1.061 GB Notification: Performance of SimCode: time 3.1e-07/1.001, allocations: 0 / 1.333 GB, free: 15.85 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02334/1.025, allocations: 3.46 MB / 1.336 GB, free: 15.23 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.945/9.97, allocations: 17.05 kB / 1.336 GB, free: 15.22 MB / 1.061 GB " [Timeout remaining time 290] (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: 16.612748120038304] Failed to read output from testmodel.py, exit status != 0: 10.099991007009521 10.119482586 9.125980193 Calling exit ...