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.0008675/0.0008675, allocations: 92.23 kB / 15.36 MB, free: 0.7383 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.005157/0.005158, allocations: 169.9 kB / 16.26 MB, free: 6.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.159/1.159, allocations: 205.4 MB / 222.5 MB, free: 5.555 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.692/1.692, allocations: 292.7 MB / 0.5502 GB, free: 14.45 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.0004567/0.0004567, allocations: 16.61 kB / 0.6744 GB, free: 25.66 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1592/0.1596, allocations: 116.3 MB / 0.788 GB, free: 11.49 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.001368/0.161, allocations: 1.309 MB / 0.7893 GB, free: 10.16 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.00105/0.1621, allocations: 0.7218 MB / 0.79 GB, free: 9.434 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.893e-05/0.1622, allocations: 0 / 0.79 GB, free: 9.434 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 7.233e-05/0.1622, allocations: 7.922 kB / 0.79 GB, free: 9.426 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 5.082e-05/0.1623, allocations: 19.8 kB / 0.79 GB, free: 9.406 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.0003312/0.1626, allocations: 91.84 kB / 0.7901 GB, free: 9.316 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001441/0.1628, allocations: 131.5 kB / 0.7902 GB, free: 9.188 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001028/0.1629, allocations: 33.11 kB / 0.7902 GB, free: 9.156 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 6.773e-05/0.163, allocations: 47.77 kB / 0.7903 GB, free: 9.109 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 6.615e-05/0.163, allocations: 47.77 kB / 0.7903 GB, free: 9.062 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.533e-05/0.1631, allocations: 4 kB / 0.7903 GB, free: 9.059 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001011/0.1632, allocations: 51.95 kB / 0.7904 GB, free: 9.008 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 3.906e-05/0.1632, allocations: 23.92 kB / 0.7904 GB, free: 8.984 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 6.192e-05/0.1633, allocations: 85.34 kB / 0.7905 GB, free: 8.895 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001726/0.1635, allocations: 151.7 kB / 0.7906 GB, free: 8.746 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 2.514e-06/0.1635, allocations: 4 kB / 0.7906 GB, free: 8.742 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.364e-06/0.1635, allocations: 0 / 0.7906 GB, free: 8.742 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 3.938e-06/0.1635, allocations: 3.938 kB / 0.7906 GB, free: 8.738 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.0006405/0.1641, allocations: 0.5235 MB / 0.7912 GB, free: 8.148 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.16e-05/0.1642, allocations: 8.031 kB / 0.7912 GB, free: 8.141 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.963e-05/0.1642, allocations: 42.73 kB / 0.7912 GB, free: 8.09 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.795e-05/0.1643, allocations: 16.75 kB / 0.7912 GB, free: 8.074 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001605/0.1644, allocations: 220 kB / 0.7914 GB, free: 7.82 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.269e-05/0.1644, allocations: 8.375 kB / 0.7914 GB, free: 7.812 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.474e-05/0.1645, allocations: 12.25 kB / 0.7914 GB, free: 7.801 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002722/0.1647, allocations: 151.4 kB / 0.7916 GB, free: 7.641 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.042e-06/0.1648, allocations: 0 / 0.7916 GB, free: 7.641 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.168e-05/0.1648, allocations: 0 / 0.7916 GB, free: 7.641 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.039e-06/0.1648, allocations: 8 kB / 0.7916 GB, free: 7.633 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002379/0.165, allocations: 79.94 kB / 0.7917 GB, free: 7.555 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005295/0.1656, allocations: 472.7 kB / 0.7921 GB, free: 7.039 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001837/0.1658, allocations: 93.17 kB / 0.7922 GB, free: 6.93 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001276/0.1659, allocations: 53.75 kB / 0.7923 GB, free: 6.871 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.07e-05/0.1659, allocations: 11.98 kB / 0.7923 GB, free: 6.859 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002776/0.1662, allocations: 145 kB / 0.7924 GB, free: 6.699 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=12): time 1.102e-06/0.1662, allocations: 4 kB / 0.7924 GB, free: 6.695 MB / 0.6075 GB Notification: Performance of matching and sorting (n=12): time 0.0005156/0.1667, allocations: 213.3 kB / 0.7926 GB, free: 6.48 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.97e-05/0.1668, allocations: 85.11 kB / 0.7927 GB, free: 6.379 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001113/0.1669, allocations: 163.3 kB / 0.7929 GB, free: 6.211 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.188e-05/0.1669, allocations: 33.69 kB / 0.7929 GB, free: 6.172 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 4.794e-05/0.167, allocations: 104.4 kB / 0.793 GB, free: 6.066 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.998e-05/0.167, allocations: 31.56 kB / 0.793 GB, free: 6.035 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.949e-05/0.1671, allocations: 21.7 kB / 0.793 GB, free: 6.008 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 8.374e-05/0.1671, allocations: 326.9 kB / 0.7934 GB, free: 5.68 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000124/0.1673, allocations: 47.91 kB / 0.7934 GB, free: 5.633 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001694/0.1675, allocations: 128.2 kB / 0.7935 GB, free: 5.473 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002838/0.1677, allocations: 163.5 kB / 0.7937 GB, free: 5.285 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.1678, allocations: 0 / 0.7937 GB, free: 5.285 MB / 0.6075 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003385/0.1681, allocations: 177.3 kB / 0.7938 GB, free: 5.105 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.447e-05/0.1681, allocations: 8 kB / 0.7939 GB, free: 5.098 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.188e-06/0.1681, allocations: 0 / 0.7939 GB, free: 5.098 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.024e-05/0.1681, allocations: 4 kB / 0.7939 GB, free: 5.094 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.802e-05/0.1682, allocations: 24.27 kB / 0.7939 GB, free: 5.07 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.871e-06/0.1683, allocations: 3.938 kB / 0.7939 GB, free: 5.066 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.581e-05/0.1684, allocations: 27.83 kB / 0.7939 GB, free: 5.039 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.959e-06/0.1684, allocations: 8 kB / 0.7939 GB, free: 5.031 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 (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 8.708e-05/0.1685, allocations: 130.5 kB / 0.794 GB, free: 4.895 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.06e-05/0.1685, allocations: 8.281 kB / 0.7941 GB, free: 4.887 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.951e-05/0.1685, allocations: 25.39 kB / 0.7941 GB, free: 4.859 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.944e-06/0.1685, allocations: 4 kB / 0.7941 GB, free: 4.855 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.106e-06/0.1686, allocations: 0 / 0.7941 GB, free: 4.855 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.512e-06/0.1686, allocations: 7.875 kB / 0.7941 GB, free: 4.848 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005996/0.1692, allocations: 0.5524 MB / 0.7946 GB, free: 4.238 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.537e-06/0.1692, allocations: 4 kB / 0.7946 GB, free: 4.234 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.082e-05/0.1693, allocations: 19.98 kB / 0.7947 GB, free: 4.215 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.412e-06/0.1693, allocations: 7.969 kB / 0.7947 GB, free: 4.207 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.898e-06/0.1693, allocations: 7.938 kB / 0.7947 GB, free: 4.199 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.443e-06/0.1693, allocations: 0 / 0.7947 GB, free: 4.199 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.1693, allocations: 4 kB / 0.7947 GB, free: 4.195 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003779/0.1697, allocations: 338.5 kB / 0.795 GB, free: 3.848 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 3.518e-05/0.1697, allocations: 92.94 kB / 0.7951 GB, free: 3.738 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.757e-05/0.1697, allocations: 4 kB / 0.7951 GB, free: 3.734 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001656/0.1699, allocations: 19.98 kB / 0.7951 GB, free: 3.715 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.405e-05/0.17, allocations: 7.984 kB / 0.7951 GB, free: 3.707 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.762e-05/0.17, allocations: 11.98 kB / 0.7951 GB, free: 3.695 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 7.216e-05/0.1701, allocations: 127.2 kB / 0.7952 GB, free: 3.57 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.313e-06/0.1701, allocations: 0 / 0.7952 GB, free: 3.57 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002989/0.1704, allocations: 43.84 kB / 0.7953 GB, free: 3.527 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 (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.0007923/0.1712, allocations: 0.9592 MB / 0.7962 GB, free: 2.582 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0003194/0.1715, allocations: 124 kB / 0.7963 GB, free: 2.461 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 3.517e-06/0.1715, allocations: 4 kB / 0.7963 GB, free: 2.457 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001488/0.1717, allocations: 59.84 kB / 0.7964 GB, free: 2.398 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003244/0.172, allocations: 28.36 kB / 0.7964 GB, free: 2.371 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001818/0.1738, allocations: 1.958 MB / 0.7983 GB, free: 288 kB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002144/0.1741, allocations: 0.716 MB / 0.799 GB, free: 15.54 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 5.944e-05/0.1741, allocations: 24.53 kB / 0.7991 GB, free: 15.52 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.633e-05/0.1742, allocations: 31.42 kB / 0.7991 GB, free: 15.49 MB / 0.6231 GB Notification: Performance of SimCode: time 5.81e-07/0.1742, allocations: 0 / 0.7991 GB, free: 15.49 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.893/2.067, allocations: 3.041 MB / 0.8021 GB, free: 12.56 MB / 0.6231 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003109/2.067, allocations: 232.7 kB / 0.8023 GB, free: 12.31 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.946/4.013, allocations: 0 / 0.8023 GB, free: 12.31 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/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)