Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Utilities.IO.Files.Examples.Printer.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.Printer,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Utilities_IO_Files_Examples_Printer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.Printer,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Utilities_IO_Files_Examples_Printer",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.637/1.637, allocations: 288.4 MB / 303.3 MB, free: 8.156 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009251/0.0009255, allocations: 179 kB / 372 MB, free: 10.24 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.371/1.371, allocations: 205.4 MB / 0.6307 GB, free: 9.945 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007756/0.0007756, allocations: 94.36 kB / 0.7441 GB, free: 5.871 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003861/0.0003863, allocations: 10.72 kB / 0.867 GB, free: 141.9 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2203/0.2207, allocations: 115.3 MB / 0.9796 GB, free: 27.54 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.001725/0.2224, allocations: 1.285 MB / 0.9809 GB, free: 26.24 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001253/0.2237, allocations: 0.6877 MB / 0.9816 GB, free: 25.54 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.471e-05/0.2238, allocations: 4 kB / 0.9816 GB, free: 25.54 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 9.813e-05/0.2239, allocations: 7.875 kB / 0.9816 GB, free: 25.53 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 6.348e-05/0.224, allocations: 19.84 kB / 0.9816 GB, free: 25.51 MB / 0.6198 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.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.0005085/0.2245, allocations: 95.83 kB / 0.9817 GB, free: 25.42 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0001666/0.2247, allocations: 119.5 kB / 0.9818 GB, free: 25.3 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001237/0.2248, allocations: 29.11 kB / 0.9818 GB, free: 25.27 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 8.979e-05/0.225, allocations: 39.83 kB / 0.9819 GB, free: 25.23 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 7.968e-05/0.2251, allocations: 59.75 kB / 0.9819 GB, free: 25.17 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 2.12e-05/0.2251, allocations: 7.938 kB / 0.9819 GB, free: 25.16 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001243/0.2252, allocations: 43.91 kB / 0.982 GB, free: 25.12 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 4.943e-05/0.2253, allocations: 27.91 kB / 0.982 GB, free: 25.09 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 4.499e-05/0.2253, allocations: 41.64 kB / 0.982 GB, free: 25.05 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.000169/0.2255, allocations: 116 kB / 0.9821 GB, free: 24.93 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.2255, allocations: 0 / 0.9821 GB, free: 24.93 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.282e-06/0.2255, allocations: 0 / 0.9821 GB, free: 24.93 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 8.206e-06/0.2255, allocations: 0 / 0.9821 GB, free: 24.93 MB / 0.6198 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.0007704/0.2263, allocations: 0.5273 MB / 0.9827 GB, free: 24.34 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 5.065e-05/0.2264, allocations: 16.02 kB / 0.9827 GB, free: 24.32 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.713e-05/0.2264, allocations: 34.56 kB / 0.9827 GB, free: 24.28 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.489e-05/0.2265, allocations: 19.81 kB / 0.9827 GB, free: 24.26 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001964/0.2267, allocations: 214.7 kB / 0.9829 GB, free: 24.01 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.796e-05/0.2267, allocations: 11.98 kB / 0.9829 GB, free: 24 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.366e-05/0.2268, allocations: 4 kB / 0.9829 GB, free: 24 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003449/0.2271, allocations: 135.3 kB / 0.9831 GB, free: 23.85 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.43e-05/0.2271, allocations: 0 / 0.9831 GB, free: 23.85 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.723e-05/0.2272, allocations: 4 kB / 0.9831 GB, free: 23.85 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.8e-06/0.2272, allocations: 0 / 0.9831 GB, free: 23.85 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002545/0.2274, allocations: 87.88 kB / 0.9832 GB, free: 23.76 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006275/0.2281, allocations: 472.7 kB / 0.9836 GB, free: 23.25 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002032/0.2283, allocations: 93.12 kB / 0.9837 GB, free: 23.14 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001338/0.2284, allocations: 57.8 kB / 0.9838 GB, free: 23.07 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 2.951e-05/0.2285, allocations: 7.984 kB / 0.9838 GB, free: 23.07 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003012/0.2288, allocations: 156.8 kB / 0.9839 GB, free: 22.89 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=12): time 3.767e-06/0.2288, allocations: 112 / 0.9839 GB, free: 22.89 MB / 0.6198 GB Notification: Performance of matching and sorting (n=12): time 0.0005815/0.2294, allocations: 213.3 kB / 0.9841 GB, free: 22.68 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.333e-05/0.2294, allocations: 85.11 kB / 0.9842 GB, free: 22.58 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001007/0.2295, allocations: 166.8 kB / 0.9844 GB, free: 22.41 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 2.251e-05/0.2296, allocations: 29.7 kB / 0.9844 GB, free: 22.37 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 5.166e-05/0.2296, allocations: 112.3 kB / 0.9845 GB, free: 22.26 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 3.01e-05/0.2297, allocations: 31.62 kB / 0.9845 GB, free: 22.23 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.542e-06/0.2297, allocations: 4 kB / 0.9845 GB, free: 22.22 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 6.079e-05/0.2297, allocations: 322.8 kB / 0.9848 GB, free: 21.9 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001376/0.2299, allocations: 48.34 kB / 0.9849 GB, free: 21.85 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001673/0.2301, allocations: 122.3 kB / 0.985 GB, free: 21.7 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001587/0.2302, allocations: 59.91 kB / 0.9851 GB, free: 21.64 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.2302, allocations: 0 / 0.9851 GB, free: 21.64 MB / 0.6198 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003559/0.2306, allocations: 181.2 kB / 0.9852 GB, free: 21.45 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.866e-05/0.2306, allocations: 8 kB / 0.9852 GB, free: 21.45 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.661e-06/0.2306, allocations: 0 / 0.9852 GB, free: 21.45 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.479e-05/0.2307, allocations: 7.953 kB / 0.9852 GB, free: 21.44 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001245/0.2308, allocations: 24.27 kB / 0.9853 GB, free: 21.41 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.467e-06/0.2308, allocations: 3.938 kB / 0.9853 GB, free: 21.41 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000106/0.2309, allocations: 19.98 kB / 0.9853 GB, free: 21.39 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.597e-05/0.231, allocations: 8 kB / 0.9853 GB, free: 21.38 MB / 0.6198 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.0001037/0.2311, allocations: 133.8 kB / 0.9854 GB, free: 21.24 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.506e-05/0.2311, allocations: 11.81 kB / 0.9854 GB, free: 21.23 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.065e-05/0.2312, allocations: 29.39 kB / 0.9855 GB, free: 21.21 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.288e-06/0.2312, allocations: 3.953 kB / 0.9855 GB, free: 21.2 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.801e-06/0.2312, allocations: 0 / 0.9855 GB, free: 21.2 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.416e-06/0.2312, allocations: 0 / 0.9855 GB, free: 21.2 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000623/0.2318, allocations: 0.5483 MB / 0.986 GB, free: 20.6 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/0.2319, allocations: 0 / 0.986 GB, free: 20.6 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.004e-05/0.2319, allocations: 27.88 kB / 0.986 GB, free: 20.57 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.346e-06/0.232, allocations: 0 / 0.986 GB, free: 20.57 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.49e-05/0.232, allocations: 4 kB / 0.986 GB, free: 20.57 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.104e-06/0.232, allocations: 0 / 0.986 GB, free: 20.57 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.232, allocations: 4 kB / 0.986 GB, free: 20.56 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003676/0.2324, allocations: 338.5 kB / 0.9864 GB, free: 20.21 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 3.072e-05/0.2324, allocations: 89 kB / 0.9864 GB, free: 20.11 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.275e-05/0.2324, allocations: 3.953 kB / 0.9865 GB, free: 20.11 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000193/0.2326, allocations: 23.98 kB / 0.9865 GB, free: 20.08 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.171e-05/0.2327, allocations: 12.2 kB / 0.9865 GB, free: 20.07 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.483e-05/0.2327, allocations: 11.98 kB / 0.9865 GB, free: 20.06 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 6.709e-05/0.2328, allocations: 124.2 kB / 0.9866 GB, free: 19.94 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.51e-07/0.2328, allocations: 0 / 0.9866 GB, free: 19.94 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0003433/0.2332, allocations: 36 kB / 0.9867 GB, free: 19.9 MB / 0.6198 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.0009426/0.2341, allocations: 0.978 MB / 0.9876 GB, free: 18.94 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0003825/0.2345, allocations: 116 kB / 0.9877 GB, free: 18.82 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 3.957e-06/0.2345, allocations: 4 kB / 0.9877 GB, free: 18.82 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0001644/0.2347, allocations: 59.89 kB / 0.9878 GB, free: 18.76 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000399/0.2351, allocations: 20.38 kB / 0.9878 GB, free: 18.74 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001416/0.2365, allocations: 0.8602 MB / 0.9886 GB, free: 17.8 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001495/0.2367, allocations: 0.7163 MB / 0.9893 GB, free: 17.06 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 7.659e-05/0.2368, allocations: 24.53 kB / 0.9894 GB, free: 17.04 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.57e-05/0.2368, allocations: 39.48 kB / 0.9894 GB, free: 17 MB / 0.6198 GB Notification: Performance of SimCode: time 2.4e-07/0.2368, allocations: 0 / 0.9894 GB, free: 17 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01545/0.2523, allocations: 3.039 MB / 0.9924 GB, free: 14.1 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001656/0.2525, allocations: 229.7 kB / 0.9926 GB, free: 13.86 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.889/2.141, allocations: 0 / 0.9926 GB, free: 13.86 MB / 0.6198 GB (rm -f Buildings_maint.8.0.x_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Utilities.IO.Files.Examples.Printer.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Utilities.IO.Files.Examples.Printer.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Utilities_IO_Files_Examples_Printer_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Utilities_IO_Files_Examples_Printer.fmu > Buildings_maint.8.0.x_Buildings.Utilities.IO.Files.Examples.Printer.pipe 2>&1)