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.0008128/0.0008127, allocations: 84.38 kB / 15.06 MB, free: 1.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008782/0.0008785, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.802/1.802, allocations: 205.4 MB / 222.1 MB, free: 5.641 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.7 MB / 0.5499 GB, free: 14.55 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.0005498/0.0005501, allocations: 17.94 kB / 0.6738 GB, free: 26.15 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2866/0.2872, allocations: 116.3 MB / 0.7874 GB, free: 11.85 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.002788/0.29, allocations: 1.282 MB / 0.7886 GB, free: 10.55 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.002181/0.2922, allocations: 0.7026 MB / 0.7893 GB, free: 9.84 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.835e-05/0.2923, allocations: 0 / 0.7893 GB, free: 9.84 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0001226/0.2925, allocations: 7.938 kB / 0.7893 GB, free: 9.832 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 8.295e-05/0.2926, allocations: 27.72 kB / 0.7894 GB, free: 9.805 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.0006387/0.2932, allocations: 87.84 kB / 0.7895 GB, free: 9.719 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0002865/0.2935, allocations: 127.6 kB / 0.7896 GB, free: 9.594 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001886/0.2937, allocations: 21.11 kB / 0.7896 GB, free: 9.574 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001146/0.2939, allocations: 39.8 kB / 0.7896 GB, free: 9.535 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001443/0.294, allocations: 63.73 kB / 0.7897 GB, free: 9.473 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.823e-05/0.2941, allocations: 4 kB / 0.7897 GB, free: 9.469 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001653/0.2942, allocations: 43.95 kB / 0.7897 GB, free: 9.426 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 6.719e-05/0.2943, allocations: 19.92 kB / 0.7898 GB, free: 9.406 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 6.289e-05/0.2944, allocations: 41.64 kB / 0.7898 GB, free: 9.359 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0002525/0.2947, allocations: 116 kB / 0.7899 GB, free: 9.246 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 6.111e-06/0.2947, allocations: 0 / 0.7899 GB, free: 9.246 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.274e-06/0.2947, allocations: 0 / 0.7899 GB, free: 9.246 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 9.407e-06/0.2947, allocations: 0 / 0.7899 GB, free: 9.246 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.0011/0.2958, allocations: 0.5272 MB / 0.7904 GB, free: 8.652 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.848e-05/0.2959, allocations: 8.031 kB / 0.7904 GB, free: 8.645 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.598e-05/0.296, allocations: 38.56 kB / 0.7905 GB, free: 8.598 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.867e-05/0.296, allocations: 19.75 kB / 0.7905 GB, free: 8.578 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003098/0.2963, allocations: 214.8 kB / 0.7907 GB, free: 8.328 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.413e-05/0.2964, allocations: 11.98 kB / 0.7907 GB, free: 8.316 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.88e-05/0.2964, allocations: 8 kB / 0.7907 GB, free: 8.309 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004655/0.2969, allocations: 131.3 kB / 0.7908 GB, free: 8.168 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.347e-05/0.2969, allocations: 0 / 0.7908 GB, free: 8.168 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.299e-05/0.297, allocations: 12 kB / 0.7908 GB, free: 8.156 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.323e-05/0.297, allocations: 3.938 kB / 0.7908 GB, free: 8.152 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004093/0.2974, allocations: 83.88 kB / 0.7909 GB, free: 8.07 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009142/0.2984, allocations: 472.7 kB / 0.7914 GB, free: 7.555 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002916/0.2987, allocations: 89.19 kB / 0.7915 GB, free: 7.449 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002304/0.2989, allocations: 57.81 kB / 0.7915 GB, free: 7.387 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 3.552e-05/0.299, allocations: 0 / 0.7915 GB, free: 7.387 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004187/0.2994, allocations: 164.9 kB / 0.7917 GB, free: 7.207 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=12): time 1.663e-06/0.2994, allocations: 0 / 0.7917 GB, free: 7.207 MB / 0.6075 GB Notification: Performance of matching and sorting (n=12): time 0.0007268/0.3001, allocations: 217.3 kB / 0.7919 GB, free: 6.988 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.532e-05/0.3002, allocations: 77.11 kB / 0.792 GB, free: 6.895 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001853/0.3004, allocations: 167.4 kB / 0.7921 GB, free: 6.723 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 4.305e-05/0.3005, allocations: 29.7 kB / 0.7921 GB, free: 6.688 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001024/0.3006, allocations: 112.3 kB / 0.7923 GB, free: 6.574 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 4.296e-05/0.3007, allocations: 27.66 kB / 0.7923 GB, free: 6.547 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.092e-05/0.3007, allocations: 4 kB / 0.7923 GB, free: 6.543 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0002113/0.3009, allocations: 330.8 kB / 0.7926 GB, free: 6.211 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001626/0.3011, allocations: 39.97 kB / 0.7926 GB, free: 6.172 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002788/0.3014, allocations: 126.3 kB / 0.7928 GB, free: 6.012 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001942/0.3016, allocations: 59.91 kB / 0.7928 GB, free: 5.953 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.18e-06/0.3016, allocations: 112 / 0.7928 GB, free: 5.953 MB / 0.6075 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004712/0.3021, allocations: 181.2 kB / 0.793 GB, free: 5.77 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.602e-05/0.3021, allocations: 8.281 kB / 0.793 GB, free: 5.762 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.406e-06/0.3021, allocations: 4 kB / 0.793 GB, free: 5.758 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.319e-05/0.3021, allocations: 7.953 kB / 0.793 GB, free: 5.75 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001384/0.3023, allocations: 19.92 kB / 0.793 GB, free: 5.73 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.161e-05/0.3023, allocations: 4 kB / 0.793 GB, free: 5.727 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001353/0.3025, allocations: 19.98 kB / 0.793 GB, free: 5.707 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.581e-05/0.3025, allocations: 4 kB / 0.7931 GB, free: 5.703 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 ($PRE.pri2.firstTrigger,pri2.firstTrigger,$PRE.pri1.firstTrigger,pri1.firstTrigger,$whenCondition4,$whenCondition2,pri1.sampleTrigger,$whenCondition3,pri2.sampleTrigger,$PRE.pri3.firstTrigger,pri3.firstTrigger,$whenCondition1,pri3.sampleTrigger) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001592/0.3026, allocations: 142 kB / 0.7932 GB, free: 5.555 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.494e-05/0.3027, allocations: 19.81 kB / 0.7932 GB, free: 5.535 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.102e-05/0.3028, allocations: 17.39 kB / 0.7932 GB, free: 5.516 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.506e-06/0.3028, allocations: 7.953 kB / 0.7932 GB, free: 5.508 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.985e-06/0.3028, allocations: 0 / 0.7932 GB, free: 5.508 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.412e-06/0.3028, allocations: 0 / 0.7932 GB, free: 5.508 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009334/0.3038, allocations: 0.5522 MB / 0.7938 GB, free: 4.898 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.511e-06/0.3038, allocations: 4 kB / 0.7938 GB, free: 4.895 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.482e-05/0.3039, allocations: 23.94 kB / 0.7938 GB, free: 4.871 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.216e-06/0.3039, allocations: 480 / 0.7938 GB, free: 4.871 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.461e-05/0.3039, allocations: 0 / 0.7938 GB, free: 4.871 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.128e-06/0.3039, allocations: 4 kB / 0.7938 GB, free: 4.867 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.3039, allocations: 0 / 0.7938 GB, free: 4.867 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000582/0.3045, allocations: 342.4 kB / 0.7941 GB, free: 4.516 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 4.782e-05/0.3046, allocations: 89 kB / 0.7942 GB, free: 4.41 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.47e-05/0.3046, allocations: 3.953 kB / 0.7942 GB, free: 4.406 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001665/0.3048, allocations: 27.98 kB / 0.7942 GB, free: 4.379 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.701e-05/0.3048, allocations: 7.984 kB / 0.7942 GB, free: 4.371 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.674e-05/0.3049, allocations: 7.984 kB / 0.7943 GB, free: 4.363 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 8.194e-05/0.305, allocations: 123.2 kB / 0.7944 GB, free: 4.242 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.1e-07/0.305, allocations: 0 / 0.7944 GB, free: 4.242 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.000333/0.3053, allocations: 32 kB / 0.7944 GB, free: 4.211 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001011/0.3063, allocations: 0.9721 MB / 0.7954 GB, free: 3.25 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.000371/0.3067, allocations: 123.8 kB / 0.7955 GB, free: 3.129 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.3067, allocations: 0 / 0.7955 GB, free: 3.129 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001656/0.3069, allocations: 68.45 kB / 0.7955 GB, free: 3.062 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004469/0.3074, allocations: 16 kB / 0.7956 GB, free: 3.047 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00175/0.3091, allocations: 0.8603 MB / 0.7964 GB, free: 2.109 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003954/0.3095, allocations: 0.7163 MB / 0.7971 GB, free: 1.367 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 8.121e-05/0.3096, allocations: 24.47 kB / 0.7971 GB, free: 1.344 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.92e-05/0.3097, allocations: 39.48 kB / 0.7972 GB, free: 1.309 MB / 0.6075 GB Notification: Performance of SimCode: time 1.723e-06/0.3097, allocations: 192 / 0.7972 GB, free: 1.309 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01631/0.326, allocations: 3.044 MB / 0.8001 GB, free: 14.4 MB / 0.6231 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001921/0.3263, allocations: 213.3 kB / 0.8003 GB, free: 14.16 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.987/2.313, allocations: 4 kB / 0.8003 GB, free: 14.16 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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Utilities_IO_Files_Examples_Printer_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Utilities_IO_Files_Examples_Printer.fmu > Buildings_8_Buildings.Utilities.IO.Files.Examples.Printer.pipe 2>&1) Environment - environmentSimulation: