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.001622/0.001623, allocations: 110.3 kB / 16.41 MB, free: 6.027 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.001421/0.001421, allocations: 188.1 kB / 17.34 MB, free: 5.633 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.244/1.244, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002033/0.002033, allocations: 292 kB / 291.5 MB, free: 14.47 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8969/0.8969, allocations: 169.3 MB / 0.499 GB, free: 4.441 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001808/0.001808, allocations: 87.86 kB / 0.6821 GB, free: 6.992 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4155/0.4173, allocations: 86.97 MB / 0.767 GB, free: 3.941 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.IO.SignalExchange.Examples.WeatherStation): time 0.005969/0.4233, allocations: 5.12 MB / 0.772 GB, free: 14.8 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.145/0.5683, allocations: 150.8 MB / 0.9193 GB, free: 7.367 MB / 0.6856 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009904/0.5694, allocations: 27.81 kB / 0.9193 GB, free: 7.34 MB / 0.6856 GB Notification: Performance of NFTyping.typeComponents: time 0.0007652/0.5702, allocations: 341.5 kB / 0.9197 GB, free: 7.004 MB / 0.6856 GB Notification: Performance of NFTyping.typeBindings: time 0.001644/0.5718, allocations: 0.527 MB / 0.9202 GB, free: 6.477 MB / 0.6856 GB Notification: Performance of NFTyping.typeClassSections: time 0.001777/0.5736, allocations: 0.8585 MB / 0.921 GB, free: 5.625 MB / 0.6856 GB Notification: Performance of NFFlatten.flatten: time 0.0014/0.575, allocations: 1.485 MB / 0.9225 GB, free: 4.133 MB / 0.6856 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000982/0.576, allocations: 0.8061 MB / 0.9233 GB, free: 3.293 MB / 0.6856 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000656/0.5767, allocations: 0.5331 MB / 0.9238 GB, free: 2.758 MB / 0.6856 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005079/0.5772, allocations: 0.5598 MB / 0.9243 GB, free: 2.195 MB / 0.6856 GB Notification: Performance of NFPackage.collectConstants: time 0.000154/0.5774, allocations: 132 kB / 0.9245 GB, free: 2.066 MB / 0.6856 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008145/0.5782, allocations: 0.4918 MB / 0.9249 GB, free: 1.574 MB / 0.6856 GB Notification: Performance of NFScalarize.scalarize: time 0.0002645/0.5785, allocations: 334.9 kB / 0.9253 GB, free: 1.246 MB / 0.6856 GB Notification: Performance of NFVerifyModel.verify: time 0.0004623/0.5789, allocations: 0.641 MB / 0.9259 GB, free: 0.6016 MB / 0.6856 GB Notification: Performance of NFConvertDAE.convert: time 0.001731/0.5807, allocations: 1.891 MB / 0.9277 GB, free: 14.71 MB / 0.7012 GB Notification: Performance of FrontEnd - DAE generated: time 4.439e-06/0.5807, allocations: 0 / 0.9277 GB, free: 14.71 MB / 0.7012 GB Notification: Performance of FrontEnd: time 1.542e-06/0.5807, allocations: 0 / 0.9277 GB, free: 14.71 MB / 0.7012 GB Notification: Performance of Transformations before backend: time 1.293e-05/0.5807, allocations: 0 / 0.9277 GB, free: 14.71 MB / 0.7012 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.002418/0.5831, allocations: 1.674 MB / 0.9294 GB, free: 12.98 MB / 0.7012 GB Notification: Performance of prepare preOptimizeDAE: time 3.555e-05/0.5832, allocations: 8.031 kB / 0.9294 GB, free: 12.97 MB / 0.7012 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009005/0.5841, allocations: 219 kB / 0.9296 GB, free: 12.75 MB / 0.7012 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001207/0.5853, allocations: 0.9101 MB / 0.9305 GB, free: 11.8 MB / 0.7012 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.991e-05/0.5854, allocations: 74 kB / 0.9305 GB, free: 11.73 MB / 0.7012 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001112/0.5855, allocations: 96 kB / 0.9306 GB, free: 11.64 MB / 0.7012 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001524/0.587, allocations: 1.032 MB / 0.9316 GB, free: 10.56 MB / 0.7012 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.221e-05/0.587, allocations: 8 kB / 0.9316 GB, free: 10.55 MB / 0.7012 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.109e-05/0.5871, allocations: 44 kB / 0.9317 GB, free: 10.51 MB / 0.7012 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.852e-05/0.5872, allocations: 24 kB / 0.9317 GB, free: 10.48 MB / 0.7012 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001667/0.5888, allocations: 1.167 MB / 0.9328 GB, free: 9.316 MB / 0.7012 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003812/0.5927, allocations: 2.792 MB / 0.9356 GB, free: 6.453 MB / 0.7012 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00134/0.594, allocations: 0.8002 MB / 0.9364 GB, free: 5.645 MB / 0.7012 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004723/0.5945, allocations: 298.7 kB / 0.9366 GB, free: 5.352 MB / 0.7012 GB Notification: Performance of preOpt evalFunc (simulation): time 6.684e-05/0.5946, allocations: 28.62 kB / 0.9367 GB, free: 5.324 MB / 0.7012 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007586/0.5953, allocations: 495.2 kB / 0.9371 GB, free: 4.82 MB / 0.7012 GB Notification: Performance of pre-optimization done (n=78): time 2.195e-06/0.5953, allocations: 0 / 0.9371 GB, free: 4.82 MB / 0.7012 GB Notification: Performance of matching and sorting (n=78): time 0.002914/0.5983, allocations: 1.209 MB / 0.9383 GB, free: 3.582 MB / 0.7012 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.586e-05/0.5984, allocations: 188.6 kB / 0.9385 GB, free: 3.355 MB / 0.7012 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009559/0.5993, allocations: 0.7952 MB / 0.9393 GB, free: 2.535 MB / 0.7012 GB Notification: Performance of collectPreVariables (initialization): time 5.627e-05/0.5994, allocations: 45.64 kB / 0.9393 GB, free: 2.484 MB / 0.7012 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003603/0.5998, allocations: 0.5077 MB / 0.9398 GB, free: 1.969 MB / 0.7012 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001814/0.6, allocations: 252.4 kB / 0.9401 GB, free: 1.719 MB / 0.7012 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002235/0.6002, allocations: 166.5 kB / 0.9402 GB, free: 1.551 MB / 0.7012 GB Notification: Performance of setup shared object (initialization): time 0.0001168/0.6003, allocations: 341.9 kB / 0.9405 GB, free: 1.211 MB / 0.7012 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000487/0.6008, allocations: 261.9 kB / 0.9408 GB, free: 0.957 MB / 0.7012 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005931/0.6014, allocations: 359.1 kB / 0.9411 GB, free: 0.5938 MB / 0.7012 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001023/0.6024, allocations: 0.6033 MB / 0.9417 GB, free: 15.98 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.905e-06/0.6024, allocations: 0 / 0.9417 GB, free: 15.98 MB / 0.7169 GB Notification: Performance of matching and sorting (n=94) (initialization): time 0.00183/0.6043, allocations: 0.8602 MB / 0.9426 GB, free: 15.11 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.871e-05/0.6043, allocations: 7.984 kB / 0.9426 GB, free: 15.1 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.854e-06/0.6043, allocations: 4 kB / 0.9426 GB, free: 15.09 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005873/0.6049, allocations: 80.81 kB / 0.9427 GB, free: 15.01 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006051/0.6055, allocations: 167.7 kB / 0.9428 GB, free: 14.85 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001956/0.6075, allocations: 1.63 MB / 0.9444 GB, free: 13.07 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006733/0.6082, allocations: 103.4 kB / 0.9445 GB, free: 12.97 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.113e-05/0.6083, allocations: 35.98 kB / 0.9445 GB, free: 12.94 MB / 0.7169 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.0004277/0.6087, allocations: 294.5 kB / 0.9448 GB, free: 12.64 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001613/0.6089, allocations: 106.7 kB / 0.9449 GB, free: 12.54 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002195/0.6111, allocations: 1.066 MB / 0.946 GB, free: 11.46 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.456e-06/0.6111, allocations: 8 kB / 0.946 GB, free: 11.45 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.737e-06/0.6111, allocations: 7.938 kB / 0.946 GB, free: 11.45 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.277e-06/0.6111, allocations: 3.984 kB / 0.946 GB, free: 11.44 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001065/0.6122, allocations: 1.001 MB / 0.947 GB, free: 10.39 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.936e-06/0.6122, allocations: 4 kB / 0.947 GB, free: 10.39 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005402/0.6127, allocations: 139.8 kB / 0.9471 GB, free: 10.25 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004311/0.6132, allocations: 76.77 kB / 0.9472 GB, free: 10.17 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.888e-05/0.6132, allocations: 27.92 kB / 0.9472 GB, free: 10.14 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001791/0.615, allocations: 1.678 MB / 0.9488 GB, free: 8.32 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.615, allocations: 0 / 0.9488 GB, free: 8.32 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001805/0.6169, allocations: 0.9432 MB / 0.9498 GB, free: 7.355 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003719/0.6172, allocations: 291.4 kB / 0.95 GB, free: 7.051 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001059/0.6173, allocations: 16 kB / 0.95 GB, free: 7.035 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005731/0.6179, allocations: 63.92 kB / 0.9501 GB, free: 6.973 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001247/0.6181, allocations: 76.84 kB / 0.9502 GB, free: 6.898 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.887e-05/0.6181, allocations: 31.98 kB / 0.9502 GB, free: 6.867 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0006487/0.6188, allocations: 0.5542 MB / 0.9508 GB, free: 6.301 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6188, allocations: 0 / 0.9508 GB, free: 6.301 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0007658/0.6196, allocations: 335.1 kB / 0.9511 GB, free: 5.973 MB / 0.7169 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.001203/0.6208, allocations: 0.6026 MB / 0.9517 GB, free: 5.547 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.001496/0.6223, allocations: 0.8273 MB / 0.9525 GB, free: 4.707 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 6.342e-06/0.6223, allocations: 4 kB / 0.9525 GB, free: 4.703 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0008474/0.6231, allocations: 0.516 MB / 0.953 GB, free: 4.176 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00143/0.6246, allocations: 458.2 kB / 0.9534 GB, free: 3.766 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003991/0.6286, allocations: 2.052 MB / 0.9554 GB, free: 1.676 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006844/0.6293, allocations: 1.102 MB / 0.9565 GB, free: 0.5469 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002863/0.6296, allocations: 127.4 kB / 0.9566 GB, free: 436 kB / 0.7169 GB Notification: Performance of SimCode: time 3.4e-07/0.6296, allocations: 0 / 0.9566 GB, free: 436 kB / 0.7169 GB Notification: Performance of Templates: time 0.338/0.9676, allocations: 22.25 MB / 0.9783 GB, free: 174.4 MB / 0.7169 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)