Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_LCM.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_LCM,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_LCM") translateModel(Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_LCM,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_LCM") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009249/0.0009249, 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.215/1.215, allocations: 221.5 MB / 230 MB, free: 7.578 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.0007896/0.0007893, allocations: 93.34 kB / 280.9 MB, free: 5.312 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.04754/0.04754, allocations: 11.91 MB / 343.6 MB, free: 3.48 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.487e-05/1.49e-05, allocations: 2.688 kB / 403.1 MB, free: 45.44 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07446/0.07449, allocations: 53.36 MB / 456.5 MB, free: 14.8 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3119/0.3865, allocations: 85.47 MB / 0.5293 GB, free: 16.91 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002206/0.3867, allocations: 73.75 kB / 0.5293 GB, free: 16.91 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02344/0.4102, allocations: 9.68 MB / 0.5388 GB, free: 16.07 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.353e-06/0.4102, allocations: 0 / 0.5388 GB, free: 16.07 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.175e-05/0.4102, allocations: 11.53 kB / 0.5388 GB, free: 16.07 MB / 362.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 = lcmSend.pkgIn.pkg addFloat.pkgOut[1].pkg = addInteger.pkgIn.pkg addFloat.pkgIn.pkg = addReal.pkgOut[1].pkg getReal.pkgIn.pkg = lcmReceive.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: 105 * Number of variables: 105 Notification: Performance of Generate backend data structure: time 0.001118/0.4114, allocations: 1.014 MB / 0.5398 GB, free: 15.34 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.236e-05/0.4114, allocations: 7.781 kB / 0.5398 GB, free: 15.34 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.232e-05/0.4115, allocations: 59.59 kB / 0.5399 GB, free: 15.31 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00038/0.4119, allocations: 336 kB / 0.5402 GB, free: 15.08 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.634e-05/0.4119, allocations: 15.12 kB / 0.5402 GB, free: 15.08 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.677e-05/0.412, allocations: 29.56 kB / 0.5402 GB, free: 15.08 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003709/0.4124, allocations: 215.6 kB / 0.5404 GB, free: 15.08 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005151/0.4129, allocations: 425.1 kB / 0.5408 GB, free: 14.98 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.409e-05/0.4129, allocations: 0 / 0.5408 GB, free: 14.98 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.512e-05/0.4129, allocations: 4.109 kB / 0.5408 GB, free: 14.98 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.588e-06/0.413, allocations: 15.48 kB / 0.5408 GB, free: 14.97 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00114/0.4141, allocations: 1.262 MB / 0.5421 GB, free: 14.23 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003309/0.4144, allocations: 270 kB / 0.5423 GB, free: 14.14 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001484/0.4146, allocations: 148.9 kB / 0.5425 GB, free: 14.1 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.721e-05/0.4146, allocations: 8.016 kB / 0.5425 GB, free: 14.1 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002508/0.4149, allocations: 246 kB / 0.5427 GB, free: 13.99 MB / 362.7 MB Notification: Performance of pre-optimization done (n=40): time 1.683e-06/0.4149, allocations: 4 kB / 0.5427 GB, free: 13.99 MB / 362.7 MB Notification: Performance of matching and sorting (n=40): time 0.0009205/0.4158, allocations: 454.6 kB / 0.5432 GB, free: 13.94 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.605e-05/0.4159, allocations: 152.1 kB / 0.5433 GB, free: 13.79 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001886/0.4161, allocations: 229.5 kB / 0.5435 GB, free: 13.68 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.759e-05/0.4161, allocations: 34.58 kB / 0.5436 GB, free: 13.65 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.528e-05/0.4162, allocations: 215.9 kB / 0.5438 GB, free: 13.51 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.336e-05/0.4163, allocations: 98.3 kB / 0.5439 GB, free: 13.46 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.932e-05/0.4163, allocations: 3.125 kB / 0.5439 GB, free: 13.46 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 5.739e-05/0.4164, allocations: 351 kB / 0.5442 GB, free: 13.14 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001492/0.4165, allocations: 103.2 kB / 0.5443 GB, free: 13.13 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002161/0.4168, allocations: 298.7 kB / 0.5446 GB, free: 12.89 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002873/0.4171, allocations: 175.2 kB / 0.5447 GB, free: 12.88 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.018e-06/0.4171, allocations: 7.719 kB / 0.5447 GB, free: 12.87 MB / 362.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0005913/0.4177, allocations: 432.9 kB / 0.5452 GB, free: 12.79 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.544e-05/0.4177, allocations: 9.406 kB / 0.5452 GB, free: 12.79 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.915e-06/0.4177, allocations: 7.938 kB / 0.5452 GB, free: 12.79 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.809e-05/0.4177, allocations: 11.28 kB / 0.5452 GB, free: 12.79 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002293/0.418, allocations: 77.23 kB / 0.5453 GB, free: 12.78 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.746e-06/0.418, allocations: 11.66 kB / 0.5453 GB, free: 12.78 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001598/0.4181, allocations: 22.12 kB / 0.5453 GB, free: 12.77 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.744e-05/0.4182, allocations: 26.31 kB / 0.5453 GB, free: 12.76 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * Number of states: 0 () * Number of discrete variables: 54 ($PRE.addFloat.pkgOut[1].dummy,addFloat.pkgOut[1].dummy,$PRE.addInteger.pkgOut[1].dummy,addInteger.pkgOut[1].dummy,$PRE.lcmSend.dummy,lcmSend.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.lcmReceive.pkgOut.dummy,lcmReceive.pkgOut.dummy,$whenCondition1,getFloat.pkgOut[1].trigger,getInteger.pkgIn.userPkgBitSize,getInteger.pkgIn.backwardTrigger,lcmReceive.bufferSize,getReal.pkgIn.autoPkgBitSize,getInteger.pkgIn.autoPkgBitSize,getFloat.pkgIn.autoPkgBitSize,lcmSend.bufferSize,packager.backwardPropagatedBufferSize,packager.bufferSize,addReal.pkgIn.autoPkgBitSize,lcmSend.pkgIn.userPkgBitSize,lcmSend.pkgIn.autoPkgBitSize,addInteger.pkgIn.autoPkgBitSize,addFloat.pkgIn.autoPkgBitSize) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (62): * Single equations (assignments): 62 * 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.000108/0.4183, allocations: 166.2 kB / 0.5455 GB, free: 12.63 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.129e-05/0.4183, allocations: 33.92 kB / 0.5455 GB, free: 12.61 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003361/0.4187, allocations: 221.6 kB / 0.5457 GB, free: 12.57 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.689e-06/0.4187, allocations: 7.906 kB / 0.5457 GB, free: 12.57 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.989e-06/0.4187, allocations: 0 / 0.5457 GB, free: 12.57 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.47e-06/0.4187, allocations: 6.219 kB / 0.5457 GB, free: 12.57 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001409/0.4201, allocations: 0.9311 MB / 0.5466 GB, free: 28.2 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.755e-06/0.4201, allocations: 3.938 kB / 0.5466 GB, free: 28.19 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.217e-05/0.4202, allocations: 15.8 kB / 0.5467 GB, free: 28.19 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.498e-06/0.4202, allocations: 3.438 kB / 0.5467 GB, free: 28.19 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.399e-05/0.4202, allocations: 10.38 kB / 0.5467 GB, free: 28.19 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.076e-06/0.4203, allocations: 2.812 kB / 0.5467 GB, free: 28.19 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.083e-06/0.4203, allocations: 0 / 0.5467 GB, free: 28.19 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007949/0.4211, allocations: 0.6783 MB / 0.5473 GB, free: 27.89 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.856e-05/0.4211, allocations: 115.3 kB / 0.5474 GB, free: 27.78 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.9e-05/0.4212, allocations: 6.766 kB / 0.5475 GB, free: 27.78 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001446/0.4213, allocations: 11.12 kB / 0.5475 GB, free: 27.77 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.28e-05/0.4214, allocations: 20.61 kB / 0.5475 GB, free: 27.77 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.587e-05/0.4214, allocations: 22.12 kB / 0.5475 GB, free: 27.77 MB / 378.7 MB Notification: Performance of sorting global known variables: time 9.353e-05/0.4215, allocations: 139.7 kB / 0.5476 GB, free: 27.68 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4215, allocations: 0 / 0.5476 GB, free: 27.68 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005772/0.4221, allocations: 159.2 kB / 0.5478 GB, free: 27.64 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: 35 (getFloat.pkgOut[1].trigger,$whenCondition1,lcmReceive.pkgOut.dummy,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,lcmReceive.bufferSize,getReal.pkgIn.autoPkgBitSize,getInteger.pkgIn.autoPkgBitSize,getFloat.pkgIn.autoPkgBitSize,addInteger.pkgOut[1].trigger,$whenCondition2,packager.pkgOut.dummy,addReal.pkgOut[1].dummy,lcmSend.bufferSize,lcmSend.dummy,addInteger.pkgOut[1].dummy,addInteger.pkgOut[1].backwardTrigger,addInteger.u[1],addFloat.pkgOut[1].dummy,packager.backwardPropagatedBufferSize,packager.bufferSize,addReal.pkgIn.autoPkgBitSize,lcmSend.pkgIn.userPkgBitSize,lcmSend.pkgIn.autoPkgBitSize,addInteger.pkgIn.autoPkgBitSize,addFloat.pkgIn.autoPkgBitSize) * Number of discrete 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.0007126/0.4228, allocations: 380.5 kB / 0.5482 GB, free: 27.44 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004335/0.4232, allocations: 320 kB / 0.5485 GB, free: 27.41 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.4233, allocations: 0 / 0.5485 GB, free: 27.41 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001985/0.4235, allocations: 145 kB / 0.5486 GB, free: 27.41 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004695/0.4239, allocations: 76.5 kB / 0.5487 GB, free: 27.4 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008882/0.4248, allocations: 0.5225 MB / 0.5492 GB, free: 27.2 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003205/0.4252, allocations: 0.825 MB / 0.55 GB, free: 26.5 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001204/0.4253, allocations: 55.75 kB / 0.55 GB, free: 26.49 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.896e-05/0.4254, allocations: 29.42 kB / 0.5501 GB, free: 26.48 MB / 378.7 MB Notification: Performance of SimCode: time 2.71e-07/0.4254, allocations: 0 / 0.5501 GB, free: 26.48 MB / 378.7 MB Notification: Performance of Templates: time 0.00746/0.4328, allocations: 4.94 MB / 0.5549 GB, free: 25.96 MB / 378.7 MB make -j1 -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_LCM.makefile (rm -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_LCM.pipe ; mkfifo Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_LCM.pipe ; head -c 1048576 < Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_LCM.pipe >> ../files/Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_LCM.sim & ./Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_LCM -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_LCM.pipe 2>&1)