Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_3.0.0_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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: translateModel(Buildings.Utilities.IO.Files.Examples.Printer,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Utilities.IO.Files.Examples.Printer") translateModel(Buildings.Utilities.IO.Files.Examples.Printer,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Utilities.IO.Files.Examples.Printer") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001381/0.001381, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001453/0.001453, allocations: 191.9 kB / 16.14 MB, free: 6.688 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.469/1.469, allocations: 222.9 MB / 239.8 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.888/2.888, allocations: 472.6 MB / 0.7447 GB, free: 4.969 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001435/0.001435, allocations: 57.91 kB / 0.9113 GB, free: 33.65 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3293/0.3307, allocations: 159.9 MB / 1.067 GB, free: 10.96 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.003228/0.334, allocations: 1.648 MB / 1.069 GB, free: 9.301 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001419/0.3354, allocations: 0.6974 MB / 1.07 GB, free: 8.598 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.002e-05/0.3356, allocations: 4 kB / 1.07 GB, free: 8.594 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001134/0.3357, allocations: 7.875 kB / 1.07 GB, free: 8.586 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 6.044e-05/0.3358, allocations: 19.84 kB / 1.07 GB, free: 8.566 MB / 0.8262 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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.0004948/0.3363, allocations: 95.84 kB / 1.07 GB, free: 8.473 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001949/0.3365, allocations: 127.5 kB / 1.07 GB, free: 8.348 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001486/0.3367, allocations: 40.88 kB / 1.07 GB, free: 8.309 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000109/0.3368, allocations: 47.78 kB / 1.07 GB, free: 8.262 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 9.399e-05/0.3369, allocations: 63.73 kB / 1.07 GB, free: 8.199 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.596e-05/0.3369, allocations: 11.94 kB / 1.07 GB, free: 8.188 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001273/0.337, allocations: 39.97 kB / 1.07 GB, free: 8.148 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 5.442e-05/0.3371, allocations: 27.91 kB / 1.07 GB, free: 8.121 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 8.36e-05/0.3372, allocations: 59.64 kB / 1.07 GB, free: 8.062 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.000241/0.3374, allocations: 155.8 kB / 1.07 GB, free: 7.91 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.52e-06/0.3374, allocations: 4 kB / 1.07 GB, free: 7.906 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.845e-06/0.3375, allocations: 4 kB / 1.07 GB, free: 7.902 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.541e-06/0.3375, allocations: 0 / 1.07 GB, free: 7.902 MB / 0.8262 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.0009046/0.3384, allocations: 0.5428 MB / 1.071 GB, free: 7.293 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.814e-05/0.3384, allocations: 16.03 kB / 1.071 GB, free: 7.277 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.677e-05/0.3385, allocations: 12.84 kB / 1.071 GB, free: 7.266 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002176/0.3387, allocations: 216 kB / 1.071 GB, free: 7.016 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.325e-05/0.3387, allocations: 12.31 kB / 1.071 GB, free: 7.004 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.171e-05/0.3388, allocations: 4.375 kB / 1.071 GB, free: 7 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003225/0.3391, allocations: 135.1 kB / 1.071 GB, free: 6.859 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.229e-05/0.3391, allocations: 0 / 1.071 GB, free: 6.859 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.717e-05/0.3391, allocations: 11.94 kB / 1.071 GB, free: 6.848 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.24e-06/0.3392, allocations: 4 kB / 1.071 GB, free: 6.844 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002645/0.3394, allocations: 71.88 kB / 1.071 GB, free: 6.773 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006474/0.3401, allocations: 460.7 kB / 1.072 GB, free: 6.27 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002076/0.3403, allocations: 85.12 kB / 1.072 GB, free: 6.168 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001363/0.3404, allocations: 49.81 kB / 1.072 GB, free: 6.113 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.883e-05/0.3405, allocations: 7.938 kB / 1.072 GB, free: 6.105 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003124/0.3408, allocations: 149 kB / 1.072 GB, free: 5.941 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=12): time 1.443e-06/0.3408, allocations: 0 / 1.072 GB, free: 5.941 MB / 0.8262 GB Notification: Performance of matching and sorting (n=12): time 0.0005847/0.3414, allocations: 189.3 kB / 1.072 GB, free: 5.75 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.634e-05/0.3415, allocations: 81.11 kB / 1.072 GB, free: 5.652 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001413/0.3416, allocations: 168.1 kB / 1.073 GB, free: 5.48 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.488e-05/0.3416, allocations: 25.7 kB / 1.073 GB, free: 5.449 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 6.822e-05/0.3417, allocations: 108.4 kB / 1.073 GB, free: 5.336 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.567e-05/0.3418, allocations: 23.62 kB / 1.073 GB, free: 5.312 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.71e-05/0.3418, allocations: 37.7 kB / 1.073 GB, free: 5.27 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001094/0.3419, allocations: 334.7 kB / 1.073 GB, free: 4.934 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001408/0.3421, allocations: 47.89 kB / 1.073 GB, free: 4.887 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001901/0.3423, allocations: 114.6 kB / 1.073 GB, free: 4.738 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002931/0.3426, allocations: 143.5 kB / 1.073 GB, free: 4.57 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.16e-06/0.3426, allocations: 4 kB / 1.073 GB, free: 4.566 MB / 0.8262 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003745/0.343, allocations: 165.2 kB / 1.074 GB, free: 4.398 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.802e-05/0.343, allocations: 11.98 kB / 1.074 GB, free: 4.387 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.013e-06/0.343, allocations: 0 / 1.074 GB, free: 4.387 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.039e-05/0.3431, allocations: 8.031 kB / 1.074 GB, free: 4.379 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001211/0.3432, allocations: 19.92 kB / 1.074 GB, free: 4.359 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.198e-05/0.3432, allocations: 4 kB / 1.074 GB, free: 4.355 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001118/0.3433, allocations: 24.2 kB / 1.074 GB, free: 4.332 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.407e-05/0.3434, allocations: 4 kB / 1.074 GB, free: 4.328 MB / 0.8262 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 0.0001164/0.3435, allocations: 130.4 kB / 1.074 GB, free: 4.191 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.11e-05/0.3435, allocations: 15.89 kB / 1.074 GB, free: 4.176 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.165e-05/0.3436, allocations: 17.41 kB / 1.074 GB, free: 4.156 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.755e-06/0.3436, allocations: 0 / 1.074 GB, free: 4.156 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.424e-06/0.3436, allocations: 4 kB / 1.074 GB, free: 4.152 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.541e-06/0.3436, allocations: 3.938 kB / 1.074 GB, free: 4.148 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007222/0.3443, allocations: 0.5331 MB / 1.074 GB, free: 3.559 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.475e-06/0.3443, allocations: 0 / 1.074 GB, free: 3.559 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.686e-05/0.3444, allocations: 12.08 kB / 1.074 GB, free: 3.547 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.198e-06/0.3444, allocations: 7.875 kB / 1.074 GB, free: 3.539 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.765e-05/0.3445, allocations: 11.98 kB / 1.074 GB, free: 3.527 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.535e-06/0.3445, allocations: 0 / 1.074 GB, free: 3.527 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.3445, allocations: 4 kB / 1.074 GB, free: 3.523 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000429/0.3449, allocations: 322.4 kB / 1.075 GB, free: 3.191 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.835e-05/0.345, allocations: 92.95 kB / 1.075 GB, free: 3.082 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.532e-05/0.345, allocations: 3.938 kB / 1.075 GB, free: 3.078 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001926/0.3452, allocations: 23.97 kB / 1.075 GB, free: 3.055 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.659e-05/0.3453, allocations: 11.98 kB / 1.075 GB, free: 3.043 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.449e-05/0.3453, allocations: 8 kB / 1.075 GB, free: 3.035 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 8.941e-05/0.3454, allocations: 115.2 kB / 1.075 GB, free: 2.922 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3454, allocations: 0 / 1.075 GB, free: 2.922 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003677/0.3458, allocations: 43.89 kB / 1.075 GB, free: 2.879 MB / 0.8262 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.0004615/0.3462, allocations: 206.3 kB / 1.075 GB, free: 2.711 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003593/0.3466, allocations: 103.8 kB / 1.075 GB, free: 2.609 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 4.769e-06/0.3466, allocations: 4 kB / 1.075 GB, free: 2.605 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001659/0.3468, allocations: 56.45 kB / 1.075 GB, free: 2.551 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000382/0.3472, allocations: 20.08 kB / 1.075 GB, free: 2.531 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005402/0.3477, allocations: 281.6 kB / 1.076 GB, free: 2.23 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003053/0.3481, allocations: 0.7198 MB / 1.076 GB, free: 1.484 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 7.931e-05/0.3482, allocations: 24.47 kB / 1.076 GB, free: 1.457 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.427e-05/0.3482, allocations: 19.44 kB / 1.076 GB, free: 1.438 MB / 0.8262 GB Notification: Performance of SimCode: time 4.1e-07/0.3482, allocations: 0 / 1.076 GB, free: 1.438 MB / 0.8262 GB Notification: Performance of Templates: time 0.005242/0.3534, allocations: 1.646 MB / 1.078 GB, free: 15.8 MB / 0.8419 GB make -j1 -f Buildings_3.0.0_Buildings.Utilities.IO.Files.Examples.Printer.makefile (rm -f Buildings_3.0.0_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; mkfifo Buildings_3.0.0_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; head -c 1048576 < Buildings_3.0.0_Buildings.Utilities.IO.Files.Examples.Printer.pipe >> ../files/Buildings_3.0.0_Buildings.Utilities.IO.Files.Examples.Printer.sim & ./Buildings_3.0.0_Buildings.Utilities.IO.Files.Examples.Printer -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_3.0.0_Buildings.Utilities.IO.Files.Examples.Printer.pipe 2>&1)