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.001406/0.001406, allocations: 109.5 kB / 16.41 MB, free: 6.453 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.001614/0.001614, allocations: 189.7 kB / 17.34 MB, free: 5.719 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.284/1.284, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002182/0.002182, allocations: 293.3 kB / 291.5 MB, free: 14.45 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8955/0.8955, allocations: 169.3 MB / 0.499 GB, free: 4.438 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001785/0.001785, allocations: 92.23 kB / 0.6821 GB, free: 6.996 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.416/0.4178, allocations: 86.98 MB / 0.767 GB, free: 3.941 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.IO.SignalExchange.Examples.WeatherStation): time 0.006287/0.4242, allocations: 5.108 MB / 0.772 GB, free: 14.81 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.1441/0.5683, allocations: 150.8 MB / 0.9193 GB, free: 7.379 MB / 0.6856 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001086/0.5694, allocations: 27.81 kB / 0.9193 GB, free: 7.352 MB / 0.6856 GB Notification: Performance of NFTyping.typeComponents: time 0.001044/0.5705, allocations: 341.5 kB / 0.9197 GB, free: 7.016 MB / 0.6856 GB Notification: Performance of NFTyping.typeBindings: time 0.001954/0.5724, allocations: 0.5212 MB / 0.9202 GB, free: 6.496 MB / 0.6856 GB Notification: Performance of NFTyping.typeClassSections: time 0.001867/0.5743, allocations: 0.8636 MB / 0.921 GB, free: 5.641 MB / 0.6856 GB Notification: Performance of NFFlatten.flatten: time 0.001507/0.5758, allocations: 1.473 MB / 0.9225 GB, free: 4.16 MB / 0.6856 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009669/0.5768, allocations: 0.8216 MB / 0.9233 GB, free: 3.305 MB / 0.6856 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005939/0.5774, allocations: 0.5292 MB / 0.9238 GB, free: 2.773 MB / 0.6856 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005052/0.5779, allocations: 0.5559 MB / 0.9243 GB, free: 2.215 MB / 0.6856 GB Notification: Performance of NFPackage.collectConstants: time 0.0001546/0.5781, allocations: 132 kB / 0.9244 GB, free: 2.086 MB / 0.6856 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008254/0.5789, allocations: 0.4957 MB / 0.9249 GB, free: 1.59 MB / 0.6856 GB Notification: Performance of NFScalarize.scalarize: time 0.0002616/0.5792, allocations: 330.9 kB / 0.9252 GB, free: 1.266 MB / 0.6856 GB Notification: Performance of NFVerifyModel.verify: time 0.0004729/0.5797, allocations: 0.6488 MB / 0.9259 GB, free: 0.6133 MB / 0.6856 GB Notification: Performance of NFConvertDAE.convert: time 0.001779/0.5815, allocations: 1.883 MB / 0.9277 GB, free: 14.73 MB / 0.7012 GB Notification: Performance of FrontEnd - DAE generated: time 6.142e-06/0.5815, allocations: 4 kB / 0.9277 GB, free: 14.72 MB / 0.7012 GB Notification: Performance of FrontEnd: time 1.433e-06/0.5815, allocations: 0 / 0.9277 GB, free: 14.72 MB / 0.7012 GB Notification: Performance of Transformations before backend: time 1.428e-05/0.5815, allocations: 0 / 0.9277 GB, free: 14.72 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.002326/0.5838, allocations: 1.663 MB / 0.9293 GB, free: 13 MB / 0.7012 GB Notification: Performance of prepare preOptimizeDAE: time 4.231e-05/0.5839, allocations: 12.03 kB / 0.9294 GB, free: 12.99 MB / 0.7012 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008575/0.5847, allocations: 223 kB / 0.9296 GB, free: 12.77 MB / 0.7012 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001096/0.5859, allocations: 0.9101 MB / 0.9305 GB, free: 11.82 MB / 0.7012 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.181e-05/0.5859, allocations: 70 kB / 0.9305 GB, free: 11.75 MB / 0.7012 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.865e-05/0.586, allocations: 96 kB / 0.9306 GB, free: 11.66 MB / 0.7012 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001543/0.5876, allocations: 1.035 MB / 0.9316 GB, free: 10.58 MB / 0.7012 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.387e-05/0.5876, allocations: 7.922 kB / 0.9316 GB, free: 10.57 MB / 0.7012 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.569e-05/0.5877, allocations: 40 kB / 0.9317 GB, free: 10.53 MB / 0.7012 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.899e-05/0.5877, allocations: 24 kB / 0.9317 GB, free: 10.51 MB / 0.7012 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001677/0.5894, allocations: 1.167 MB / 0.9328 GB, free: 9.34 MB / 0.7012 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003605/0.593, allocations: 2.804 MB / 0.9356 GB, free: 6.465 MB / 0.7012 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001322/0.5943, allocations: 0.8 MB / 0.9364 GB, free: 5.66 MB / 0.7012 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004773/0.5948, allocations: 298.7 kB / 0.9366 GB, free: 5.367 MB / 0.7012 GB Notification: Performance of preOpt evalFunc (simulation): time 7.265e-05/0.5949, allocations: 28.61 kB / 0.9367 GB, free: 5.34 MB / 0.7012 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007822/0.5957, allocations: 487.2 kB / 0.9371 GB, free: 4.844 MB / 0.7012 GB Notification: Performance of pre-optimization done (n=78): time 2.144e-06/0.5957, allocations: 4 kB / 0.9371 GB, free: 4.84 MB / 0.7012 GB Notification: Performance of matching and sorting (n=78): time 0.002761/0.5985, allocations: 1.209 MB / 0.9383 GB, free: 3.602 MB / 0.7012 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.812e-05/0.5986, allocations: 192.6 kB / 0.9385 GB, free: 3.371 MB / 0.7012 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008558/0.5995, allocations: 0.7951 MB / 0.9393 GB, free: 2.551 MB / 0.7012 GB Notification: Performance of collectPreVariables (initialization): time 5.313e-05/0.5995, allocations: 45.64 kB / 0.9393 GB, free: 2.5 MB / 0.7012 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003328/0.5999, allocations: 0.5078 MB / 0.9398 GB, free: 1.984 MB / 0.7012 GB Notification: Performance of collectInitialBindings (initialization): time 0.000172/0.6, allocations: 252.4 kB / 0.9401 GB, free: 1.734 MB / 0.7012 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002081/0.6002, allocations: 158.5 kB / 0.9402 GB, free: 1.574 MB / 0.7012 GB Notification: Performance of setup shared object (initialization): time 0.0001072/0.6004, allocations: 341.9 kB / 0.9405 GB, free: 1.234 MB / 0.7012 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004752/0.6008, allocations: 265.9 kB / 0.9408 GB, free: 0.9766 MB / 0.7012 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005734/0.6014, allocations: 363 kB / 0.9411 GB, free: 0.6094 MB / 0.7012 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001004/0.6024, allocations: 0.6034 MB / 0.9417 GB, free: 15.99 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.308e-06/0.6024, allocations: 4.062 kB / 0.9417 GB, free: 15.99 MB / 0.7169 GB Notification: Performance of matching and sorting (n=94) (initialization): time 0.001727/0.6042, allocations: 0.8642 MB / 0.9426 GB, free: 15.11 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.801e-05/0.6042, allocations: 8 kB / 0.9426 GB, free: 15.1 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.233e-06/0.6042, allocations: 0 / 0.9426 GB, free: 15.1 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005356/0.6048, allocations: 84.81 kB / 0.9427 GB, free: 15.02 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005714/0.6053, allocations: 159.7 kB / 0.9428 GB, free: 14.86 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001802/0.6072, allocations: 1.634 MB / 0.9444 GB, free: 13.08 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006378/0.6078, allocations: 95.31 kB / 0.9445 GB, free: 12.99 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.139e-05/0.6079, allocations: 27.98 kB / 0.9445 GB, free: 12.96 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.000427/0.6083, allocations: 305.8 kB / 0.9448 GB, free: 12.66 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001511/0.6085, allocations: 102.7 kB / 0.9449 GB, free: 12.55 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002114/0.6106, allocations: 1.067 MB / 0.946 GB, free: 11.48 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.846e-06/0.6106, allocations: 12 kB / 0.946 GB, free: 11.46 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.326e-06/0.6106, allocations: 3.938 kB / 0.946 GB, free: 11.46 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.687e-06/0.6106, allocations: 3.984 kB / 0.946 GB, free: 11.46 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009699/0.6116, allocations: 1.009 MB / 0.947 GB, free: 10.4 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.699e-06/0.6116, allocations: 0 / 0.947 GB, free: 10.4 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005146/0.6121, allocations: 147.7 kB / 0.9471 GB, free: 10.25 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003869/0.6125, allocations: 68.78 kB / 0.9472 GB, free: 10.18 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.915e-05/0.6126, allocations: 27.92 kB / 0.9472 GB, free: 10.16 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001616/0.6142, allocations: 1.674 MB / 0.9488 GB, free: 8.336 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.6142, allocations: 0 / 0.9488 GB, free: 8.336 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001737/0.616, allocations: 0.9472 MB / 0.9498 GB, free: 7.367 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003187/0.6163, allocations: 291.3 kB / 0.95 GB, free: 7.066 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001052/0.6164, allocations: 28 kB / 0.9501 GB, free: 7.039 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005416/0.617, allocations: 59.92 kB / 0.9501 GB, free: 6.98 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000136/0.6171, allocations: 68.84 kB / 0.9502 GB, free: 6.914 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.31e-05/0.6172, allocations: 39.97 kB / 0.9502 GB, free: 6.875 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0006377/0.6178, allocations: 0.5503 MB / 0.9508 GB, free: 6.312 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.4e-07/0.6178, allocations: 4 kB / 0.9508 GB, free: 6.309 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0007372/0.6186, allocations: 335 kB / 0.9511 GB, free: 5.98 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.001201/0.6198, allocations: 0.5832 MB / 0.9517 GB, free: 5.57 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.001501/0.6213, allocations: 0.8353 MB / 0.9525 GB, free: 4.723 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.6213, allocations: 0 / 0.9525 GB, free: 4.723 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0008176/0.6221, allocations: 0.5196 MB / 0.953 GB, free: 4.191 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001474/0.6236, allocations: 460.6 kB / 0.9534 GB, free: 3.781 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003714/0.6273, allocations: 2.056 MB / 0.9554 GB, free: 1.688 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005359/0.6279, allocations: 1.105 MB / 0.9565 GB, free: 0.5547 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002997/0.6282, allocations: 119.4 kB / 0.9566 GB, free: 452 kB / 0.7169 GB Notification: Performance of SimCode: time 4.61e-07/0.6282, allocations: 4 kB / 0.9566 GB, free: 448 kB / 0.7169 GB Notification: Performance of Templates: time 0.3534/0.9817, allocations: 22.42 MB / 0.9785 GB, free: 174.2 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)