Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_TCPIP.conf.json 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/Modelica_DeviceDrivers 2.1.1-master/package.mo", uses=false) Using package Modelica_DeviceDrivers with version 2.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.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) Running command: translateModel(Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_TCPIP,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_TCPIP") translateModel(Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_TCPIP,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_TCPIP") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000936/0.0009359, allocations: 177.6 kB / 8.045 MB, free: 1.027 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.245/1.245, allocations: 221.5 MB / 230 MB, free: 7.527 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008346/0.0008346, allocations: 103.2 kB / 280.9 MB, free: 5.258 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/package.mo): time 0.04669/0.04669, allocations: 11.92 MB / 343.6 MB, free: 3.473 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.179e-05/1.183e-05, allocations: 2.844 kB / 403.1 MB, free: 45.36 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08264/0.08266, allocations: 53.35 MB / 456.5 MB, free: 14.82 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3338/0.4165, allocations: 85.01 MB / 0.5288 GB, free: 16.92 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002041/0.4167, allocations: 73.81 kB / 0.5289 GB, free: 16.92 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02213/0.4389, allocations: 8.886 MB / 0.5375 GB, free: 16.12 MB / 362.7 MB Notification: Performance of FrontEnd: time 7.81e-07/0.4389, allocations: 0 / 0.5375 GB, free: 16.12 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.773e-05/0.4389, allocations: 12.38 kB / 0.5376 GB, free: 16.12 MB / 362.7 MB Warning: Alias equations of external objects are not Modelica compliant as in: addInteger.pkgOut[1].pkg = tcpipClient.pkgIn.pkg getReal.pkgIn.pkg = tcpipClient.pkgOut.pkg getFloat.pkgOut[1].pkg = getInteger.pkgIn.pkg getFloat.pkgIn.pkg = getReal.pkgOut[1].pkg addFloat.pkgOut[1].pkg = addInteger.pkgIn.pkg addFloat.pkgIn.pkg = addReal.pkgOut[1].pkg addReal.pkgIn.pkg = packager.pkgOut.pkg getFloat.pkgOut[1].pkg = getFloat.pkgIn.pkg addFloat.pkgOut[1].pkg = addFloat.pkgIn.pkg getReal.pkgOut[1].pkg = getReal.pkgIn.pkg addInteger.pkgOut[1].pkg = addInteger.pkgIn.pkg addReal.pkgOut[1].pkg = addReal.pkgIn.pkg Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 100 * Number of variables: 100 Notification: Performance of Generate backend data structure: time 0.001305/0.4402, allocations: 0.9946 MB / 0.5385 GB, free: 15.39 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.445e-05/0.4403, allocations: 10.06 kB / 0.5385 GB, free: 15.39 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001025/0.4404, allocations: 46.31 kB / 0.5386 GB, free: 15.37 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003889/0.4408, allocations: 322 kB / 0.5389 GB, free: 15.13 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.826e-05/0.4408, allocations: 16.59 kB / 0.5389 GB, free: 15.13 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.447e-05/0.4409, allocations: 30.53 kB / 0.5389 GB, free: 15.13 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003625/0.4412, allocations: 214.4 kB / 0.5391 GB, free: 15.12 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005279/0.4418, allocations: 392.5 kB / 0.5395 GB, free: 15.04 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.203e-05/0.4418, allocations: 3.938 kB / 0.5395 GB, free: 15.03 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.014e-05/0.4418, allocations: 13.8 kB / 0.5395 GB, free: 15.03 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.352e-06/0.4418, allocations: 7.75 kB / 0.5395 GB, free: 15.03 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001128/0.443, allocations: 1.146 MB / 0.5407 GB, free: 14.37 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003102/0.4433, allocations: 242 kB / 0.5409 GB, free: 14.29 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001377/0.4434, allocations: 137.6 kB / 0.541 GB, free: 14.26 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.165e-05/0.4435, allocations: 16.89 kB / 0.541 GB, free: 14.26 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002196/0.4437, allocations: 216 kB / 0.5412 GB, free: 14.17 MB / 362.7 MB Notification: Performance of pre-optimization done (n=37): time 1.763e-06/0.4437, allocations: 0 / 0.5412 GB, free: 14.17 MB / 362.7 MB Notification: Performance of matching and sorting (n=37): time 0.0007847/0.4445, allocations: 434.6 kB / 0.5417 GB, free: 14.12 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.846e-05/0.4445, allocations: 133.8 kB / 0.5418 GB, free: 13.99 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001282/0.4447, allocations: 190.6 kB / 0.542 GB, free: 13.88 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.832e-05/0.4447, allocations: 41.17 kB / 0.542 GB, free: 13.84 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.646e-05/0.4448, allocations: 186.6 kB / 0.5422 GB, free: 13.71 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.312e-05/0.4448, allocations: 87.31 kB / 0.5423 GB, free: 13.67 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.352e-05/0.4449, allocations: 0 / 0.5423 GB, free: 13.67 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 4.839e-05/0.4449, allocations: 341 kB / 0.5426 GB, free: 13.36 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001174/0.445, allocations: 88.97 kB / 0.5427 GB, free: 13.36 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001749/0.4452, allocations: 283.4 kB / 0.5429 GB, free: 13.11 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002818/0.4455, allocations: 165.1 kB / 0.5431 GB, free: 13.1 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.058e-06/0.4455, allocations: 0 / 0.5431 GB, free: 13.1 MB / 362.7 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.0006145/0.4461, allocations: 386.7 kB / 0.5435 GB, free: 13.02 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.376e-05/0.4462, allocations: 9 kB / 0.5435 GB, free: 13.02 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.917e-06/0.4462, allocations: 5.875 kB / 0.5435 GB, free: 13.02 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.605e-05/0.4462, allocations: 11.38 kB / 0.5435 GB, free: 13.02 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002208/0.4464, allocations: 70.94 kB / 0.5436 GB, free: 13.02 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.137e-06/0.4464, allocations: 15 kB / 0.5436 GB, free: 13.01 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001442/0.4466, allocations: 31.22 kB / 0.5436 GB, free: 12.99 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.602e-05/0.4466, allocations: 29.64 kB / 0.5436 GB, free: 12.98 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 50 ($PRE.getFloat.dummy,getFloat.dummy,$PRE.getFloat.y[2],getFloat.y[2],$PRE.getFloat.y[1],getFloat.y[1],$PRE.getFloat.pkgOut[1].dummy,getFloat.pkgOut[1].dummy,$PRE.addFloat.pkgOut[1].dummy,addFloat.pkgOut[1].dummy,$PRE.getInteger.dummy,getInteger.dummy,$PRE.getInteger.y[1],getInteger.y[1],$PRE.getReal.dummy,getReal.dummy,$PRE.getReal.y[3],getReal.y[3],$PRE.getReal.y[2],getReal.y[2],$PRE.getReal.y[1],getReal.y[1],$PRE.getReal.pkgOut[1].dummy,getReal.pkgOut[1].dummy,$PRE.addInteger.pkgOut[1].dummy,addInteger.pkgOut[1].dummy,$PRE.tcpipClient.pkgOut.dummy,tcpipClient.pkgOut.dummy,$PRE.addReal.pkgOut[1].dummy,addReal.pkgOut[1].dummy,$PRE.packager.pkgOut.dummy,packager.pkgOut.dummy,$whenCondition2,$whenCondition1,addInteger.pkgOut[1].trigger,addInteger.pkgOut[1].backwardTrigger,addInteger.u[1],tcpipClient.isConnected,getReal.pkgIn.autoPkgBitSize,getInteger.pkgIn.autoPkgBitSize,getFloat.pkgIn.autoPkgBitSize,getInteger.pkgIn.userPkgBitSize,getInteger.pkgIn.backwardTrigger,packager.backwardPropagatedBufferSize,packager.bufferSize,addReal.pkgIn.autoPkgBitSize,tcpipClient.pkgIn.userPkgBitSize,tcpipClient.pkgIn.autoPkgBitSize,addInteger.pkgIn.autoPkgBitSize,addFloat.pkgIn.autoPkgBitSize) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (56): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.477e-05/0.4467, allocations: 155 kB / 0.5438 GB, free: 12.86 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.267e-05/0.4468, allocations: 26.27 kB / 0.5438 GB, free: 12.85 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005611/0.4473, allocations: 360.5 kB / 0.5442 GB, free: 12.8 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.02e-06/0.4474, allocations: 6.547 kB / 0.5442 GB, free: 12.8 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.918e-06/0.4474, allocations: 3.875 kB / 0.5442 GB, free: 12.8 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.727e-06/0.4474, allocations: 0 / 0.5442 GB, free: 12.8 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000909/0.4483, allocations: 0.7999 MB / 0.5449 GB, free: 12.51 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.415e-06/0.4483, allocations: 0 / 0.5449 GB, free: 12.51 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.726e-05/0.4484, allocations: 14.5 kB / 0.545 GB, free: 12.51 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.546e-06/0.4484, allocations: 4 kB / 0.545 GB, free: 12.51 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.05e-05/0.4484, allocations: 14.03 kB / 0.545 GB, free: 12.51 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.074e-06/0.4484, allocations: 0 / 0.545 GB, free: 12.51 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.4484, allocations: 3.953 kB / 0.545 GB, free: 12.5 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006825/0.4491, allocations: 0.5619 MB / 0.5455 GB, free: 12.3 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003508/0.4495, allocations: 119.1 kB / 0.5456 GB, free: 28.18 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.438e-05/0.4495, allocations: 2.484 kB / 0.5456 GB, free: 28.18 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001041/0.4496, allocations: 9.875 kB / 0.5457 GB, free: 28.18 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.729e-05/0.4496, allocations: 17.31 kB / 0.5457 GB, free: 28.18 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.215e-05/0.4497, allocations: 24.28 kB / 0.5457 GB, free: 28.17 MB / 378.7 MB Notification: Performance of sorting global known variables: time 7.038e-05/0.4498, allocations: 121.8 kB / 0.5458 GB, free: 28.09 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4498, allocations: 0 / 0.5458 GB, free: 28.09 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004819/0.4503, allocations: 155.1 kB / 0.546 GB, free: 28.04 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 32 (getReal.pkgIn.autoPkgBitSize,getInteger.pkgIn.autoPkgBitSize,getFloat.pkgIn.autoPkgBitSize,addInteger.pkgOut[1].backwardTrigger,addInteger.pkgOut[1].trigger,$whenCondition2,$whenCondition1,packager.pkgOut.dummy,addReal.pkgOut[1].dummy,tcpipClient.pkgOut.dummy,tcpipClient.isConnected,addInteger.pkgOut[1].dummy,addInteger.u[1],getReal.pkgOut[1].dummy,getReal.y[1],getReal.y[2],getReal.y[3],getReal.dummy,getInteger.y[1],getInteger.dummy,addFloat.pkgOut[1].dummy,getFloat.pkgOut[1].dummy,getFloat.y[1],getFloat.y[2],getFloat.dummy,packager.backwardPropagatedBufferSize,packager.bufferSize,addReal.pkgIn.autoPkgBitSize,tcpipClient.pkgIn.userPkgBitSize,tcpipClient.pkgIn.autoPkgBitSize,addInteger.pkgIn.autoPkgBitSize,addFloat.pkgIn.autoPkgBitSize) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 21 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005932/0.4509, allocations: 369.8 kB / 0.5463 GB, free: 27.85 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0003332/0.4512, allocations: 289.4 kB / 0.5466 GB, free: 27.83 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.4512, allocations: 0 / 0.5466 GB, free: 27.83 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001479/0.4514, allocations: 148.4 kB / 0.5467 GB, free: 27.82 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003405/0.4517, allocations: 58.06 kB / 0.5468 GB, free: 27.82 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001096/0.4528, allocations: 0.5513 MB / 0.5473 GB, free: 27.64 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003521/0.4532, allocations: 0.8095 MB / 0.5481 GB, free: 26.95 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001278/0.4533, allocations: 51.53 kB / 0.5482 GB, free: 26.93 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.306e-05/0.4534, allocations: 26 kB / 0.5482 GB, free: 26.93 MB / 378.7 MB Notification: Performance of SimCode: time 2.6e-07/0.4534, allocations: 0 / 0.5482 GB, free: 26.93 MB / 378.7 MB Notification: Performance of Templates: time 0.006934/0.4603, allocations: 4.502 MB / 0.5526 GB, free: 26.44 MB / 378.7 MB make -j1 -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_TCPIP.makefile (rm -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_TCPIP.pipe ; mkfifo Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_TCPIP.pipe ; head -c 1048576 < Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_TCPIP.pipe >> ../files/Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_TCPIP.sim & ./Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_TCPIP -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_TCPIP.pipe 2>&1)