Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPAutoBufferSize.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_UDPAutoBufferSize,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPAutoBufferSize") translateModel(Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPAutoBufferSize,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPAutoBufferSize") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001103/0.001103, allocations: 179.4 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.303/1.303, allocations: 223.2 MB / 239.7 MB, free: 1.793 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.0008276/0.0008276, allocations: 104.1 kB / 290.9 MB, free: 13.93 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.05319/0.05319, allocations: 12.05 MB / 354.1 MB, free: 15.18 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003542/0.0003542, allocations: 8.25 kB / 417.9 MB, free: 87.75 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1034/0.1038, allocations: 53.35 MB / 471.2 MB, free: 37.48 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3385/0.4423, allocations: 86.06 MB / 0.5442 GB, free: 15.33 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001989/0.4425, allocations: 80.38 kB / 0.5443 GB, free: 15.33 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02234/0.4649, allocations: 9.527 MB / 0.5536 GB, free: 30.46 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.044e-06/0.4649, allocations: 0 / 0.5536 GB, free: 30.46 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.376e-05/0.465, allocations: 11.59 kB / 0.5536 GB, free: 30.46 MB / 378.7 MB Warning: Alias equations of external objects are not Modelica compliant as in: getFloat.pkgOut[1].pkg = getInteger.pkgIn.pkg getFloat.pkgIn.pkg = getReal.pkgOut[1].pkg addInteger.pkgOut[1].pkg = uDPSend.pkgIn.pkg addFloat.pkgOut[1].pkg = addInteger.pkgIn.pkg addFloat.pkgIn.pkg = addReal.pkgOut[1].pkg getReal.pkgIn.pkg = uDPReceive.pkgOut.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: 107 * Number of variables: 107 Notification: Performance of Generate backend data structure: time 0.001273/0.4662, allocations: 1.031 MB / 0.5546 GB, free: 29.71 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.846e-05/0.4663, allocations: 15.38 kB / 0.5546 GB, free: 29.71 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.427e-05/0.4664, allocations: 53.12 kB / 0.5547 GB, free: 29.68 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004194/0.4668, allocations: 335.1 kB / 0.555 GB, free: 29.45 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.273e-05/0.4669, allocations: 31.06 kB / 0.555 GB, free: 29.45 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.507e-05/0.4669, allocations: 41.67 kB / 0.5551 GB, free: 29.45 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007392/0.4677, allocations: 473 kB / 0.5555 GB, free: 29.36 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.296e-05/0.4677, allocations: 3.609 kB / 0.5555 GB, free: 29.36 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.12e-05/0.4677, allocations: 15.47 kB / 0.5556 GB, free: 29.36 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.128e-05/0.4678, allocations: 15.05 kB / 0.5556 GB, free: 29.35 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004369/0.4682, allocations: 267.6 kB / 0.5558 GB, free: 29.34 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001332/0.4695, allocations: 1.341 MB / 0.5571 GB, free: 28.58 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004334/0.47, allocations: 297.9 kB / 0.5574 GB, free: 28.47 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.795e-05/0.47, allocations: 10.75 kB / 0.5574 GB, free: 28.47 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003199/0.4703, allocations: 260 kB / 0.5577 GB, free: 28.37 MB / 378.7 MB Notification: Performance of pre-optimization done (n=42): time 2.054e-06/0.4704, allocations: 0 / 0.5577 GB, free: 28.37 MB / 378.7 MB Notification: Performance of matching and sorting (n=42): time 0.001046/0.4714, allocations: 0.8965 MB / 0.5586 GB, free: 27.93 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.454e-05/0.4715, allocations: 162.8 kB / 0.5587 GB, free: 27.77 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002198/0.4717, allocations: 221.8 kB / 0.5589 GB, free: 27.66 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.59e-05/0.4718, allocations: 42.05 kB / 0.559 GB, free: 27.63 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.475e-05/0.4719, allocations: 203 kB / 0.5592 GB, free: 27.49 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.823e-05/0.4719, allocations: 102.8 kB / 0.5593 GB, free: 27.44 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.97e-05/0.472, allocations: 13.59 kB / 0.5593 GB, free: 27.44 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.261e-05/0.472, allocations: 345 kB / 0.5596 GB, free: 27.12 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001877/0.4722, allocations: 117.3 kB / 0.5597 GB, free: 27.12 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000262/0.4725, allocations: 331.4 kB / 0.56 GB, free: 26.87 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002479/0.4728, allocations: 183 kB / 0.5602 GB, free: 26.85 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.38e-06/0.4728, allocations: 1.688 kB / 0.5602 GB, free: 26.85 MB / 378.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0006549/0.4734, allocations: 0.4908 MB / 0.5607 GB, free: 26.76 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.88e-05/0.4735, allocations: 9.719 kB / 0.5607 GB, free: 26.76 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.044e-05/0.4735, allocations: 5.875 kB / 0.5607 GB, free: 26.76 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.106e-05/0.4735, allocations: 15.44 kB / 0.5607 GB, free: 26.75 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002471/0.4738, allocations: 85.09 kB / 0.5608 GB, free: 26.74 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.414e-05/0.4738, allocations: 13.92 kB / 0.5608 GB, free: 26.74 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001685/0.474, allocations: 43.09 kB / 0.5608 GB, free: 26.72 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.232e-05/0.474, allocations: 27.88 kB / 0.5609 GB, free: 26.72 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * Number of states: 0 () * Number of discrete variables: 58 ($PRE.addFloat.pkgOut[1].dummy,addFloat.pkgOut[1].dummy,$PRE.addInteger.pkgOut[1].dummy,addInteger.pkgOut[1].dummy,$PRE.uDPSend.dummy,uDPSend.dummy,$PRE.addReal.pkgOut[1].dummy,addReal.pkgOut[1].dummy,$PRE.packager.pkgOut.dummy,packager.pkgOut.dummy,$whenCondition2,addInteger.pkgOut[1].trigger,addInteger.pkgOut[1].backwardTrigger,addInteger.u[1],$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.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.uDPReceive.nRecvbufOverwrites,uDPReceive.nRecvbufOverwrites,$PRE.uDPReceive.nRecvBytes,uDPReceive.nRecvBytes,$PRE.uDPReceive.pkgOut.dummy,uDPReceive.pkgOut.dummy,$whenCondition1,getFloat.pkgOut[1].trigger,getInteger.pkgIn.userPkgBitSize,getInteger.pkgIn.backwardTrigger,uDPReceive.bufferSize,getReal.pkgIn.autoPkgBitSize,getInteger.pkgIn.autoPkgBitSize,getFloat.pkgIn.autoPkgBitSize,uDPSend.bufferSize,packager.backwardPropagatedBufferSize,packager.bufferSize,addReal.pkgIn.autoPkgBitSize,uDPSend.pkgIn.userPkgBitSize,uDPSend.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 (66): * Single equations (assignments): 66 * 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.0002212/0.4742, allocations: 242.2 kB / 0.5611 GB, free: 26.57 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.478e-05/0.4743, allocations: 29.05 kB / 0.5611 GB, free: 26.56 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003498/0.4746, allocations: 232.6 kB / 0.5613 GB, free: 26.52 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.342e-06/0.4746, allocations: 4.062 kB / 0.5614 GB, free: 26.52 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.244e-06/0.4747, allocations: 1.031 kB / 0.5614 GB, free: 26.52 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.721e-06/0.4747, allocations: 4.953 kB / 0.5614 GB, free: 26.52 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001194/0.4759, allocations: 1.023 MB / 0.5624 GB, free: 26.11 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.637e-06/0.4759, allocations: 0.9688 kB / 0.5624 GB, free: 26.11 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.746e-05/0.4759, allocations: 17.72 kB / 0.5624 GB, free: 26.11 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.21e-06/0.476, allocations: 2.312 kB / 0.5624 GB, free: 26.11 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.945e-05/0.476, allocations: 12.36 kB / 0.5624 GB, free: 26.11 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.995e-06/0.476, allocations: 3 kB / 0.5624 GB, free: 26.11 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/0.476, allocations: 1.375 kB / 0.5624 GB, free: 26.11 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000735/0.4767, allocations: 0.6928 MB / 0.5631 GB, free: 25.81 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.179e-05/0.4768, allocations: 106.1 kB / 0.5632 GB, free: 25.7 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.705e-05/0.4769, allocations: 5.703 kB / 0.5632 GB, free: 25.7 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001392/0.477, allocations: 10.31 kB / 0.5632 GB, free: 25.7 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.155e-05/0.477, allocations: 21.53 kB / 0.5632 GB, free: 25.7 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.912e-05/0.4771, allocations: 22.53 kB / 0.5632 GB, free: 25.7 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001067/0.4772, allocations: 138.6 kB / 0.5634 GB, free: 25.61 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4772, allocations: 96 / 0.5634 GB, free: 25.61 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006207/0.4778, allocations: 176.4 kB / 0.5635 GB, free: 25.56 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 37 (getFloat.pkgOut[1].trigger,$whenCondition1,uDPReceive.pkgOut.dummy,uDPReceive.nRecvBytes,uDPReceive.nRecvbufOverwrites,getReal.pkgOut[1].dummy,getReal.y[1],getReal.y[2],getReal.y[3],getReal.dummy,getInteger.y[1],getInteger.dummy,getFloat.pkgOut[1].dummy,getFloat.y[1],getFloat.y[2],getFloat.dummy,uDPReceive.bufferSize,getReal.pkgIn.autoPkgBitSize,getInteger.pkgIn.autoPkgBitSize,getFloat.pkgIn.autoPkgBitSize,addInteger.pkgOut[1].trigger,$whenCondition2,packager.pkgOut.dummy,addReal.pkgOut[1].dummy,uDPSend.bufferSize,uDPSend.dummy,addInteger.pkgOut[1].dummy,addInteger.pkgOut[1].backwardTrigger,addInteger.u[1],addFloat.pkgOut[1].dummy,packager.backwardPropagatedBufferSize,packager.bufferSize,addReal.pkgIn.autoPkgBitSize,uDPSend.pkgIn.userPkgBitSize,uDPSend.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 (34): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 23 * 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.0006678/0.4785, allocations: 373 kB / 0.5639 GB, free: 25.38 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005719/0.4791, allocations: 372.8 kB / 0.5642 GB, free: 25.35 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.4791, allocations: 1.281 kB / 0.5642 GB, free: 25.35 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002343/0.4794, allocations: 161.5 kB / 0.5644 GB, free: 25.34 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004213/0.4798, allocations: 61.89 kB / 0.5645 GB, free: 25.34 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001771/0.4816, allocations: 0.962 MB / 0.5654 GB, free: 24.89 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000383/0.482, allocations: 0.8289 MB / 0.5662 GB, free: 24.13 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001484/0.4821, allocations: 55.67 kB / 0.5663 GB, free: 24.11 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.503e-05/0.4822, allocations: 24.56 kB / 0.5663 GB, free: 24.1 MB / 378.7 MB Notification: Performance of SimCode: time 4.71e-07/0.4822, allocations: 3.938 kB / 0.5663 GB, free: 24.09 MB / 378.7 MB Notification: Performance of Templates: time 0.009079/0.4913, allocations: 4.946 MB / 0.5711 GB, free: 21.63 MB / 378.7 MB make -j1 -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPAutoBufferSize.makefile (rm -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPAutoBufferSize.pipe ; mkfifo Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPAutoBufferSize.pipe ; head -c 1048576 < Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPAutoBufferSize.pipe >> ../files/Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPAutoBufferSize.sim & ./Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPAutoBufferSize -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPAutoBufferSize.pipe 2>&1)