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.001757/0.001757, 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.001414/0.001414, allocations: 214.8 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.463/1.463, allocations: 230.6 MB / 256.8 MB, free: 7.996 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.218/3.218, allocations: 0.49 GB / 0.7959 GB, free: 33.44 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.002039/0.002039, allocations: 70.55 kB / 1.155 GB, free: 25.68 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.371/0.373, allocations: 176.1 MB / 1.327 GB, free: 1.988 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.002974/0.376, allocations: 1.628 MB / 1.328 GB, free: 364 kB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001475/0.3775, allocations: 0.7831 MB / 1.329 GB, free: 15.57 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.548e-05/0.3775, allocations: 0 / 1.329 GB, free: 15.57 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0001023/0.3776, allocations: 15.81 kB / 1.329 GB, free: 15.55 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 5.479e-05/0.3777, allocations: 19.78 kB / 1.329 GB, free: 15.53 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.0004386/0.3781, allocations: 111.7 kB / 1.329 GB, free: 15.42 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0002014/0.3783, allocations: 131.6 kB / 1.329 GB, free: 15.29 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001305/0.3784, allocations: 21.58 kB / 1.329 GB, free: 15.27 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001033/0.3785, allocations: 67.7 kB / 1.329 GB, free: 15.2 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001122/0.3786, allocations: 67.75 kB / 1.329 GB, free: 15.14 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 2.471e-05/0.3787, allocations: 8 kB / 1.329 GB, free: 15.13 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001247/0.3788, allocations: 51.97 kB / 1.329 GB, free: 15.08 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 6.221e-05/0.3789, allocations: 35.89 kB / 1.329 GB, free: 15.04 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 7.031e-05/0.3789, allocations: 55.67 kB / 1.33 GB, free: 14.99 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0002872/0.3792, allocations: 183.2 kB / 1.33 GB, free: 14.81 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.958e-06/0.3792, allocations: 0 / 1.33 GB, free: 14.81 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.332e-06/0.3792, allocations: 3.938 kB / 1.33 GB, free: 14.8 MB / 1.029 GB Notification: Performance of Transformations before backend: time 5.761e-06/0.3792, allocations: 0 / 1.33 GB, free: 14.8 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.0008795/0.3801, allocations: 482.6 kB / 1.33 GB, free: 14.29 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.906e-05/0.3801, allocations: 12.03 kB / 1.33 GB, free: 14.27 MB / 1.029 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.102e-05/0.3802, allocations: 192 / 1.33 GB, free: 14.27 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.006e-05/0.3802, allocations: 42.73 kB / 1.33 GB, free: 14.22 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.538e-05/0.3803, allocations: 16.84 kB / 1.33 GB, free: 14.21 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002069/0.3805, allocations: 154.3 kB / 1.33 GB, free: 14.03 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.506e-05/0.3805, allocations: 12.31 kB / 1.33 GB, free: 14.02 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.632e-05/0.3805, allocations: 12.38 kB / 1.33 GB, free: 14.01 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003325/0.3808, allocations: 135.3 kB / 1.331 GB, free: 13.86 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.017e-05/0.3808, allocations: 0 / 1.331 GB, free: 13.86 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.532e-05/0.3809, allocations: 0 / 1.331 GB, free: 13.86 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.02e-06/0.3809, allocations: 0 / 1.331 GB, free: 13.86 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002667/0.3811, allocations: 71.94 kB / 1.331 GB, free: 13.79 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006706/0.3818, allocations: 431.8 kB / 1.331 GB, free: 13.32 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002193/0.382, allocations: 89.11 kB / 1.331 GB, free: 13.22 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001433/0.3822, allocations: 41.92 kB / 1.331 GB, free: 13.17 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.83e-05/0.3822, allocations: 3.938 kB / 1.331 GB, free: 13.17 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003827/0.3826, allocations: 148.9 kB / 1.331 GB, free: 13 MB / 1.029 GB Notification: Performance of pre-optimization done (n=12): time 1.153e-06/0.3826, allocations: 0 / 1.331 GB, free: 13 MB / 1.029 GB Notification: Performance of matching and sorting (n=12): time 0.0006496/0.3832, allocations: 189.4 kB / 1.331 GB, free: 12.81 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.741e-05/0.3833, allocations: 81.11 kB / 1.332 GB, free: 12.71 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001504/0.3834, allocations: 170.8 kB / 1.332 GB, free: 12.54 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 3.271e-05/0.3835, allocations: 33.69 kB / 1.332 GB, free: 12.5 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 7.726e-05/0.3835, allocations: 112.3 kB / 1.332 GB, free: 12.38 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 4.424e-05/0.3836, allocations: 31.84 kB / 1.332 GB, free: 12.35 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.476e-05/0.3836, allocations: 33.7 kB / 1.332 GB, free: 12.31 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001533/0.3838, allocations: 322.8 kB / 1.332 GB, free: 11.98 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001383/0.3839, allocations: 39.91 kB / 1.332 GB, free: 11.95 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002317/0.3842, allocations: 114.3 kB / 1.332 GB, free: 11.8 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003341/0.3845, allocations: 155.5 kB / 1.333 GB, free: 11.62 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.404e-06/0.3845, allocations: 0 / 1.333 GB, free: 11.62 MB / 1.029 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003914/0.3849, allocations: 165.7 kB / 1.333 GB, free: 11.45 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.628e-05/0.3849, allocations: 6.312 kB / 1.333 GB, free: 11.45 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.253e-06/0.3849, allocations: 8 kB / 1.333 GB, free: 11.44 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.787e-05/0.3849, allocations: 8 kB / 1.333 GB, free: 11.43 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001246/0.3851, allocations: 19.86 kB / 1.333 GB, free: 11.41 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.939e-06/0.3851, allocations: 7.938 kB / 1.333 GB, free: 11.4 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001032/0.3852, allocations: 15.98 kB / 1.333 GB, free: 11.39 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.38e-05/0.3852, allocations: 8 kB / 1.333 GB, free: 11.38 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.0001345/0.3853, allocations: 134.3 kB / 1.333 GB, free: 11.24 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.872e-05/0.3853, allocations: 23.84 kB / 1.333 GB, free: 11.21 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.947e-05/0.3854, allocations: 17.41 kB / 1.333 GB, free: 11.19 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.417e-06/0.3854, allocations: 8.172 kB / 1.333 GB, free: 11.18 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.474e-06/0.3854, allocations: 3.938 kB / 1.333 GB, free: 11.18 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.025e-06/0.3854, allocations: 7.969 kB / 1.333 GB, free: 11.17 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007572/0.3862, allocations: 0.4929 MB / 1.333 GB, free: 10.63 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.967e-06/0.3862, allocations: 8 kB / 1.333 GB, free: 10.62 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.281e-05/0.3863, allocations: 23.86 kB / 1.333 GB, free: 10.6 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.314e-06/0.3863, allocations: 0 / 1.333 GB, free: 10.6 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.399e-05/0.3863, allocations: 3.984 kB / 1.333 GB, free: 10.59 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.46e-06/0.3863, allocations: 4 kB / 1.333 GB, free: 10.59 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.3863, allocations: 0 / 1.333 GB, free: 10.59 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004671/0.3868, allocations: 318.7 kB / 1.334 GB, free: 10.26 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 2.757e-05/0.3868, allocations: 15.84 kB / 1.334 GB, free: 10.25 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.338e-05/0.3868, allocations: 3.984 kB / 1.334 GB, free: 10.24 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001926/0.387, allocations: 23.92 kB / 1.334 GB, free: 10.22 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.677e-05/0.387, allocations: 7.984 kB / 1.334 GB, free: 10.21 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.233e-05/0.3871, allocations: 7.984 kB / 1.334 GB, free: 10.2 MB / 1.029 GB Notification: Performance of sorting global known variables: time 9.866e-05/0.3872, allocations: 119.2 kB / 1.334 GB, free: 10.09 MB / 1.029 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3872, allocations: 7.938 kB / 1.334 GB, free: 10.08 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003552/0.3875, allocations: 35.94 kB / 1.334 GB, free: 10.04 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.001101/0.3886, allocations: 0.944 MB / 1.335 GB, free: 9.109 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.000379/0.389, allocations: 107.8 kB / 1.335 GB, free: 9.004 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 4.027e-06/0.389, allocations: 7.938 kB / 1.335 GB, free: 8.996 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001702/0.3892, allocations: 51.89 kB / 1.335 GB, free: 8.945 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003788/0.3896, allocations: 20.55 kB / 1.335 GB, free: 8.926 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00263/0.3922, allocations: 1.906 MB / 1.337 GB, free: 6.883 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003924/0.3926, allocations: 0.7157 MB / 1.338 GB, free: 6.141 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 7.777e-05/0.3927, allocations: 24.47 kB / 1.338 GB, free: 6.117 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.509e-05/0.3927, allocations: 31.44 kB / 1.338 GB, free: 6.086 MB / 1.029 GB Notification: Performance of SimCode: time 5.91e-07/0.3927, allocations: 7.938 kB / 1.338 GB, free: 6.078 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02481/0.4175, allocations: 3.622 MB / 1.341 GB, free: 2.625 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.77/12.19, allocations: 4 kB / 1.341 GB, free: 2.621 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: 18.991327386989724] Failed to read output from testmodel.py, exit status != 0: 12.354142938973382 12.369639003 11.987281579 Calling exit ...