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: "" <> buildModelFMU(Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_TCPIP,fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers_Blocks_Examples_TestSerialPackager_TCPIP",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_TCPIP,fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers_Blocks_Examples_TestSerialPackager_TCPIP",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001347/0.001346, allocations: 176.7 kB / 8.051 MB, free: 1.023 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.418/1.418, allocations: 221.5 MB / 230 MB, free: 7.551 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.0009239/0.000924, allocations: 95.41 kB / 280.9 MB, free: 5.309 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.05036/0.05036, allocations: 11.91 MB / 343.6 MB, free: 3.48 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.467e-05/2.495e-05, allocations: 4.766 kB / 403.2 MB, free: 45.38 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09553/0.09558, allocations: 53.36 MB / 456.6 MB, free: 14.72 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3637/0.4593, allocations: 85.02 MB / 0.5289 GB, free: 16.73 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001995/0.4596, allocations: 73.64 kB / 0.529 GB, free: 16.73 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0228/0.4824, allocations: 8.881 MB / 0.5376 GB, free: 15.95 MB / 362.7 MB Notification: Performance of FrontEnd: time 9.22e-07/0.4824, allocations: 0 / 0.5376 GB, free: 15.95 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.084e-05/0.4824, allocations: 13.28 kB / 0.5377 GB, free: 15.94 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.001296/0.4837, allocations: 0.9974 MB / 0.5386 GB, free: 15.21 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.966e-05/0.4838, allocations: 9.594 kB / 0.5386 GB, free: 15.21 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.178e-05/0.4839, allocations: 45.41 kB / 0.5387 GB, free: 15.18 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003893/0.4843, allocations: 323.6 kB / 0.539 GB, free: 14.95 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.255e-05/0.4843, allocations: 18.09 kB / 0.539 GB, free: 14.95 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.108e-05/0.4844, allocations: 27.75 kB / 0.539 GB, free: 14.95 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004255/0.4848, allocations: 212.9 kB / 0.5392 GB, free: 14.94 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006004/0.4854, allocations: 402.4 kB / 0.5396 GB, free: 14.84 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.421e-05/0.4854, allocations: 7.859 kB / 0.5396 GB, free: 14.84 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.408e-05/0.4855, allocations: 1.969 kB / 0.5396 GB, free: 14.84 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.097e-06/0.4855, allocations: 11.28 kB / 0.5396 GB, free: 14.84 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001218/0.4867, allocations: 1.147 MB / 0.5408 GB, free: 14.18 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003334/0.4871, allocations: 240.3 kB / 0.541 GB, free: 14.11 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001422/0.4872, allocations: 134.8 kB / 0.5411 GB, free: 14.08 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.297e-05/0.4872, allocations: 9.703 kB / 0.5411 GB, free: 14.08 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002476/0.4875, allocations: 219.8 kB / 0.5413 GB, free: 13.99 MB / 362.7 MB Notification: Performance of pre-optimization done (n=37): time 1.743e-06/0.4875, allocations: 0 / 0.5413 GB, free: 13.99 MB / 362.7 MB Notification: Performance of matching and sorting (n=37): time 0.0008714/0.4884, allocations: 442.9 kB / 0.5418 GB, free: 13.93 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.847e-05/0.4884, allocations: 128 kB / 0.5419 GB, free: 13.81 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001351/0.4886, allocations: 189.2 kB / 0.5421 GB, free: 13.69 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.838e-05/0.4886, allocations: 39.05 kB / 0.5421 GB, free: 13.66 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.305e-05/0.4887, allocations: 195.5 kB / 0.5423 GB, free: 13.53 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.454e-05/0.4888, allocations: 86.05 kB / 0.5424 GB, free: 13.48 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.425e-05/0.4888, allocations: 0 / 0.5424 GB, free: 13.48 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 5.856e-05/0.4889, allocations: 338.8 kB / 0.5427 GB, free: 13.17 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001218/0.489, allocations: 92.64 kB / 0.5428 GB, free: 13.17 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001961/0.4892, allocations: 283 kB / 0.5431 GB, free: 12.93 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002942/0.4895, allocations: 155.7 kB / 0.5432 GB, free: 12.91 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.87e-06/0.4895, allocations: 3.844 kB / 0.5432 GB, free: 12.91 MB / 362.7 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.0005652/0.4901, allocations: 392.7 kB / 0.5436 GB, free: 12.84 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.834e-05/0.4901, allocations: 7.75 kB / 0.5436 GB, free: 12.84 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.075e-06/0.4901, allocations: 3.75 kB / 0.5436 GB, free: 12.84 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.931e-05/0.4901, allocations: 11.5 kB / 0.5436 GB, free: 12.84 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002218/0.4904, allocations: 70.53 kB / 0.5437 GB, free: 12.83 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.004e-05/0.4904, allocations: 15.31 kB / 0.5437 GB, free: 12.82 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001444/0.4905, allocations: 23.28 kB / 0.5437 GB, free: 12.81 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.99e-05/0.4906, allocations: 30.59 kB / 0.5437 GB, free: 12.8 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 0.0005688/0.4912, allocations: 157.9 kB / 0.5439 GB, free: 28.68 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0008144/0.492, allocations: 430.9 kB / 0.5443 GB, free: 28.62 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.426e-05/0.492, allocations: 27.14 kB / 0.5443 GB, free: 28.61 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006151/0.4926, allocations: 367.7 kB / 0.5447 GB, free: 28.56 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.07e-06/0.4927, allocations: 7.875 kB / 0.5447 GB, free: 28.56 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.543e-06/0.4927, allocations: 3.953 kB / 0.5447 GB, free: 28.55 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.312e-06/0.4927, allocations: 2.344 kB / 0.5447 GB, free: 28.55 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001148/0.4938, allocations: 0.7996 MB / 0.5455 GB, free: 28.27 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.557e-06/0.4939, allocations: 2.625 kB / 0.5455 GB, free: 28.27 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.456e-05/0.4939, allocations: 10.25 kB / 0.5455 GB, free: 28.27 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.382e-06/0.4939, allocations: 5.422 kB / 0.5455 GB, free: 28.27 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.696e-05/0.494, allocations: 17.52 kB / 0.5455 GB, free: 28.26 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.856e-06/0.494, allocations: 5.562 kB / 0.5455 GB, free: 28.25 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.867e-06/0.494, allocations: 1.469 kB / 0.5455 GB, free: 28.25 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007725/0.4948, allocations: 0.5713 MB / 0.5461 GB, free: 28.05 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.121e-05/0.4948, allocations: 100.6 kB / 0.5462 GB, free: 27.94 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.878e-05/0.4949, allocations: 6.547 kB / 0.5462 GB, free: 27.94 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001067/0.495, allocations: 6.531 kB / 0.5462 GB, free: 27.94 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.328e-05/0.495, allocations: 12.8 kB / 0.5462 GB, free: 27.94 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.095e-05/0.4951, allocations: 20.22 kB / 0.5462 GB, free: 27.94 MB / 378.7 MB Notification: Performance of sorting global known variables: time 9.078e-05/0.4952, allocations: 122.6 kB / 0.5463 GB, free: 27.86 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4952, allocations: 0 / 0.5463 GB, free: 27.86 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005406/0.4957, allocations: 150.4 kB / 0.5465 GB, free: 27.81 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.00176/0.4975, allocations: 1.508 MB / 0.5479 GB, free: 26.84 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004792/0.498, allocations: 288.3 kB / 0.5482 GB, free: 26.83 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.498, allocations: 1.656 kB / 0.5482 GB, free: 26.83 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002118/0.4982, allocations: 139.4 kB / 0.5483 GB, free: 26.82 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004458/0.4987, allocations: 64.22 kB / 0.5484 GB, free: 26.82 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00164/0.5003, allocations: 0.6954 MB / 0.5491 GB, free: 26.55 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003326/0.5007, allocations: 0.8125 MB / 0.5499 GB, free: 25.85 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001354/0.5008, allocations: 46.69 kB / 0.5499 GB, free: 25.84 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.863e-05/0.5009, allocations: 97.83 kB / 0.55 GB, free: 25.84 MB / 378.7 MB Notification: Performance of SimCode: time 2.5e-07/0.5009, allocations: 0 / 0.55 GB, free: 25.84 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0276/0.5285, allocations: 6.775 MB / 0.5566 GB, free: 25.23 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001902/0.5288, allocations: 202.8 kB / 0.5568 GB, free: 24.96 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.85/2.379, allocations: 3.812 kB / 0.5568 GB, free: 24.96 MB / 378.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Modelica_DeviceDrivers_Modelica_DeviceDrivers_Blocks_Examples_TestSerialPackager_TCPIP_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_DeviceDrivers_Modelica_DeviceDrivers_Blocks_Examples_TestSerialPackager_TCPIP.fmu > Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_TCPIP.pipe 2>&1)