Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Utilities.IO.Files.Examples.Printer.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.Printer,fileNamePrefix="Buildings_8_Buildings_Utilities_IO_Files_Examples_Printer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.Printer,fileNamePrefix="Buildings_8_Buildings_Utilities_IO_Files_Examples_Printer",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001098/0.001098, allocations: 105.4 kB / 15.7 MB, free: 24 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00114/0.00114, allocations: 196.1 kB / 16.64 MB, free: 6.445 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.385/1.385, allocations: 205.1 MB / 222.5 MB, free: 4.578 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.754/1.754, allocations: 292.3 MB / 0.549 GB, free: 12.74 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001544/0.001544, allocations: 65.11 kB / 0.6718 GB, free: 26.19 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2532/0.2548, allocations: 114.6 MB / 0.7836 GB, free: 13.26 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.003197/0.258, allocations: 1.581 MB / 0.7852 GB, free: 11.66 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001368/0.2594, allocations: 0.7422 MB / 0.7859 GB, free: 10.91 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.165e-05/0.2595, allocations: 0 / 0.7859 GB, free: 10.91 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0001135/0.2596, allocations: 15.81 kB / 0.7859 GB, free: 10.89 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 5.644e-05/0.2597, allocations: 23.78 kB / 0.7859 GB, free: 10.87 MB / 0.6075 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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.0004603/0.2601, allocations: 103.7 kB / 0.786 GB, free: 10.77 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001958/0.2604, allocations: 139.6 kB / 0.7862 GB, free: 10.63 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001625/0.2605, allocations: 32.91 kB / 0.7862 GB, free: 10.6 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 9.142e-05/0.2606, allocations: 63.69 kB / 0.7863 GB, free: 10.54 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 8.926e-05/0.2607, allocations: 55.77 kB / 0.7863 GB, free: 10.48 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.203e-05/0.2608, allocations: 12 kB / 0.7863 GB, free: 10.47 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001283/0.2609, allocations: 59.95 kB / 0.7864 GB, free: 10.41 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 5.991e-05/0.261, allocations: 31.84 kB / 0.7864 GB, free: 10.38 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 7.23e-05/0.261, allocations: 55.72 kB / 0.7865 GB, free: 10.32 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0002402/0.2613, allocations: 171.7 kB / 0.7866 GB, free: 10.16 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.077e-06/0.2613, allocations: 0 / 0.7866 GB, free: 10.16 MB / 0.6075 GB Notification: Performance of FrontEnd: time 3.086e-06/0.2613, allocations: 0 / 0.7866 GB, free: 10.16 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 5.761e-06/0.2613, allocations: 3.938 kB / 0.7866 GB, free: 10.15 MB / 0.6075 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.000861/0.2622, allocations: 0.5467 MB / 0.7872 GB, free: 9.539 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.9e-05/0.2622, allocations: 8.031 kB / 0.7872 GB, free: 9.531 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.954e-05/0.2623, allocations: 42.73 kB / 0.7872 GB, free: 9.48 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.928e-05/0.2623, allocations: 12.84 kB / 0.7872 GB, free: 9.469 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002249/0.2626, allocations: 220 kB / 0.7874 GB, free: 9.215 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.535e-05/0.2626, allocations: 12.38 kB / 0.7875 GB, free: 9.203 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.117e-05/0.2626, allocations: 12.36 kB / 0.7875 GB, free: 9.191 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003139/0.2629, allocations: 135.4 kB / 0.7876 GB, free: 9.047 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.684e-06/0.263, allocations: 3.938 kB / 0.7876 GB, free: 9.043 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.79e-05/0.263, allocations: 4 kB / 0.7876 GB, free: 9.039 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.25e-06/0.263, allocations: 0 / 0.7876 GB, free: 9.039 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002313/0.2632, allocations: 67.94 kB / 0.7877 GB, free: 8.973 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006858/0.2639, allocations: 464.6 kB / 0.7881 GB, free: 8.465 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002054/0.2641, allocations: 85.3 kB / 0.7882 GB, free: 8.363 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001353/0.2643, allocations: 53.69 kB / 0.7882 GB, free: 8.305 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 3.15e-05/0.2643, allocations: 3.984 kB / 0.7883 GB, free: 8.301 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000308/0.2646, allocations: 145 kB / 0.7884 GB, free: 8.141 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=12): time 2.104e-06/0.2646, allocations: 0 / 0.7884 GB, free: 8.141 MB / 0.6075 GB Notification: Performance of matching and sorting (n=12): time 0.0005663/0.2652, allocations: 189.3 kB / 0.7886 GB, free: 7.949 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.029e-05/0.2653, allocations: 81.11 kB / 0.7886 GB, free: 7.852 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000129/0.2654, allocations: 166.3 kB / 0.7888 GB, free: 7.68 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 3.291e-05/0.2655, allocations: 25.7 kB / 0.7888 GB, free: 7.648 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 6.867e-05/0.2655, allocations: 116.3 kB / 0.7889 GB, free: 7.531 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 3.447e-05/0.2656, allocations: 23.66 kB / 0.789 GB, free: 7.508 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.878e-05/0.2656, allocations: 41.7 kB / 0.789 GB, free: 7.461 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001339/0.2658, allocations: 318.8 kB / 0.7893 GB, free: 7.141 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001312/0.2659, allocations: 43.95 kB / 0.7893 GB, free: 7.098 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001982/0.2661, allocations: 118.2 kB / 0.7895 GB, free: 6.945 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002889/0.2664, allocations: 139.6 kB / 0.7896 GB, free: 6.781 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.33e-06/0.2664, allocations: 8 kB / 0.7896 GB, free: 6.773 MB / 0.6075 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004096/0.2669, allocations: 169.2 kB / 0.7898 GB, free: 6.602 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.797e-05/0.2669, allocations: 4 kB / 0.7898 GB, free: 6.598 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.107e-06/0.2669, allocations: 4 kB / 0.7898 GB, free: 6.594 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.487e-05/0.2669, allocations: 4.281 kB / 0.7898 GB, free: 6.59 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001086/0.267, allocations: 15.98 kB / 0.7898 GB, free: 6.574 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.829e-06/0.2671, allocations: 7.938 kB / 0.7898 GB, free: 6.566 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000101/0.2672, allocations: 19.92 kB / 0.7898 GB, free: 6.547 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.452e-05/0.2672, allocations: 4 kB / 0.7898 GB, free: 6.543 MB / 0.6075 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.0001212/0.2673, allocations: 130.1 kB / 0.7899 GB, free: 6.406 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.438e-05/0.2673, allocations: 19.8 kB / 0.79 GB, free: 6.387 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.599e-05/0.2674, allocations: 21.34 kB / 0.79 GB, free: 6.363 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.915e-06/0.2674, allocations: 4.375 kB / 0.79 GB, free: 6.359 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.227e-06/0.2674, allocations: 4 kB / 0.79 GB, free: 6.355 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.746e-06/0.2674, allocations: 7.922 kB / 0.79 GB, free: 6.348 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007371/0.2682, allocations: 0.5288 MB / 0.7905 GB, free: 5.762 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.295e-06/0.2682, allocations: 0 / 0.7905 GB, free: 5.762 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.45e-05/0.2683, allocations: 11.98 kB / 0.7905 GB, free: 5.75 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.729e-06/0.2683, allocations: 7.938 kB / 0.7905 GB, free: 5.742 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.719e-05/0.2683, allocations: 11.98 kB / 0.7905 GB, free: 5.73 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.214e-06/0.2683, allocations: 3.938 kB / 0.7906 GB, free: 5.727 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.2683, allocations: 0 / 0.7906 GB, free: 5.727 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004513/0.2688, allocations: 314.6 kB / 0.7909 GB, free: 5.402 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 6.917e-05/0.2689, allocations: 100.9 kB / 0.7909 GB, free: 5.285 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.252e-05/0.2689, allocations: 0 / 0.7909 GB, free: 5.285 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001822/0.2691, allocations: 19.97 kB / 0.791 GB, free: 5.266 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.887e-05/0.2692, allocations: 11.98 kB / 0.791 GB, free: 5.254 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.888e-05/0.2692, allocations: 4 kB / 0.791 GB, free: 5.25 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 9.407e-05/0.2693, allocations: 132.2 kB / 0.7911 GB, free: 5.121 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.41e-07/0.2693, allocations: 0 / 0.7911 GB, free: 5.121 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0003951/0.2697, allocations: 39.98 kB / 0.7911 GB, free: 5.082 MB / 0.6075 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.001084/0.2708, allocations: 0.9524 MB / 0.7921 GB, free: 4.141 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.000381/0.2712, allocations: 108 kB / 0.7922 GB, free: 4.035 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 4.208e-06/0.2712, allocations: 7.938 kB / 0.7922 GB, free: 4.027 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001607/0.2714, allocations: 51.91 kB / 0.7922 GB, free: 3.977 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004045/0.2718, allocations: 24.11 kB / 0.7923 GB, free: 3.953 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002337/0.2741, allocations: 1.885 MB / 0.7941 GB, free: 1.926 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002995/0.2745, allocations: 0.7119 MB / 0.7948 GB, free: 1.188 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 8.145e-05/0.2745, allocations: 24.53 kB / 0.7948 GB, free: 1.16 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.509e-05/0.2746, allocations: 39.42 kB / 0.7949 GB, free: 1.125 MB / 0.6075 GB Notification: Performance of SimCode: time 2.4e-07/0.2746, allocations: 0 / 0.7949 GB, free: 1.125 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0239/0.2985, allocations: 3.408 MB / 0.7982 GB, free: 13.82 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.259/8.558, allocations: 6.875 kB / 0.7982 GB, free: 13.81 MB / 0.6231 GB (rm -f Buildings_8_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; mkfifo Buildings_8_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; head -c 1048576 < Buildings_8_Buildings.Utilities.IO.Files.Examples.Printer.pipe >> ../files/Buildings_8_Buildings.Utilities.IO.Files.Examples.Printer.sim & python3 -m fmpy simulate --output-file Buildings_8_Buildings.Utilities.IO.Files.Examples.Printer_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 Buildings_8_Buildings_Utilities_IO_Files_Examples_Printer.fmu > Buildings_8_Buildings.Utilities.IO.Files.Examples.Printer.pipe 2>&1)