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/BuildingSystems 2.0.0-master/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/ModelicaServices 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) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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/BuildingSystems 2.0.0-master/package.mo): time 0.7679/0.7679, allocations: 143.4 MB / 159.2 MB, free: 4.93 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001504/0.001505, allocations: 185.4 kB / 191.9 MB, free: 5.719 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.386/1.386, allocations: 222.9 MB / 447.3 MB, free: 5.852 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001056/0.001056, allocations: 115.7 kB / 0.517 GB, free: 3.707 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001827/0.001827, allocations: 269.2 kB / 0.5973 GB, free: 49.38 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001394/0.001394, allocations: 83.89 kB / 0.6885 GB, free: 3.836 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3027/0.3041, allocations: 81.28 MB / 0.7679 GB, free: 27.67 MB / 458.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.IO.SignalExchange.Examples.WeatherStation): time 0.005053/0.3092, allocations: 4.871 MB / 0.7727 GB, free: 22.79 MB / 458.7 MB Notification: Performance of NFInst.instExpressions: time 0.5101/0.8193, allocations: 148.4 MB / 0.9176 GB, free: 15.83 MB / 0.573 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009797/0.8204, allocations: 23.59 kB / 0.9176 GB, free: 15.83 MB / 0.573 GB Notification: Performance of NFTyping.typeComponents: time 0.000723/0.8211, allocations: 278.9 kB / 0.9179 GB, free: 15.83 MB / 0.573 GB Notification: Performance of NFTyping.typeBindings: time 0.001459/0.8226, allocations: 413.2 kB / 0.9183 GB, free: 15.82 MB / 0.573 GB Notification: Performance of NFTyping.typeClassSections: time 0.001743/0.8243, allocations: 0.7062 MB / 0.919 GB, free: 15.82 MB / 0.573 GB Notification: Performance of NFFlatten.flatten: time 0.00147/0.8258, allocations: 1.276 MB / 0.9202 GB, free: 15.8 MB / 0.573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009738/0.8268, allocations: 0.7914 MB / 0.921 GB, free: 15.61 MB / 0.573 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000652/0.8275, allocations: 425.9 kB / 0.9214 GB, free: 15.61 MB / 0.573 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000519/0.828, allocations: 481.7 kB / 0.9219 GB, free: 15.61 MB / 0.573 GB Notification: Performance of NFPackage.collectConstants: time 0.0001529/0.8282, allocations: 58.28 kB / 0.9219 GB, free: 15.61 MB / 0.573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001018/0.8292, allocations: 407.3 kB / 0.9223 GB, free: 15.6 MB / 0.573 GB Notification: Performance of NFScalarize.scalarize: time 0.0002992/0.8295, allocations: 245.1 kB / 0.9225 GB, free: 15.6 MB / 0.573 GB Notification: Performance of NFVerifyModel.verify: time 0.0006463/0.8302, allocations: 0.5378 MB / 0.9231 GB, free: 15.6 MB / 0.573 GB Notification: Performance of NFConvertDAE.convert: time 0.001804/0.832, allocations: 1.656 MB / 0.9247 GB, free: 15.5 MB / 0.573 GB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.832, allocations: 8.75 kB / 0.9247 GB, free: 15.5 MB / 0.573 GB Notification: Performance of FrontEnd: time 1.082e-06/0.832, allocations: 0 / 0.9247 GB, free: 15.5 MB / 0.573 GB Notification: Performance of Transformations before backend: time 2.246e-05/0.832, allocations: 0 / 0.9247 GB, free: 15.5 MB / 0.573 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 239 * Number of variables: 239 Notification: Performance of Generate backend data structure: time 0.002664/0.8347, allocations: 1.572 MB / 0.9262 GB, free: 14.67 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 4.183e-05/0.8347, allocations: 10.27 kB / 0.9262 GB, free: 14.67 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009437/0.8357, allocations: 214.5 kB / 0.9264 GB, free: 14.59 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001207/0.8369, allocations: 0.8512 MB / 0.9273 GB, free: 14.26 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.384e-05/0.837, allocations: 68.34 kB / 0.9273 GB, free: 14.25 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.582e-05/0.8371, allocations: 91.78 kB / 0.9274 GB, free: 14.25 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001481/0.8386, allocations: 0.9667 MB / 0.9284 GB, free: 14.11 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.973e-05/0.8386, allocations: 1.125 kB / 0.9284 GB, free: 14.11 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.769e-05/0.8387, allocations: 40.38 kB / 0.9284 GB, free: 14.11 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.39e-05/0.8387, allocations: 28.47 kB / 0.9284 GB, free: 14.1 MB / 0.573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001619/0.8403, allocations: 1.122 MB / 0.9295 GB, free: 14.09 MB / 0.573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004022/0.8444, allocations: 2.688 MB / 0.9321 GB, free: 13.28 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001137/0.8455, allocations: 0.7057 MB / 0.9328 GB, free: 13.25 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004621/0.846, allocations: 266.2 kB / 0.9331 GB, free: 13.24 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 7.773e-05/0.8461, allocations: 32.3 kB / 0.9331 GB, free: 13.23 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008816/0.847, allocations: 418.9 kB / 0.9335 GB, free: 13.17 MB / 0.573 GB Notification: Performance of pre-optimization done (n=69): time 2.966e-06/0.847, allocations: 0 / 0.9335 GB, free: 13.17 MB / 0.573 GB Notification: Performance of matching and sorting (n=69): time 0.003237/0.8503, allocations: 1.075 MB / 0.9346 GB, free: 12.96 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001226/0.8504, allocations: 188.9 kB / 0.9348 GB, free: 12.74 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001013/0.8514, allocations: 0.7571 MB / 0.9355 GB, free: 12.6 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 7.185e-05/0.8515, allocations: 38.58 kB / 0.9355 GB, free: 12.57 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.000363/0.8519, allocations: 497.6 kB / 0.936 GB, free: 12.37 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001879/0.8521, allocations: 233 kB / 0.9362 GB, free: 12.22 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002069/0.8523, allocations: 142.7 kB / 0.9364 GB, free: 12.2 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0001106/0.8524, allocations: 333.9 kB / 0.9367 GB, free: 11.89 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004246/0.8528, allocations: 231.8 kB / 0.9369 GB, free: 11.89 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005394/0.8534, allocations: 323.8 kB / 0.9372 GB, free: 11.84 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009464/0.8543, allocations: 0.541 MB / 0.9377 GB, free: 11.8 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.346e-06/0.8544, allocations: 0 / 0.9377 GB, free: 11.8 MB / 0.573 GB Notification: Performance of matching and sorting (n=82) (initialization): time 0.001816/0.8562, allocations: 0.7819 MB / 0.9385 GB, free: 11.69 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 2.195e-05/0.8562, allocations: 9.969 kB / 0.9385 GB, free: 11.68 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.826e-06/0.8562, allocations: 2.344 kB / 0.9385 GB, free: 11.68 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005862/0.8568, allocations: 87.73 kB / 0.9386 GB, free: 11.67 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005336/0.8574, allocations: 136.3 kB / 0.9387 GB, free: 11.67 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002087/0.8595, allocations: 1.535 MB / 0.9402 GB, free: 10.37 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007407/0.8602, allocations: 79.47 kB / 0.9403 GB, free: 10.34 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.294e-05/0.8603, allocations: 32.44 kB / 0.9403 GB, free: 10.34 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 8 (weaDat.conTim.canRepeatWeatherFile,weaDat.conTimMin.canRepeatWeatherFile,weaDat.conTim.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTimMin.tNext,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (80): * Single equations (assignments): 79 * 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.0005042/0.8608, allocations: 280 kB / 0.9406 GB, free: 10.22 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001642/0.861, allocations: 92.69 kB / 0.9407 GB, free: 10.18 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002072/0.8631, allocations: 0.977 MB / 0.9416 GB, free: 10.05 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.144e-06/0.8631, allocations: 10.75 kB / 0.9417 GB, free: 10.05 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.037e-06/0.8631, allocations: 2.719 kB / 0.9417 GB, free: 10.05 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.326e-06/0.8631, allocations: 3.812 kB / 0.9417 GB, free: 10.05 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001078/0.8642, allocations: 0.9297 MB / 0.9426 GB, free: 9.832 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.13e-06/0.8642, allocations: 3.938 kB / 0.9426 GB, free: 9.828 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004953/0.8647, allocations: 136.2 kB / 0.9427 GB, free: 9.828 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000513/0.8652, allocations: 91.8 kB / 0.9428 GB, free: 9.812 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.902e-05/0.8653, allocations: 21.95 kB / 0.9428 GB, free: 9.812 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001799/0.8671, allocations: 1.545 MB / 0.9443 GB, free: 8.523 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.8671, allocations: 0 / 0.9443 GB, free: 8.523 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002824/0.8699, allocations: 1.894 MB / 0.9462 GB, free: 7.746 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004091/0.8704, allocations: 266.9 kB / 0.9464 GB, free: 7.59 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001164/0.8705, allocations: 15.78 kB / 0.9464 GB, free: 7.59 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000498/0.871, allocations: 54.47 kB / 0.9465 GB, free: 7.59 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001302/0.8711, allocations: 63.78 kB / 0.9466 GB, free: 7.586 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.082e-05/0.8712, allocations: 25.47 kB / 0.9466 GB, free: 7.586 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.0006416/0.8719, allocations: 0.5291 MB / 0.9471 GB, free: 7.492 MB / 0.573 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8719, allocations: 0 / 0.9471 GB, free: 7.492 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.0009174/0.8728, allocations: 321.1 kB / 0.9474 GB, free: 7.43 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition2,$whenCondition1,weaDat.conTimMin.tNext,weaDat.conTim.tNext) * Number of discrete states: 2 (weaDat.conTimMin.tNext,weaDat.conTim.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (80): * Single equations (assignments): 77 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.001229/0.874, allocations: 0.5907 MB / 0.948 GB, free: 7.215 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.001509/0.8756, allocations: 0.7376 MB / 0.9487 GB, free: 7.086 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 4.228e-06/0.8756, allocations: 0 / 0.9487 GB, free: 7.086 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.0008233/0.8764, allocations: 483.5 kB / 0.9492 GB, free: 6.961 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001682/0.8781, allocations: 416.8 kB / 0.9496 GB, free: 6.93 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004692/0.8828, allocations: 2.821 MB / 0.9523 GB, free: 5.512 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006727/0.8835, allocations: 1.09 MB / 0.9534 GB, free: 4.801 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.001024/0.8845, allocations: 276.6 kB / 0.9536 GB, free: 4.715 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002302/0.8848, allocations: 103.8 kB / 0.9537 GB, free: 4.703 MB / 0.573 GB Notification: Performance of SimCode: time 8.61e-07/0.8848, allocations: 0 / 0.9537 GB, free: 4.703 MB / 0.573 GB Notification: Performance of Templates: time 0.02705/0.9118, allocations: 15.69 MB / 0.9691 GB, free: 13.04 MB / 0.5886 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)