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.001474/0.001474, allocations: 180.7 kB / 15.8 MB, free: 6.34 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.259/1.259, allocations: 223.2 MB / 239.7 MB, free: 48 kB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008102/0.0008103, allocations: 98.94 kB / 290.9 MB, free: 4.633 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.05404/0.05404, allocations: 12.05 MB / 354 MB, free: 1.281 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003354/0.0003357, allocations: 8 kB / 417.9 MB, free: 1.391 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.254/0.2544, allocations: 53.36 MB / 471.2 MB, free: 65.09 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1009/0.3553, allocations: 85.76 MB / 0.5439 GB, free: 11.21 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00027/0.3557, allocations: 79.95 kB / 0.544 GB, free: 11.14 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02307/0.3788, allocations: 8.949 MB / 0.5528 GB, free: 2.168 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.304e-06/0.3788, allocations: 0 / 0.5528 GB, free: 2.168 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.333e-05/0.3788, allocations: 19.94 kB / 0.5528 GB, free: 2.148 MB / 378.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.001476/0.3803, allocations: 1.015 MB / 0.5538 GB, free: 1.035 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.251e-05/0.3804, allocations: 8.031 kB / 0.5538 GB, free: 1.027 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.613e-05/0.3804, allocations: 51.33 kB / 0.5538 GB, free: 0.9766 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004446/0.3809, allocations: 320.5 kB / 0.5541 GB, free: 0.6211 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.726e-05/0.3809, allocations: 29 kB / 0.5542 GB, free: 0.5938 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.555e-05/0.381, allocations: 39.98 kB / 0.5542 GB, free: 0.5547 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006738/0.3817, allocations: 455.6 kB / 0.5546 GB, free: 88 kB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.376e-05/0.3817, allocations: 4 kB / 0.5546 GB, free: 84 kB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.056e-05/0.3818, allocations: 19.98 kB / 0.5547 GB, free: 64 kB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.488e-06/0.3818, allocations: 8 kB / 0.5547 GB, free: 56 kB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2124/0.5941, allocations: 238.3 kB / 0.5549 GB, free: 86.54 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001876/0.5961, allocations: 1.235 MB / 0.5561 GB, free: 85.93 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005519/0.5966, allocations: 262.8 kB / 0.5564 GB, free: 85.86 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.476e-05/0.5967, allocations: 8.812 kB / 0.5564 GB, free: 85.86 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000404/0.5971, allocations: 232.7 kB / 0.5566 GB, free: 85.77 MB / 378.7 MB Notification: Performance of pre-optimization done (n=37): time 2.575e-06/0.5971, allocations: 0 / 0.5566 GB, free: 85.77 MB / 378.7 MB Notification: Performance of matching and sorting (n=37): time 0.001182/0.5983, allocations: 0.7619 MB / 0.5573 GB, free: 85.45 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.203e-05/0.5984, allocations: 137.9 kB / 0.5575 GB, free: 85.32 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000196/0.5986, allocations: 188.7 kB / 0.5576 GB, free: 85.22 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.694e-05/0.5986, allocations: 45.08 kB / 0.5577 GB, free: 85.19 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001198/0.5988, allocations: 191.8 kB / 0.5579 GB, free: 85.07 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.127e-05/0.5989, allocations: 91.84 kB / 0.5579 GB, free: 85.03 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.851e-05/0.5989, allocations: 9.875 kB / 0.558 GB, free: 85.03 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.337e-05/0.599, allocations: 340.7 kB / 0.5583 GB, free: 84.72 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001954/0.5992, allocations: 106.4 kB / 0.5584 GB, free: 84.71 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003175/0.5995, allocations: 297.1 kB / 0.5587 GB, free: 84.48 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002961/0.5998, allocations: 158.4 kB / 0.5588 GB, free: 84.48 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.32e-06/0.5998, allocations: 1.25 kB / 0.5588 GB, free: 84.48 MB / 378.7 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.0007131/0.6005, allocations: 448.6 kB / 0.5592 GB, free: 84.39 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.499e-05/0.6006, allocations: 13.08 kB / 0.5593 GB, free: 84.38 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.384e-05/0.6006, allocations: 10.78 kB / 0.5593 GB, free: 84.38 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.398e-05/0.6006, allocations: 10.69 kB / 0.5593 GB, free: 84.38 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002512/0.6009, allocations: 71.47 kB / 0.5594 GB, free: 84.37 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.029e-05/0.6009, allocations: 10.7 kB / 0.5594 GB, free: 84.37 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000166/0.6011, allocations: 31.48 kB / 0.5594 GB, free: 84.36 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.773e-05/0.6011, allocations: 23.34 kB / 0.5594 GB, free: 84.36 MB / 378.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 () * Number of clocked 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 0.000311/0.6015, allocations: 225.9 kB / 0.5596 GB, free: 84.23 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.821e-05/0.6015, allocations: 25.31 kB / 0.5597 GB, free: 84.22 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005896/0.6021, allocations: 366.1 kB / 0.56 GB, free: 84.17 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.121e-06/0.6021, allocations: 6.469 kB / 0.56 GB, free: 84.17 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.953e-06/0.6021, allocations: 0 / 0.56 GB, free: 84.17 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.013e-06/0.6021, allocations: 6.438 kB / 0.56 GB, free: 84.17 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001262/0.6034, allocations: 0.8899 MB / 0.5609 GB, free: 83.85 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.917e-06/0.6034, allocations: 1.969 kB / 0.5609 GB, free: 83.85 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.586e-05/0.6035, allocations: 10.98 kB / 0.5609 GB, free: 83.85 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.019e-06/0.6035, allocations: 2.531 kB / 0.5609 GB, free: 83.85 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.499e-05/0.6035, allocations: 12.39 kB / 0.5609 GB, free: 83.85 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.725e-06/0.6035, allocations: 1.031 kB / 0.5609 GB, free: 83.85 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.6036, allocations: 1.5 kB / 0.5609 GB, free: 83.85 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007424/0.6043, allocations: 0.5707 MB / 0.5615 GB, free: 83.64 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.677e-05/0.6044, allocations: 101.3 kB / 0.5616 GB, free: 83.54 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.811e-05/0.6044, allocations: 9.719 kB / 0.5616 GB, free: 83.54 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001086/0.6045, allocations: 5.953 kB / 0.5616 GB, free: 83.54 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.852e-05/0.6046, allocations: 15.23 kB / 0.5616 GB, free: 83.54 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.05e-05/0.6046, allocations: 20.16 kB / 0.5616 GB, free: 83.54 MB / 378.7 MB Notification: Performance of sorting global known variables: time 9.497e-05/0.6047, allocations: 132.2 kB / 0.5617 GB, free: 83.45 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.6048, allocations: 0 / 0.5617 GB, free: 83.45 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006157/0.6054, allocations: 168 kB / 0.5619 GB, free: 83.43 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 () * Number of clocked 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.0007275/0.6061, allocations: 381 kB / 0.5623 GB, free: 83.3 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005529/0.6067, allocations: 323 kB / 0.5626 GB, free: 83.21 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.6067, allocations: 4.125 kB / 0.5626 GB, free: 83.2 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002428/0.6069, allocations: 155 kB / 0.5627 GB, free: 83.16 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003939/0.6073, allocations: 52.8 kB / 0.5628 GB, free: 83.15 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001556/0.6089, allocations: 0.8306 MB / 0.5636 GB, free: 82.66 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002779/0.6092, allocations: 0.8095 MB / 0.5644 GB, free: 81.96 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001612/0.6094, allocations: 47.45 kB / 0.5644 GB, free: 81.96 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.985e-05/0.6094, allocations: 27.09 kB / 0.5644 GB, free: 81.95 MB / 378.7 MB Notification: Performance of SimCode: time 3.11e-07/0.6094, allocations: 4 kB / 0.5645 GB, free: 81.94 MB / 378.7 MB Notification: Performance of Templates: time 0.007879/0.6173, allocations: 4.609 MB / 0.569 GB, free: 81.53 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)