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.399/1.399, allocations: 251.9 MB / 266.9 MB, free: 11.01 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.001135/0.001136, allocations: 181.7 kB / 326.5 MB, free: 2.246 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.648/1.648, allocations: 205.4 MB / 0.5775 GB, free: 20.3 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.0008954/0.0008958, allocations: 101.4 kB / 0.6821 GB, free: 12.9 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0002869/0.000287, allocations: 12.03 kB / 0.7963 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1579/0.1582, allocations: 106.3 MB / 0.9001 GB, free: 63.87 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.001295/0.1595, allocations: 1.269 MB / 0.9014 GB, free: 62.58 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0008899/0.1604, allocations: 0.7147 MB / 0.9021 GB, free: 61.86 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.181e-05/0.1605, allocations: 0 / 0.9021 GB, free: 61.86 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 7.726e-05/0.1606, allocations: 11.88 kB / 0.9021 GB, free: 61.85 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 4.486e-05/0.1606, allocations: 15.95 kB / 0.9021 GB, free: 61.83 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003144/0.161, allocations: 95.7 kB / 0.9022 GB, free: 61.74 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0001112/0.1611, allocations: 87.81 kB / 0.9023 GB, free: 61.65 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 9.625e-05/0.1612, allocations: 29.05 kB / 0.9023 GB, free: 61.62 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 5.989e-05/0.1612, allocations: 43.84 kB / 0.9024 GB, free: 61.58 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 5.927e-05/0.1613, allocations: 51.75 kB / 0.9024 GB, free: 61.53 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 1.492e-05/0.1613, allocations: 4 kB / 0.9024 GB, free: 61.53 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 7.956e-05/0.1614, allocations: 39.97 kB / 0.9024 GB, free: 61.49 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 3.416e-05/0.1615, allocations: 23.91 kB / 0.9025 GB, free: 61.46 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 3.017e-05/0.1615, allocations: 45.64 kB / 0.9025 GB, free: 61.41 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.000121/0.1616, allocations: 107.7 kB / 0.9026 GB, free: 61.31 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 2.375e-06/0.1617, allocations: 0 / 0.9026 GB, free: 61.31 MB / 0.6042 GB Notification: Performance of FrontEnd: time 2.003e-06/0.1617, allocations: 4 kB / 0.9026 GB, free: 61.3 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 3.607e-06/0.1617, allocations: 0 / 0.9026 GB, free: 61.3 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.0005903/0.1623, allocations: 0.5313 MB / 0.9031 GB, free: 60.71 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.016e-05/0.1623, allocations: 8.031 kB / 0.9031 GB, free: 60.7 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.313e-05/0.1623, allocations: 38.55 kB / 0.9032 GB, free: 60.65 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.797e-05/0.1624, allocations: 23.77 kB / 0.9032 GB, free: 60.63 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001437/0.1625, allocations: 218.8 kB / 0.9034 GB, free: 60.38 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.15e-05/0.1626, allocations: 4 kB / 0.9034 GB, free: 60.37 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.552e-05/0.1626, allocations: 12 kB / 0.9034 GB, free: 60.36 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002556/0.1628, allocations: 137.3 kB / 0.9036 GB, free: 60.21 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.434e-06/0.1628, allocations: 0 / 0.9036 GB, free: 60.21 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.315e-05/0.1629, allocations: 0 / 0.9036 GB, free: 60.21 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.729e-06/0.1629, allocations: 11.94 kB / 0.9036 GB, free: 60.2 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000226/0.1631, allocations: 79.88 kB / 0.9037 GB, free: 60.12 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000482/0.1636, allocations: 468.8 kB / 0.9041 GB, free: 59.61 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000164/0.1638, allocations: 97.11 kB / 0.9042 GB, free: 59.5 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 2.037e-05/0.1638, allocations: 0 / 0.9042 GB, free: 59.5 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002582/0.1641, allocations: 157.1 kB / 0.9043 GB, free: 59.33 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=12): time 1.272e-06/0.1641, allocations: 0 / 0.9043 GB, free: 59.33 MB / 0.6042 GB Notification: Performance of matching and sorting (n=12): time 0.0004826/0.1646, allocations: 209.3 kB / 0.9045 GB, free: 59.12 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.561e-05/0.1646, allocations: 89.09 kB / 0.9046 GB, free: 59.01 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.643e-05/0.1647, allocations: 158.9 kB / 0.9048 GB, free: 58.85 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.837e-05/0.1647, allocations: 33.7 kB / 0.9048 GB, free: 58.81 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 3.953e-05/0.1648, allocations: 116.2 kB / 0.9049 GB, free: 58.69 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 2.426e-05/0.1648, allocations: 23.7 kB / 0.9049 GB, free: 58.67 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.38e-06/0.1648, allocations: 3.938 kB / 0.9049 GB, free: 58.66 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 4.191e-05/0.1649, allocations: 326.8 kB / 0.9053 GB, free: 58.34 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001203/0.165, allocations: 47.97 kB / 0.9053 GB, free: 58.29 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001423/0.1651, allocations: 123.8 kB / 0.9054 GB, free: 58.13 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001282/0.1653, allocations: 55.91 kB / 0.9055 GB, free: 58.08 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.746e-06/0.1653, allocations: 4 kB / 0.9055 GB, free: 58.07 MB / 0.6042 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003142/0.1656, allocations: 181.4 kB / 0.9057 GB, free: 57.89 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.25e-05/0.1656, allocations: 5.406 kB / 0.9057 GB, free: 57.89 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.841e-06/0.1656, allocations: 7.953 kB / 0.9057 GB, free: 57.88 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.339e-05/0.1656, allocations: 3.984 kB / 0.9057 GB, free: 57.88 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.794e-05/0.1657, allocations: 19.98 kB / 0.9057 GB, free: 57.86 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.164e-06/0.1658, allocations: 8.094 kB / 0.9057 GB, free: 57.85 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.176e-05/0.1659, allocations: 27.92 kB / 0.9057 GB, free: 57.82 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.507e-06/0.1659, allocations: 4 kB / 0.9057 GB, free: 57.82 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 ($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 7.408e-05/0.166, allocations: 125.8 kB / 0.9058 GB, free: 57.68 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.045e-05/0.166, allocations: 15.81 kB / 0.9059 GB, free: 57.67 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.884e-05/0.166, allocations: 25.39 kB / 0.9059 GB, free: 57.64 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.985e-06/0.166, allocations: 3.953 kB / 0.9059 GB, free: 57.64 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.166, allocations: 0 / 0.9059 GB, free: 57.64 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.867e-06/0.1661, allocations: 8 kB / 0.9059 GB, free: 57.63 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005295/0.1666, allocations: 0.545 MB / 0.9064 GB, free: 57.03 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.544e-06/0.1666, allocations: 3.953 kB / 0.9064 GB, free: 57.03 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.904e-05/0.1667, allocations: 15.98 kB / 0.9064 GB, free: 57.01 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.216e-06/0.1667, allocations: 3.984 kB / 0.9065 GB, free: 57.01 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.137e-05/0.1667, allocations: 15.92 kB / 0.9065 GB, free: 56.99 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.402e-06/0.1667, allocations: 0 / 0.9065 GB, free: 56.99 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.363e-06/0.1667, allocations: 3.984 kB / 0.9065 GB, free: 56.99 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003207/0.167, allocations: 344.2 kB / 0.9068 GB, free: 56.63 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 2.265e-05/0.1671, allocations: 92.92 kB / 0.9069 GB, free: 56.52 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.935e-05/0.1671, allocations: 0 / 0.9069 GB, free: 56.52 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001671/0.1673, allocations: 27.97 kB / 0.9069 GB, free: 56.49 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.161e-05/0.1673, allocations: 7.984 kB / 0.9069 GB, free: 56.48 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.979e-05/0.1674, allocations: 8 kB / 0.9069 GB, free: 56.48 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 5.18e-05/0.1674, allocations: 115.2 kB / 0.907 GB, free: 56.36 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.3e-07/0.1674, allocations: 7.938 kB / 0.907 GB, free: 56.36 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0003207/0.1677, allocations: 47.92 kB / 0.9071 GB, free: 56.31 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 (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.0007552/0.1685, allocations: 1.042 MB / 0.9081 GB, free: 55.27 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0003152/0.1688, allocations: 124 kB / 0.9082 GB, free: 55.15 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.1688, allocations: 0 / 0.9082 GB, free: 55.15 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0001438/0.169, allocations: 59.91 kB / 0.9083 GB, free: 55.09 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002547/0.1693, allocations: 22.83 kB / 0.9083 GB, free: 55.07 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001309/0.1706, allocations: 2.048 MB / 0.9103 GB, free: 52.93 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001257/0.1707, allocations: 0.7199 MB / 0.911 GB, free: 52.19 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 6.287e-05/0.1708, allocations: 24.53 kB / 0.911 GB, free: 52.16 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.93e-05/0.1708, allocations: 35.48 kB / 0.9111 GB, free: 52.13 MB / 0.6042 GB Notification: Performance of SimCode: time 3.2e-07/0.1708, allocations: 0 / 0.9111 GB, free: 52.13 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01615/0.187, allocations: 3.016 MB / 0.914 GB, free: 49.25 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000223/0.1873, allocations: 223.9 kB / 0.9142 GB, free: 49.01 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.55/1.738, allocations: 0 / 0.9142 GB, free: 49.01 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)