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.0009734/0.0009734, allocations: 181.7 kB / 13.23 MB, free: 2.086 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.269/1.269, allocations: 221.4 MB / 235.1 MB, free: 14.4 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008032/0.0008033, allocations: 95 kB / 286.1 MB, free: 12.98 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.04961/0.04961, allocations: 11.89 MB / 348.9 MB, free: 14.4 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 2.549e-05/2.559e-05, allocations: 4 kB / 410.1 MB, free: 58.27 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08224/0.08228, allocations: 53.36 MB / 463.5 MB, free: 4.891 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3147/0.3971, allocations: 85.68 MB / 0.5363 GB, free: 13.61 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002407/0.3974, allocations: 71.72 kB / 0.5363 GB, free: 13.57 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02428/0.4217, allocations: 8.92 MB / 0.5451 GB, free: 6.059 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.192e-06/0.4217, allocations: 0 / 0.5451 GB, free: 6.059 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.478e-05/0.4217, allocations: 12 kB / 0.5451 GB, free: 6.047 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.001376/0.4231, allocations: 0.9931 MB / 0.546 GB, free: 5.027 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.211e-05/0.4232, allocations: 11.97 kB / 0.5461 GB, free: 5.016 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.721e-05/0.4233, allocations: 51.47 kB / 0.5461 GB, free: 4.965 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004367/0.4237, allocations: 327.1 kB / 0.5464 GB, free: 4.641 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.159e-05/0.4238, allocations: 26.84 kB / 0.5464 GB, free: 4.625 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.271e-05/0.4238, allocations: 41.92 kB / 0.5465 GB, free: 4.594 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000662/0.4245, allocations: 443.5 kB / 0.5469 GB, free: 4.254 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.092e-05/0.4245, allocations: 0 / 0.5469 GB, free: 4.254 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.631e-05/0.4245, allocations: 17.48 kB / 0.5469 GB, free: 4.246 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.307e-06/0.4246, allocations: 8 kB / 0.5469 GB, free: 4.238 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003737/0.4249, allocations: 243.2 kB / 0.5472 GB, free: 4.078 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001365/0.4263, allocations: 1.242 MB / 0.5484 GB, free: 2.949 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004018/0.4267, allocations: 253 kB / 0.5486 GB, free: 2.738 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001846/0.4269, allocations: 141.8 kB / 0.5487 GB, free: 2.633 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.772e-05/0.427, allocations: 7.188 kB / 0.5488 GB, free: 2.629 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002956/0.4273, allocations: 226 kB / 0.549 GB, free: 2.426 MB / 362.7 MB Notification: Performance of pre-optimization done (n=37): time 1.573e-06/0.4273, allocations: 0 / 0.549 GB, free: 2.426 MB / 362.7 MB Notification: Performance of matching and sorting (n=37): time 0.0006784/0.428, allocations: 448.9 kB / 0.5494 GB, free: 2.07 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.752e-05/0.428, allocations: 125.5 kB / 0.5495 GB, free: 1.93 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001906/0.4282, allocations: 192.6 kB / 0.5497 GB, free: 1.766 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.729e-05/0.4283, allocations: 39.2 kB / 0.5497 GB, free: 1.727 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001098/0.4284, allocations: 196.3 kB / 0.5499 GB, free: 1.559 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.868e-05/0.4285, allocations: 89.95 kB / 0.55 GB, free: 1.484 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.472e-05/0.4285, allocations: 7.375 kB / 0.55 GB, free: 1.484 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001224/0.4286, allocations: 342.2 kB / 0.5503 GB, free: 1.152 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000158/0.4288, allocations: 107.5 kB / 0.5504 GB, free: 1.082 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002664/0.4291, allocations: 283.1 kB / 0.5507 GB, free: 0.7617 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002261/0.4293, allocations: 162.9 kB / 0.5509 GB, free: 0.6445 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.317e-06/0.4293, allocations: 4 kB / 0.5509 GB, free: 0.6406 MB / 362.7 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.0005753/0.4299, allocations: 436.4 kB / 0.5513 GB, free: 300 kB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.785e-05/0.4299, allocations: 13.56 kB / 0.5513 GB, free: 288 kB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.086e-05/0.4299, allocations: 8 kB / 0.5513 GB, free: 280 kB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.86e-05/0.43, allocations: 8 kB / 0.5513 GB, free: 272 kB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002208/0.4302, allocations: 71.66 kB / 0.5514 GB, free: 204 kB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.628e-05/0.4302, allocations: 19.88 kB / 0.5514 GB, free: 184 kB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001447/0.4304, allocations: 34.62 kB / 0.5514 GB, free: 156 kB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.815e-05/0.4304, allocations: 19.94 kB / 0.5515 GB, free: 140 kB / 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 0.0001453/0.4306, allocations: 169.3 kB / 0.5516 GB, free: 15.97 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.451e-05/0.4306, allocations: 27.66 kB / 0.5516 GB, free: 15.95 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005054/0.4311, allocations: 353.1 kB / 0.552 GB, free: 15.68 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.899e-06/0.4311, allocations: 7.938 kB / 0.552 GB, free: 15.67 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.4311, allocations: 0 / 0.552 GB, free: 15.67 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.582e-06/0.4312, allocations: 3.953 kB / 0.552 GB, free: 15.67 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001094/0.4323, allocations: 0.8777 MB / 0.5529 GB, free: 14.91 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-06/0.4323, allocations: 3.938 kB / 0.5529 GB, free: 14.91 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.188e-05/0.4323, allocations: 15.92 kB / 0.5529 GB, free: 14.89 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.853e-06/0.4323, allocations: 7.953 kB / 0.5529 GB, free: 14.89 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.527e-05/0.4324, allocations: 7.984 kB / 0.5529 GB, free: 14.88 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.528e-06/0.4324, allocations: 4 kB / 0.5529 GB, free: 14.88 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.4324, allocations: 0 / 0.5529 GB, free: 14.88 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000662/0.4331, allocations: 0.5661 MB / 0.5534 GB, free: 14.37 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.618e-05/0.4331, allocations: 108.6 kB / 0.5535 GB, free: 14.25 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.071e-05/0.4332, allocations: 0 / 0.5535 GB, free: 14.25 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001049/0.4333, allocations: 15.92 kB / 0.5536 GB, free: 14.24 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.171e-05/0.4333, allocations: 15.92 kB / 0.5536 GB, free: 14.22 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.167e-05/0.4334, allocations: 23.42 kB / 0.5536 GB, free: 14.2 MB / 378.7 MB Notification: Performance of sorting global known variables: time 9.61e-05/0.4335, allocations: 127.7 kB / 0.5537 GB, free: 14.09 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4335, allocations: 0 / 0.5537 GB, free: 14.09 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005123/0.434, allocations: 154.9 kB / 0.5539 GB, free: 13.95 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.0006986/0.4347, allocations: 381.2 kB / 0.5542 GB, free: 13.64 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004791/0.4352, allocations: 318 kB / 0.5545 GB, free: 13.38 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.355e-06/0.4352, allocations: 0 / 0.5545 GB, free: 13.38 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002056/0.4354, allocations: 143.9 kB / 0.5547 GB, free: 13.24 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003705/0.4358, allocations: 59.89 kB / 0.5547 GB, free: 13.18 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001265/0.4371, allocations: 0.5761 MB / 0.5553 GB, free: 12.57 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003123/0.4374, allocations: 0.8112 MB / 0.5561 GB, free: 11.74 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001199/0.4375, allocations: 50.94 kB / 0.5561 GB, free: 11.69 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.612e-05/0.4376, allocations: 23.42 kB / 0.5562 GB, free: 11.67 MB / 378.7 MB Notification: Performance of SimCode: time 5.31e-07/0.4376, allocations: 0 / 0.5562 GB, free: 11.67 MB / 378.7 MB Notification: Performance of Templates: time 0.008372/0.446, allocations: 4.628 MB / 0.5607 GB, free: 7.074 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)