Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Utilities.IO.Files.Examples.Printer.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.Printer,fileNamePrefix="Buildings_8_0_0_Buildings_Utilities_IO_Files_Examples_Printer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.Printer,fileNamePrefix="Buildings_8_0_0_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.0/package.mo): time 1.685/1.685, allocations: 287.4 MB / 302.6 MB, free: 8.172 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.001082/0.001082, allocations: 189 kB / 371.1 MB, free: 10.82 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.494/1.494, allocations: 205.4 MB / 0.6298 GB, free: 10.57 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.0007873/0.0007879, allocations: 94.12 kB / 0.7431 GB, free: 6.562 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003705/0.0003705, allocations: 16.5 kB / 0.8662 GB, free: 140.4 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2113/0.2116, allocations: 115.3 MB / 0.9787 GB, free: 28.1 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.001511/0.2132, allocations: 1.285 MB / 0.98 GB, free: 26.8 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001008/0.2142, allocations: 0.6879 MB / 0.9807 GB, free: 26.11 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.721e-05/0.2143, allocations: 4 kB / 0.9807 GB, free: 26.1 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0001029/0.2144, allocations: 11.86 kB / 0.9807 GB, free: 26.09 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 4.724e-05/0.2145, allocations: 15.86 kB / 0.9807 GB, free: 26.07 MB / 0.6198 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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.0003669/0.2148, allocations: 87.83 kB / 0.9808 GB, free: 25.99 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0001359/0.215, allocations: 127.5 kB / 0.9809 GB, free: 25.86 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001263/0.2151, allocations: 37.09 kB / 0.9809 GB, free: 25.82 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 6.38e-05/0.2152, allocations: 39.84 kB / 0.981 GB, free: 25.79 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 6.519e-05/0.2153, allocations: 55.73 kB / 0.981 GB, free: 25.73 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 1.881e-05/0.2153, allocations: 4 kB / 0.981 GB, free: 25.73 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 9.585e-05/0.2154, allocations: 43.97 kB / 0.9811 GB, free: 25.68 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 4.322e-05/0.2154, allocations: 27.91 kB / 0.9811 GB, free: 25.66 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 3.646e-05/0.2155, allocations: 45.64 kB / 0.9811 GB, free: 25.61 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0001309/0.2156, allocations: 112 kB / 0.9812 GB, free: 25.5 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 5.12e-06/0.2156, allocations: 3.938 kB / 0.9812 GB, free: 25.49 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.573e-06/0.2156, allocations: 0 / 0.9812 GB, free: 25.49 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 4.418e-06/0.2156, allocations: 0 / 0.9812 GB, free: 25.49 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.0006482/0.2163, allocations: 0.5275 MB / 0.9818 GB, free: 24.9 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.851e-05/0.2163, allocations: 12.03 kB / 0.9818 GB, free: 24.89 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.532e-05/0.2164, allocations: 34.75 kB / 0.9818 GB, free: 24.84 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.775e-05/0.2164, allocations: 16.75 kB / 0.9818 GB, free: 24.83 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001635/0.2166, allocations: 215.9 kB / 0.982 GB, free: 24.58 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.536e-05/0.2166, allocations: 12.36 kB / 0.982 GB, free: 24.57 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.577e-05/0.2166, allocations: 12.38 kB / 0.9821 GB, free: 24.55 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002664/0.2169, allocations: 139.4 kB / 0.9822 GB, free: 24.41 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.767e-06/0.2169, allocations: 4 kB / 0.9822 GB, free: 24.4 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.25e-05/0.2169, allocations: 0 / 0.9822 GB, free: 24.4 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.745e-06/0.217, allocations: 4 kB / 0.9822 GB, free: 24.4 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002225/0.2172, allocations: 79.94 kB / 0.9823 GB, free: 24.32 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005133/0.2177, allocations: 480.6 kB / 0.9827 GB, free: 23.8 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001715/0.2179, allocations: 93.12 kB / 0.9828 GB, free: 23.69 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000116/0.218, allocations: 53.81 kB / 0.9829 GB, free: 23.63 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 2.337e-05/0.218, allocations: 4 kB / 0.9829 GB, free: 23.62 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000278/0.2183, allocations: 149 kB / 0.983 GB, free: 23.46 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=12): time 1.473e-06/0.2183, allocations: 4 kB / 0.983 GB, free: 23.46 MB / 0.6198 GB Notification: Performance of matching and sorting (n=12): time 0.000514/0.2189, allocations: 213.3 kB / 0.9832 GB, free: 23.24 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.446e-05/0.2189, allocations: 77.11 kB / 0.9833 GB, free: 23.15 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.981e-05/0.219, allocations: 166.8 kB / 0.9835 GB, free: 22.98 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 2.088e-05/0.219, allocations: 34.19 kB / 0.9835 GB, free: 22.94 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 4.829e-05/0.2191, allocations: 112.3 kB / 0.9836 GB, free: 22.82 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 2.724e-05/0.2191, allocations: 31.55 kB / 0.9836 GB, free: 22.79 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.979e-06/0.2191, allocations: 0 / 0.9836 GB, free: 22.79 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 6.698e-05/0.2192, allocations: 338.8 kB / 0.9839 GB, free: 22.45 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001176/0.2193, allocations: 43.97 kB / 0.984 GB, free: 22.41 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001445/0.2195, allocations: 126.2 kB / 0.9841 GB, free: 22.25 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002476/0.2197, allocations: 159.5 kB / 0.9843 GB, free: 22.07 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.903e-06/0.2198, allocations: 0 / 0.9843 GB, free: 22.07 MB / 0.6198 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003101/0.2201, allocations: 177.3 kB / 0.9844 GB, free: 21.89 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.438e-05/0.2201, allocations: 8 kB / 0.9844 GB, free: 21.88 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.412e-06/0.2201, allocations: 0 / 0.9844 GB, free: 21.88 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.75e-05/0.2201, allocations: 4 kB / 0.9844 GB, free: 21.88 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001057/0.2202, allocations: 24.27 kB / 0.9845 GB, free: 21.85 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.906e-06/0.2203, allocations: 3.938 kB / 0.9845 GB, free: 21.85 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.087e-05/0.2204, allocations: 27.83 kB / 0.9845 GB, free: 21.82 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.335e-05/0.2204, allocations: 8 kB / 0.9845 GB, free: 21.81 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 8.273e-05/0.2205, allocations: 131.1 kB / 0.9846 GB, free: 21.68 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.836e-05/0.2205, allocations: 11.91 kB / 0.9846 GB, free: 21.66 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.978e-05/0.2205, allocations: 21.41 kB / 0.9847 GB, free: 21.65 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.817e-06/0.2205, allocations: 8.219 kB / 0.9847 GB, free: 21.64 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.888e-06/0.2206, allocations: 0 / 0.9847 GB, free: 21.64 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.348e-06/0.2206, allocations: 3.938 kB / 0.9847 GB, free: 21.64 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005685/0.2211, allocations: 0.5483 MB / 0.9852 GB, free: 21.03 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.2212, allocations: 8 kB / 0.9852 GB, free: 21.02 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.034e-05/0.2212, allocations: 19.92 kB / 0.9852 GB, free: 21 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.976e-06/0.2212, allocations: 3.938 kB / 0.9852 GB, free: 21 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.167e-05/0.2213, allocations: 4 kB / 0.9852 GB, free: 21 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.294e-06/0.2213, allocations: 4 kB / 0.9852 GB, free: 20.99 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.2213, allocations: 4 kB / 0.9852 GB, free: 20.99 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003272/0.2216, allocations: 330.5 kB / 0.9856 GB, free: 20.65 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 2.734e-05/0.2216, allocations: 92.95 kB / 0.9857 GB, free: 20.54 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.04e-05/0.2217, allocations: 3.984 kB / 0.9857 GB, free: 20.54 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000161/0.2218, allocations: 19.98 kB / 0.9857 GB, free: 20.52 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.588e-05/0.2219, allocations: 11.98 kB / 0.9857 GB, free: 20.5 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.887e-05/0.2219, allocations: 7.984 kB / 0.9857 GB, free: 20.5 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 5.127e-05/0.222, allocations: 132.2 kB / 0.9858 GB, free: 20.37 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.2e-07/0.222, allocations: 0 / 0.9858 GB, free: 20.37 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0002861/0.2223, allocations: 40 kB / 0.9859 GB, free: 20.33 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.0007597/0.223, allocations: 0.9628 MB / 0.9868 GB, free: 19.38 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0003138/0.2234, allocations: 124 kB / 0.9869 GB, free: 19.25 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.2234, allocations: 0 / 0.9869 GB, free: 19.25 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.000141/0.2235, allocations: 59.91 kB / 0.987 GB, free: 19.2 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003271/0.2239, allocations: 20.36 kB / 0.987 GB, free: 19.18 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001187/0.2251, allocations: 0.8654 MB / 0.9878 GB, free: 18.23 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001308/0.2252, allocations: 0.7121 MB / 0.9885 GB, free: 17.5 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 6.06e-05/0.2253, allocations: 24.53 kB / 0.9886 GB, free: 17.47 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.686e-05/0.2253, allocations: 39.48 kB / 0.9886 GB, free: 17.43 MB / 0.6198 GB Notification: Performance of SimCode: time 2.11e-07/0.2253, allocations: 0 / 0.9886 GB, free: 17.43 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2237/0.449, allocations: 3.017 MB / 0.9915 GB, free: 14.55 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000162/0.4492, allocations: 214 kB / 0.9917 GB, free: 14.32 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.65/2.099, allocations: 0 / 0.9917 GB, free: 14.32 MB / 0.6198 GB (rm -f Buildings_8.0.0_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; mkfifo Buildings_8.0.0_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Utilities.IO.Files.Examples.Printer.pipe >> ../files/Buildings_8.0.0_Buildings.Utilities.IO.Files.Examples.Printer.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Utilities_IO_Files_Examples_Printer_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Utilities_IO_Files_Examples_Printer.fmu > Buildings_8.0.0_Buildings.Utilities.IO.Files.Examples.Printer.pipe 2>&1)