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: "" <> buildModelFMU(BuildingSystems.Utilities.IO.SignalExchange.Examples.WeatherStation,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_IO_SignalExchange_Examples_WeatherStation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.IO.SignalExchange.Examples.WeatherStation,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_IO_SignalExchange_Examples_WeatherStation",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001259/0.001259, 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.001223/0.001223, allocations: 194.5 kB / 16.14 MB, free: 6.668 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.152/1.152, allocations: 222.9 MB / 239.8 MB, free: 4.617 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001938/0.001938, allocations: 274.7 kB / 290.2 MB, free: 2.23 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.81/0.81, allocations: 169.2 MB / 0.4977 GB, free: 14.16 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001817/0.001817, allocations: 88.89 kB / 0.5946 GB, free: 28.38 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1242/0.126, allocations: 86.98 MB / 0.6795 GB, free: 1.102 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.IO.SignalExchange.Examples.WeatherStation): time 0.005558/0.1316, allocations: 5.096 MB / 0.6845 GB, free: 11.99 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.3429/0.4746, allocations: 148.5 MB / 0.8295 GB, free: 1.523 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007859/0.4754, allocations: 22.78 kB / 0.8296 GB, free: 1.516 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0007488/0.4762, allocations: 282.2 kB / 0.8298 GB, free: 1.422 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.001359/0.4775, allocations: 454.9 kB / 0.8303 GB, free: 1.312 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.001469/0.479, allocations: 0.7424 MB / 0.831 GB, free: 1.277 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.00123/0.4802, allocations: 1.376 MB / 0.8323 GB, free: 1.031 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009109/0.4812, allocations: 0.7941 MB / 0.8331 GB, free: 0.8398 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005747/0.4818, allocations: 464.5 kB / 0.8336 GB, free: 0.7188 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005467/0.4823, allocations: 0.5212 MB / 0.8341 GB, free: 0.5742 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0001884/0.4825, allocations: 63.62 kB / 0.8341 GB, free: 0.5742 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007253/0.4832, allocations: 404.9 kB / 0.8345 GB, free: 0.5586 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0002234/0.4835, allocations: 269.4 kB / 0.8348 GB, free: 0.5039 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0004553/0.4839, allocations: 0.5826 MB / 0.8353 GB, free: 292 kB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.001426/0.4854, allocations: 1.774 MB / 0.8371 GB, free: 4 kB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.4854, allocations: 1.094 kB / 0.8371 GB, free: 4 kB / 0.5606 GB Notification: Performance of FrontEnd: time 9.62e-07/0.4854, allocations: 7.984 kB / 0.8371 GB, free: 15.99 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.266e-05/0.4854, allocations: 0.5625 kB / 0.8371 GB, free: 15.99 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.002392/0.4878, allocations: 1.668 MB / 0.8387 GB, free: 14.91 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.177e-05/0.4879, allocations: 13.34 kB / 0.8387 GB, free: 14.9 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001431/0.488, allocations: 157.1 kB / 0.8389 GB, free: 14.84 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008362/0.4888, allocations: 215.5 kB / 0.8391 GB, free: 14.73 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009884/0.4898, allocations: 0.8904 MB / 0.8399 GB, free: 14.21 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.022e-05/0.4899, allocations: 77.56 kB / 0.84 GB, free: 14.2 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001015/0.49, allocations: 97.75 kB / 0.8401 GB, free: 14.2 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00144/0.4915, allocations: 1.036 MB / 0.8411 GB, free: 13.86 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.692e-05/0.4915, allocations: 1.375 kB / 0.8411 GB, free: 13.86 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.709e-05/0.4916, allocations: 44 kB / 0.8412 GB, free: 13.86 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.809e-05/0.4916, allocations: 27.36 kB / 0.8412 GB, free: 13.86 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001648/0.4932, allocations: 1.174 MB / 0.8423 GB, free: 13.38 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003503/0.4968, allocations: 2.834 MB / 0.8451 GB, free: 11.25 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001234/0.498, allocations: 0.7889 MB / 0.8459 GB, free: 10.85 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004434/0.4985, allocations: 299.7 kB / 0.8462 GB, free: 10.7 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 6.02e-05/0.4985, allocations: 31.5 kB / 0.8462 GB, free: 10.69 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00077/0.4993, allocations: 0.4932 MB / 0.8467 GB, free: 10.37 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=78): time 1.793e-06/0.4993, allocations: 0 / 0.8467 GB, free: 10.37 MB / 0.5762 GB Notification: Performance of matching and sorting (n=78): time 0.002728/0.502, allocations: 1.205 MB / 0.8479 GB, free: 9.715 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.594e-05/0.5021, allocations: 196.3 kB / 0.848 GB, free: 9.484 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007835/0.5029, allocations: 0.7961 MB / 0.8488 GB, free: 9.02 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 5.408e-05/0.503, allocations: 42.83 kB / 0.8489 GB, free: 8.977 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003179/0.5033, allocations: 0.5052 MB / 0.8493 GB, free: 8.527 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001651/0.5035, allocations: 256.3 kB / 0.8496 GB, free: 8.312 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001829/0.5037, allocations: 140.3 kB / 0.8497 GB, free: 8.227 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001055/0.5038, allocations: 341.4 kB / 0.8501 GB, free: 7.895 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004175/0.5042, allocations: 245.3 kB / 0.8503 GB, free: 7.773 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005139/0.5047, allocations: 353 kB / 0.8506 GB, free: 7.551 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008965/0.5056, allocations: 0.5793 MB / 0.8512 GB, free: 7.238 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-06/0.5057, allocations: 4.938 kB / 0.8512 GB, free: 7.238 MB / 0.5762 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001606/0.5073, allocations: 0.8163 MB / 0.852 GB, free: 6.809 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.345e-05/0.5073, allocations: 5.062 kB / 0.852 GB, free: 6.809 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.909e-06/0.5073, allocations: 3.938 kB / 0.852 GB, free: 6.805 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000549/0.5078, allocations: 80.72 kB / 0.8521 GB, free: 6.766 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005263/0.5084, allocations: 154.2 kB / 0.8522 GB, free: 6.723 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001718/0.5101, allocations: 1.526 MB / 0.8537 GB, free: 5.227 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005502/0.5107, allocations: 90.62 kB / 0.8538 GB, free: 5.168 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.86e-05/0.5107, allocations: 26.36 kB / 0.8538 GB, free: 5.16 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: 15 (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 (84): * Single equations (assignments): 83 * 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.0003456/0.5111, allocations: 299 kB / 0.8541 GB, free: 4.93 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001542/0.5112, allocations: 110.1 kB / 0.8542 GB, free: 4.867 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002072/0.5133, allocations: 1.071 MB / 0.8553 GB, free: 4.281 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.791e-06/0.5133, allocations: 6.844 kB / 0.8553 GB, free: 4.281 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.5133, allocations: 0 / 0.8553 GB, free: 4.281 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.007e-06/0.5134, allocations: 10.55 kB / 0.8553 GB, free: 4.273 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009126/0.5143, allocations: 1.013 MB / 0.8563 GB, free: 3.539 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-06/0.5143, allocations: 4 kB / 0.8563 GB, free: 3.535 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004932/0.5148, allocations: 144 kB / 0.8564 GB, free: 3.5 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004729/0.5153, allocations: 82.31 kB / 0.8565 GB, free: 3.461 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.279e-05/0.5153, allocations: 33.72 kB / 0.8565 GB, free: 3.438 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00157/0.5169, allocations: 1.546 MB / 0.858 GB, free: 1.926 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.5169, allocations: 3.938 kB / 0.858 GB, free: 1.922 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001676/0.5186, allocations: 0.9436 MB / 0.859 GB, free: 1.418 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002997/0.5189, allocations: 292 kB / 0.8592 GB, free: 1.164 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001223/0.519, allocations: 20.86 kB / 0.8593 GB, free: 1.148 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005572/0.5196, allocations: 58.34 kB / 0.8593 GB, free: 1.121 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001202/0.5197, allocations: 79.92 kB / 0.8594 GB, free: 1.078 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.561e-05/0.5198, allocations: 27.67 kB / 0.8594 GB, free: 1.07 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0005615/0.5204, allocations: 0.5628 MB / 0.86 GB, free: 0.7344 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.41e-07/0.5204, allocations: 1.781 kB / 0.86 GB, free: 0.7344 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0006407/0.521, allocations: 335.9 kB / 0.8603 GB, free: 0.6289 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.002955/0.524, allocations: 1.977 MB / 0.8622 GB, free: 15.42 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.001302/0.5253, allocations: 0.7965 MB / 0.863 GB, free: 14.99 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.5253, allocations: 0 / 0.863 GB, free: 14.99 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0007731/0.5261, allocations: 0.513 MB / 0.8635 GB, free: 14.7 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001266/0.5274, allocations: 413.2 kB / 0.8639 GB, free: 14.5 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01158/0.5389, allocations: 7.912 MB / 0.8716 GB, free: 9.242 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005266/0.5395, allocations: 1.101 MB / 0.8727 GB, free: 8.363 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0007171/0.5402, allocations: 287 kB / 0.873 GB, free: 8.219 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005388/0.5408, allocations: 473 kB / 0.8734 GB, free: 7.832 MB / 0.5919 GB Notification: Performance of SimCode: time 2.5e-07/0.5408, allocations: 0 / 0.8734 GB, free: 7.832 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 5.046/5.586, allocations: 24.26 MB / 0.8971 GB, free: 1.047 MB / 0.6075 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003158/5.587, allocations: 313.7 kB / 0.8974 GB, free: 0.6562 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.215/7.802, allocations: 0 / 0.8974 GB, free: 0.6562 MB / 0.6075 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_IO_SignalExchange_Examples_WeatherStation_fmu --startTime=0 --stopTime=864000 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_IO_SignalExchange_Examples_WeatherStation.fmu > BuildingSystems_BuildingSystems.Utilities.IO.SignalExchange.Examples.WeatherStation.pipe 2>&1)