Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.IO.SignalExchange.Examples.WeatherStation.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Utilities.IO.SignalExchange.Examples.WeatherStation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.IO.SignalExchange.Examples.WeatherStation") translateModel(BuildingSystems.Utilities.IO.SignalExchange.Examples.WeatherStation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.IO.SignalExchange.Examples.WeatherStation") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001354/0.001354, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001704/0.001704, allocations: 194 kB / 16.14 MB, free: 6.711 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.308/1.308, allocations: 222.9 MB / 239.8 MB, free: 4.605 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00214/0.00214, allocations: 270.6 kB / 290.2 MB, free: 2.219 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9393/0.9393, allocations: 169.2 MB / 0.4977 GB, free: 14.19 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001584/0.001584, allocations: 97.81 kB / 0.5945 GB, free: 28.27 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1659/0.1675, allocations: 86.98 MB / 0.6794 GB, free: 1.223 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.IO.SignalExchange.Examples.WeatherStation): time 0.006762/0.1743, allocations: 5.098 MB / 0.6844 GB, free: 12.11 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.4498/0.6242, allocations: 148.5 MB / 0.8294 GB, free: 1.082 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008437/0.625, allocations: 22.06 kB / 0.8295 GB, free: 1.074 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0006395/0.6257, allocations: 287.2 kB / 0.8297 GB, free: 0.9805 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.00119/0.6269, allocations: 449 kB / 0.8302 GB, free: 0.875 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.001437/0.6284, allocations: 0.7492 MB / 0.8309 GB, free: 0.8359 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0009867/0.6294, allocations: 1.372 MB / 0.8322 GB, free: 0.5898 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008499/0.6302, allocations: 0.7939 MB / 0.833 GB, free: 404 kB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004631/0.6307, allocations: 460.6 kB / 0.8334 GB, free: 288 kB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004048/0.6311, allocations: 0.5148 MB / 0.8339 GB, free: 140 kB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0001336/0.6312, allocations: 63.19 kB / 0.834 GB, free: 140 kB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007244/0.632, allocations: 415.3 kB / 0.8344 GB, free: 120 kB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0002153/0.6322, allocations: 264.6 kB / 0.8347 GB, free: 64 kB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0004405/0.6327, allocations: 0.5858 MB / 0.8352 GB, free: 15.84 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.001337/0.634, allocations: 1.771 MB / 0.837 GB, free: 15.55 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.634, allocations: 0 / 0.837 GB, free: 15.55 MB / 0.5762 GB Notification: Performance of FrontEnd: time 8.02e-07/0.634, allocations: 0 / 0.837 GB, free: 15.55 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.498e-05/0.634, allocations: 1.25 kB / 0.837 GB, free: 15.55 MB / 0.5762 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 252 * Number of variables: 252 Notification: Performance of Generate backend data structure: time 0.002634/0.6367, allocations: 1.676 MB / 0.8386 GB, free: 14.45 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.264e-05/0.6367, allocations: 8.938 kB / 0.8386 GB, free: 14.45 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009239/0.6376, allocations: 218.5 kB / 0.8388 GB, free: 14.35 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001082/0.6387, allocations: 0.8845 MB / 0.8397 GB, free: 13.82 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.092e-05/0.6388, allocations: 74.31 kB / 0.8397 GB, free: 13.82 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001058/0.6389, allocations: 97.86 kB / 0.8398 GB, free: 13.81 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001648/0.6406, allocations: 1.04 MB / 0.8409 GB, free: 13.47 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.969e-05/0.6406, allocations: 1.125 kB / 0.8409 GB, free: 13.47 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.606e-05/0.6407, allocations: 41.34 kB / 0.8409 GB, free: 13.47 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.89e-05/0.6407, allocations: 29.25 kB / 0.8409 GB, free: 13.46 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001736/0.6425, allocations: 1.165 MB / 0.8421 GB, free: 13.17 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003871/0.6463, allocations: 2.83 MB / 0.8448 GB, free: 11.29 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001357/0.6477, allocations: 0.8001 MB / 0.8456 GB, free: 10.88 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005053/0.6482, allocations: 299 kB / 0.8459 GB, free: 10.73 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 6.849e-05/0.6483, allocations: 32.52 kB / 0.8459 GB, free: 10.73 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008331/0.6492, allocations: 499 kB / 0.8464 GB, free: 10.41 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=78): time 1.984e-06/0.6492, allocations: 0 / 0.8464 GB, free: 10.41 MB / 0.5762 GB Notification: Performance of matching and sorting (n=78): time 0.002972/0.6521, allocations: 1.202 MB / 0.8476 GB, free: 9.754 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.021e-05/0.6522, allocations: 188.7 kB / 0.8478 GB, free: 9.531 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009289/0.6532, allocations: 0.8058 MB / 0.8485 GB, free: 9.062 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 6.493e-05/0.6533, allocations: 40.14 kB / 0.8486 GB, free: 9.02 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003537/0.6536, allocations: 0.5087 MB / 0.8491 GB, free: 8.566 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001733/0.6538, allocations: 244 kB / 0.8493 GB, free: 8.363 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000225/0.654, allocations: 170.9 kB / 0.8495 GB, free: 8.258 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001099/0.6541, allocations: 341.3 kB / 0.8498 GB, free: 7.926 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004733/0.6546, allocations: 260.5 kB / 0.85 GB, free: 7.797 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005621/0.6552, allocations: 359.2 kB / 0.8504 GB, free: 7.594 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001028/0.6562, allocations: 0.6053 MB / 0.851 GB, free: 7.27 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.126e-06/0.6562, allocations: 0 / 0.851 GB, free: 7.27 MB / 0.5762 GB Notification: Performance of matching and sorting (n=94) (initialization): time 0.001863/0.6581, allocations: 0.8563 MB / 0.8518 GB, free: 6.828 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.808e-05/0.6581, allocations: 9.281 kB / 0.8518 GB, free: 6.824 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.414e-06/0.6582, allocations: 0 / 0.8518 GB, free: 6.824 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005815/0.6587, allocations: 82.03 kB / 0.8519 GB, free: 6.785 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006005/0.6593, allocations: 160.1 kB / 0.8521 GB, free: 6.742 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001955/0.6613, allocations: 1.539 MB / 0.8536 GB, free: 5.234 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006982/0.662, allocations: 98.2 kB / 0.8537 GB, free: 5.172 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.64e-05/0.6621, allocations: 38.56 kB / 0.8537 GB, free: 5.156 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 17 (weaDat.conTim.canRepeatWeatherFile,weaDat.conTimMin.canRepeatWeatherFile,weaDat.decAng.tNext,$PRE.weaDat.decAng.tNext,weaDat.eqnTim.tNext,$PRE.weaDat.eqnTim.tNext,weaDat.conTim.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTimMin.tNext,weaDat.locTim.tNext,$PRE.weaDat.locTim.tNext,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (92): * Single equations (assignments): 91 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0004549/0.6626, allocations: 288.4 kB / 0.854 GB, free: 4.938 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001624/0.6627, allocations: 106.6 kB / 0.8541 GB, free: 4.879 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002221/0.665, allocations: 1.08 MB / 0.8551 GB, free: 4.277 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.352e-06/0.665, allocations: 7.906 kB / 0.8551 GB, free: 4.277 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.264e-06/0.665, allocations: 0 / 0.8551 GB, free: 4.277 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.857e-06/0.665, allocations: 6.141 kB / 0.8551 GB, free: 4.273 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001024/0.666, allocations: 1.013 MB / 0.8561 GB, free: 3.539 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.116e-06/0.666, allocations: 0 / 0.8561 GB, free: 3.539 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005222/0.6666, allocations: 148.3 kB / 0.8563 GB, free: 3.5 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004834/0.6671, allocations: 79.56 kB / 0.8563 GB, free: 3.461 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.395e-05/0.6671, allocations: 30.06 kB / 0.8564 GB, free: 3.441 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0017/0.6688, allocations: 1.541 MB / 0.8579 GB, free: 1.934 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.825e-06/0.6688, allocations: 3.938 kB / 0.8579 GB, free: 1.93 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0018/0.6706, allocations: 0.9447 MB / 0.8588 GB, free: 1.426 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003457/0.671, allocations: 294.1 kB / 0.8591 GB, free: 1.168 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001293/0.6711, allocations: 20.62 kB / 0.8591 GB, free: 1.156 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005778/0.6717, allocations: 73.25 kB / 0.8592 GB, free: 1.121 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001442/0.6719, allocations: 69.73 kB / 0.8592 GB, free: 1.082 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.496e-05/0.672, allocations: 38.41 kB / 0.8593 GB, free: 1.066 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0006258/0.6726, allocations: 0.5591 MB / 0.8598 GB, free: 0.7305 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.5e-07/0.6726, allocations: 0 / 0.8598 GB, free: 0.7305 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0007644/0.6734, allocations: 324.9 kB / 0.8601 GB, free: 0.6406 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,weaDat.locTim.tNext,weaDat.conTimMin.tNext,weaDat.conTim.tNext,weaDat.eqnTim.tNext,weaDat.decAng.tNext) * Number of discrete states: 5 (weaDat.locTim.tNext,weaDat.conTimMin.tNext,weaDat.conTim.tNext,weaDat.eqnTim.tNext,weaDat.decAng.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (89): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001259/0.6746, allocations: 0.6037 MB / 0.8607 GB, free: 368 kB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.001499/0.6761, allocations: 0.8237 MB / 0.8615 GB, free: 15.93 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 4.258e-06/0.6762, allocations: 2.719 kB / 0.8615 GB, free: 15.93 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0008374/0.677, allocations: 0.5138 MB / 0.862 GB, free: 15.63 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001376/0.6784, allocations: 418.7 kB / 0.8624 GB, free: 15.42 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003984/0.6824, allocations: 2.532 MB / 0.8649 GB, free: 13.73 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005882/0.683, allocations: 1.097 MB / 0.866 GB, free: 12.86 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0008349/0.6838, allocations: 280.6 kB / 0.8662 GB, free: 12.71 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002582/0.6841, allocations: 117.2 kB / 0.8664 GB, free: 12.68 MB / 0.5919 GB Notification: Performance of SimCode: time 4.01e-07/0.6841, allocations: 7.938 kB / 0.8664 GB, free: 12.67 MB / 0.5919 GB Notification: Performance of Templates: time 0.02633/0.7104, allocations: 16.28 MB / 0.8823 GB, free: 60 kB / 0.5919 GB make -j1 -f BuildingSystems_BuildingSystems.Utilities.IO.SignalExchange.Examples.WeatherStation.makefile (rm -f BuildingSystems_BuildingSystems.Utilities.IO.SignalExchange.Examples.WeatherStation.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.IO.SignalExchange.Examples.WeatherStation.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.IO.SignalExchange.Examples.WeatherStation.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.IO.SignalExchange.Examples.WeatherStation.sim & ./BuildingSystems_BuildingSystems.Utilities.IO.SignalExchange.Examples.WeatherStation -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.IO.SignalExchange.Examples.WeatherStation.pipe 2>&1)