Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.Printer.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.Printer,fileNamePrefix="Buildings_maint_7_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_7_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 7.0.3-maint.7.0.x/package.mo): time 1.302/1.302, allocations: 251.5 MB / 266.7 MB, free: 10.99 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.000928/0.000928, allocations: 182.7 kB / 325.8 MB, free: 2.656 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.66/1.66, allocations: 205 MB / 0.576 GB, free: 20.56 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0006919/0.0006919, allocations: 96.17 kB / 0.6797 GB, free: 14.29 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003304/0.0003306, allocations: 8.094 kB / 0.7933 GB, free: 136.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2313/0.2317, allocations: 105.4 MB / 0.8962 GB, free: 67.57 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.001755/0.2335, allocations: 1.316 MB / 0.8975 GB, free: 66.23 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.001146/0.2346, allocations: 0.7487 MB / 0.8982 GB, free: 65.48 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.164e-05/0.2347, allocations: 4 kB / 0.8982 GB, free: 65.47 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0001402/0.2349, allocations: 7.922 kB / 0.8982 GB, free: 65.46 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 5.006e-05/0.2349, allocations: 11.81 kB / 0.8982 GB, free: 65.45 MB / 0.6042 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.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.0003908/0.2353, allocations: 99.83 kB / 0.8983 GB, free: 65.36 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0001405/0.2355, allocations: 135.5 kB / 0.8985 GB, free: 65.22 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001422/0.2356, allocations: 37.03 kB / 0.8985 GB, free: 65.19 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 6.942e-05/0.2357, allocations: 35.84 kB / 0.8985 GB, free: 65.15 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 7.181e-05/0.2358, allocations: 63.75 kB / 0.8986 GB, free: 65.09 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 1.871e-05/0.2358, allocations: 4 kB / 0.8986 GB, free: 65.09 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001076/0.2359, allocations: 47.95 kB / 0.8986 GB, free: 65.04 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 4.706e-05/0.236, allocations: 23.86 kB / 0.8987 GB, free: 65.02 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 5.382e-05/0.236, allocations: 55.66 kB / 0.8987 GB, free: 64.96 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.000182/0.2362, allocations: 151.5 kB / 0.8989 GB, free: 64.81 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.2362, allocations: 0 / 0.8989 GB, free: 64.81 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.663e-06/0.2362, allocations: 0 / 0.8989 GB, free: 64.81 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 4.899e-06/0.2362, allocations: 0 / 0.8989 GB, free: 64.81 MB / 0.6042 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.000734/0.237, allocations: 0.5287 MB / 0.8994 GB, free: 64.22 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.867e-05/0.237, allocations: 16.03 kB / 0.8994 GB, free: 64.2 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.41e-05/0.2371, allocations: 38.73 kB / 0.8994 GB, free: 64.16 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.644e-05/0.2371, allocations: 20.69 kB / 0.8995 GB, free: 64.14 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001791/0.2373, allocations: 224 kB / 0.8997 GB, free: 63.88 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.336e-05/0.2373, allocations: 4.375 kB / 0.8997 GB, free: 63.88 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.642e-05/0.2374, allocations: 8.375 kB / 0.8997 GB, free: 63.87 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002924/0.2377, allocations: 154.5 kB / 0.8998 GB, free: 63.71 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.768e-06/0.2377, allocations: 0 / 0.8998 GB, free: 63.71 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.737e-05/0.2377, allocations: 3.984 kB / 0.8998 GB, free: 63.7 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.452e-06/0.2377, allocations: 0 / 0.8998 GB, free: 63.7 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002235/0.2379, allocations: 83.94 kB / 0.8999 GB, free: 63.62 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005535/0.2385, allocations: 468.7 kB / 0.9004 GB, free: 63.11 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001775/0.2387, allocations: 93.17 kB / 0.9004 GB, free: 63 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001499/0.2389, allocations: 61.75 kB / 0.9005 GB, free: 62.93 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 2.377e-05/0.2389, allocations: 0 / 0.9005 GB, free: 62.93 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002941/0.2392, allocations: 145.2 kB / 0.9006 GB, free: 62.77 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=12): time 1.272e-06/0.2392, allocations: 7.938 kB / 0.9006 GB, free: 62.77 MB / 0.6042 GB Notification: Performance of matching and sorting (n=12): time 0.0005007/0.2397, allocations: 213.3 kB / 0.9009 GB, free: 62.55 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.49e-05/0.2397, allocations: 81.11 kB / 0.9009 GB, free: 62.45 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.234e-05/0.2398, allocations: 162.8 kB / 0.9011 GB, free: 62.29 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.768e-05/0.2399, allocations: 33.7 kB / 0.9011 GB, free: 62.25 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 4.549e-05/0.2399, allocations: 124.6 kB / 0.9012 GB, free: 62.12 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 2.91e-05/0.24, allocations: 23.7 kB / 0.9013 GB, free: 62.1 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.679e-05/0.24, allocations: 17.72 kB / 0.9013 GB, free: 62.07 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 6.232e-05/0.2401, allocations: 326.8 kB / 0.9016 GB, free: 61.75 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001141/0.2402, allocations: 47.91 kB / 0.9016 GB, free: 61.7 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001523/0.2403, allocations: 127.3 kB / 0.9018 GB, free: 61.54 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002509/0.2406, allocations: 167.5 kB / 0.9019 GB, free: 61.35 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.2406, allocations: 0 / 0.9019 GB, free: 61.35 MB / 0.6042 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000313/0.2409, allocations: 177.2 kB / 0.9021 GB, free: 61.17 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.721e-05/0.241, allocations: 4.281 kB / 0.9021 GB, free: 61.16 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.753e-06/0.241, allocations: 8 kB / 0.9021 GB, free: 61.16 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.583e-05/0.241, allocations: 4 kB / 0.9021 GB, free: 61.15 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001036/0.2411, allocations: 15.98 kB / 0.9021 GB, free: 61.14 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.805e-06/0.2411, allocations: 4 kB / 0.9021 GB, free: 61.13 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.642e-05/0.2412, allocations: 23.92 kB / 0.9021 GB, free: 61.11 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.136e-05/0.2412, allocations: 7.938 kB / 0.9021 GB, free: 61.1 MB / 0.6042 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 9.187e-05/0.2413, allocations: 141.8 kB / 0.9023 GB, free: 60.95 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.227e-05/0.2414, allocations: 15.81 kB / 0.9023 GB, free: 60.94 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.217e-05/0.2414, allocations: 13.41 kB / 0.9023 GB, free: 60.93 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.795e-06/0.2414, allocations: 4 kB / 0.9023 GB, free: 60.92 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.991e-06/0.2414, allocations: 3.984 kB / 0.9023 GB, free: 60.92 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.238e-06/0.2414, allocations: 3.938 kB / 0.9023 GB, free: 60.91 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005307/0.242, allocations: 0.5406 MB / 0.9029 GB, free: 60.32 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.575e-06/0.242, allocations: 7.984 kB / 0.9029 GB, free: 60.31 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.802e-05/0.2421, allocations: 20.27 kB / 0.9029 GB, free: 60.29 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.826e-06/0.2421, allocations: 7.938 kB / 0.9029 GB, free: 60.28 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.718e-06/0.2421, allocations: 0 / 0.9029 GB, free: 60.28 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.825e-06/0.2421, allocations: 3.938 kB / 0.9029 GB, free: 60.28 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.2421, allocations: 7.938 kB / 0.9029 GB, free: 60.27 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003363/0.2424, allocations: 334.6 kB / 0.9032 GB, free: 59.93 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 2.62e-05/0.2425, allocations: 92.86 kB / 0.9033 GB, free: 59.82 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.064e-05/0.2425, allocations: 3.984 kB / 0.9033 GB, free: 59.81 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001631/0.2427, allocations: 27.98 kB / 0.9033 GB, free: 59.79 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.41e-05/0.2427, allocations: 7.984 kB / 0.9033 GB, free: 59.78 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.078e-05/0.2427, allocations: 11.98 kB / 0.9034 GB, free: 59.77 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 6.634e-05/0.2428, allocations: 115.2 kB / 0.9035 GB, free: 59.65 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.11e-07/0.2428, allocations: 0 / 0.9035 GB, free: 59.65 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0003046/0.2431, allocations: 32 kB / 0.9035 GB, free: 59.62 MB / 0.6042 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.0007874/0.2439, allocations: 0.9673 MB / 0.9044 GB, free: 58.66 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0003181/0.2443, allocations: 123.8 kB / 0.9046 GB, free: 58.54 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.2443, allocations: 0 / 0.9046 GB, free: 58.54 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0001419/0.2444, allocations: 64.47 kB / 0.9046 GB, free: 58.48 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003413/0.2448, allocations: 19.98 kB / 0.9046 GB, free: 58.46 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001722/0.2465, allocations: 1.961 MB / 0.9066 GB, free: 56.36 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000133/0.2466, allocations: 0.716 MB / 0.9073 GB, free: 55.62 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 6.605e-05/0.2467, allocations: 20.53 kB / 0.9073 GB, free: 55.59 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.337e-05/0.2468, allocations: 39.42 kB / 0.9073 GB, free: 55.56 MB / 0.6042 GB Notification: Performance of SimCode: time 2.4e-07/0.2468, allocations: 0 / 0.9073 GB, free: 55.56 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01352/0.2603, allocations: 3.055 MB / 0.9103 GB, free: 52.64 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000172/0.2605, allocations: 254.9 kB / 0.9105 GB, free: 52.38 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.855/2.116, allocations: 0 / 0.9105 GB, free: 52.38 MB / 0.6042 GB (rm -f Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.Printer.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.Printer.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Utilities_IO_Files_Examples_Printer_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Utilities_IO_Files_Examples_Printer.fmu > Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.Printer.pipe 2>&1)