Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemory.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.0.0-master/package.mo", uses=false) Using package Modelica_DeviceDrivers with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.0.0-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_SharedMemory,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemory") translateModel(Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemory,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemory") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008828/0.0008828, allocations: 172 kB / 16.8 MB, free: 4.902 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.264/1.264, allocations: 223.3 MB / 240.8 MB, free: 11.7 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.0008884/0.0008885, allocations: 99.97 kB / 292 MB, free: 10.77 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.0.0-master/package.mo): time 0.05606/0.05606, allocations: 12.05 MB / 355.1 MB, free: 12.02 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003403/0.0003402, allocations: 16 kB / 419.2 MB, free: 53.57 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08529/0.08564, allocations: 53.35 MB / 472.5 MB, free: 240 kB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2935/0.3792, allocations: 84.69 MB / 0.5441 GB, free: 12.86 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000235/0.3794, allocations: 75.95 kB / 0.5442 GB, free: 12.78 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01955/0.399, allocations: 7.27 MB / 0.5513 GB, free: 5.512 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.094e-06/0.3991, allocations: 0 / 0.5513 GB, free: 5.512 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.633e-05/0.3991, allocations: 8 kB / 0.5513 GB, free: 5.504 MB / 362.7 MB Warning: Alias equations of external objects are not Modelica compliant as in: getInteger.pkgIn.pkg = getReal.pkgOut[1].pkg getReal.pkgIn.pkg = sharedMemoryRead.pkgOut.pkg addInteger.pkgOut[1].pkg = sharedMemoryWrite.pkgIn.pkg addInteger.pkgIn.pkg = addReal.pkgOut[1].pkg addReal.pkgIn.pkg = packager.pkgOut.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: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.001298/0.4004, allocations: 0.8104 MB / 0.5521 GB, free: 4.621 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.315e-05/0.4005, allocations: 12.03 kB / 0.5521 GB, free: 4.609 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.954e-05/0.4006, allocations: 40.47 kB / 0.5522 GB, free: 4.57 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003917/0.401, allocations: 292.4 kB / 0.5524 GB, free: 4.246 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.946e-05/0.401, allocations: 21.03 kB / 0.5525 GB, free: 4.223 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.49e-05/0.4011, allocations: 36.31 kB / 0.5525 GB, free: 4.188 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005909/0.4017, allocations: 368.9 kB / 0.5529 GB, free: 3.801 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.39e-05/0.4017, allocations: 192 / 0.5529 GB, free: 3.801 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.439e-05/0.4017, allocations: 15.94 kB / 0.5529 GB, free: 3.785 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.142e-05/0.4018, allocations: 8 kB / 0.5529 GB, free: 3.777 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003384/0.4021, allocations: 182.2 kB / 0.5531 GB, free: 3.602 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001305/0.4034, allocations: 1.154 MB / 0.5542 GB, free: 2.379 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004163/0.4038, allocations: 250.4 kB / 0.5544 GB, free: 2.098 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001839/0.404, allocations: 122.6 kB / 0.5545 GB, free: 1.969 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.041e-05/0.4041, allocations: 7.984 kB / 0.5545 GB, free: 1.961 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002747/0.4044, allocations: 211.6 kB / 0.5547 GB, free: 1.727 MB / 362.7 MB Notification: Performance of pre-optimization done (n=31): time 2.013e-06/0.4044, allocations: 3.938 kB / 0.5547 GB, free: 1.723 MB / 362.7 MB Notification: Performance of matching and sorting (n=31): time 0.000808/0.4052, allocations: 449.2 kB / 0.5552 GB, free: 1.277 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.836e-05/0.4053, allocations: 152.5 kB / 0.5553 GB, free: 1.098 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001982/0.4055, allocations: 215 kB / 0.5555 GB, free: 0.875 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.328e-05/0.4055, allocations: 37.7 kB / 0.5556 GB, free: 0.832 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001023/0.4056, allocations: 176.3 kB / 0.5557 GB, free: 0.6562 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.524e-05/0.4057, allocations: 71.16 kB / 0.5558 GB, free: 0.5859 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.708e-05/0.4057, allocations: 8 kB / 0.5558 GB, free: 0.5781 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001075/0.4058, allocations: 338.8 kB / 0.5561 GB, free: 244 kB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001682/0.406, allocations: 92.81 kB / 0.5562 GB, free: 152 kB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002468/0.4063, allocations: 239.1 kB / 0.5564 GB, free: 15.85 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004295/0.4067, allocations: 374.4 kB / 0.5568 GB, free: 15.42 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.376e-06/0.4067, allocations: 0 / 0.5568 GB, free: 15.42 MB / 378.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0005829/0.4073, allocations: 381 kB / 0.5572 GB, free: 15.04 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.74e-05/0.4073, allocations: 8 kB / 0.5572 GB, free: 15.03 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.686e-06/0.4073, allocations: 4 kB / 0.5572 GB, free: 15.03 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.782e-05/0.4074, allocations: 8 kB / 0.5572 GB, free: 15.02 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001854/0.4076, allocations: 59.83 kB / 0.5572 GB, free: 14.96 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.377e-05/0.4076, allocations: 12.31 kB / 0.5573 GB, free: 14.95 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001318/0.4077, allocations: 23.84 kB / 0.5573 GB, free: 14.93 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.822e-05/0.4078, allocations: 20 kB / 0.5573 GB, free: 14.91 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 42 ($PRE.sharedMemoryWrite.dummy,sharedMemoryWrite.dummy,$PRE.addInteger.pkgOut[1].dummy,addInteger.pkgOut[1].dummy,$PRE.addReal.pkgOut[1].dummy,addReal.pkgOut[1].dummy,$PRE.packager.pkgOut.dummy,packager.pkgOut.dummy,addInteger.u[1],$whenCondition2,addInteger.pkgOut[1].trigger,addInteger.pkgOut[1].backwardTrigger,$PRE.sharedMemoryRead.pkgOut.dummy,sharedMemoryRead.pkgOut.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,$whenCondition1,getReal.pkgOut[1].trigger,getInteger.pkgIn.userPkgBitSize,getInteger.pkgIn.backwardTrigger,getReal.pkgIn.autoPkgBitSize,getInteger.pkgIn.autoPkgBitSize,sharedMemoryRead.bufferSize,sharedMemoryWrite.bufferSize,packager.backwardPropagatedBufferSize,packager.bufferSize,addReal.pkgIn.autoPkgBitSize,addInteger.pkgIn.autoPkgBitSize,sharedMemoryWrite.pkgIn.userPkgBitSize,sharedMemoryWrite.pkgIn.autoPkgBitSize) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (49): * Single equations (assignments): 49 * 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.0001983/0.408, allocations: 203.1 kB / 0.5575 GB, free: 14.7 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.773e-05/0.408, allocations: 23.66 kB / 0.5575 GB, free: 14.68 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003181/0.4083, allocations: 191.9 kB / 0.5577 GB, free: 14.48 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.889e-06/0.4083, allocations: 4 kB / 0.5577 GB, free: 14.48 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.271e-06/0.4084, allocations: 3.938 kB / 0.5577 GB, free: 14.47 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.08e-06/0.4084, allocations: 0 / 0.5577 GB, free: 14.47 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009308/0.4093, allocations: 0.8332 MB / 0.5585 GB, free: 13.58 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.535e-06/0.4093, allocations: 0 / 0.5585 GB, free: 13.58 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.833e-05/0.4094, allocations: 11.94 kB / 0.5585 GB, free: 13.57 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.739e-06/0.4094, allocations: 4 kB / 0.5585 GB, free: 13.57 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.123e-05/0.4094, allocations: 8.422 kB / 0.5585 GB, free: 13.56 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.386e-06/0.4094, allocations: 3.938 kB / 0.5585 GB, free: 13.55 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.518e-06/0.4094, allocations: 8 kB / 0.5586 GB, free: 13.55 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006008/0.41, allocations: 0.5293 MB / 0.5591 GB, free: 13 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.727e-05/0.4101, allocations: 96.8 kB / 0.5592 GB, free: 12.88 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.301e-05/0.4101, allocations: 11.98 kB / 0.5592 GB, free: 12.87 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001262/0.4103, allocations: 7.984 kB / 0.5592 GB, free: 12.86 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.497e-05/0.4103, allocations: 19.92 kB / 0.5592 GB, free: 12.84 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.431e-05/0.4104, allocations: 15.98 kB / 0.5592 GB, free: 12.83 MB / 378.7 MB Notification: Performance of sorting global known variables: time 8.876e-05/0.4105, allocations: 124.1 kB / 0.5593 GB, free: 12.71 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4105, allocations: 0 / 0.5593 GB, free: 12.71 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000511/0.411, allocations: 135.7 kB / 0.5595 GB, free: 12.57 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: 28 (getReal.pkgOut[1].trigger,$whenCondition1,getReal.pkgOut[1].dummy,getReal.y[1],getReal.y[2],getReal.y[3],getReal.dummy,getInteger.y[1],getInteger.dummy,sharedMemoryRead.pkgOut.dummy,getReal.pkgIn.autoPkgBitSize,getInteger.pkgIn.autoPkgBitSize,sharedMemoryRead.bufferSize,addInteger.pkgOut[1].trigger,$whenCondition2,packager.pkgOut.dummy,addReal.pkgOut[1].dummy,addInteger.pkgOut[1].dummy,addInteger.pkgOut[1].backwardTrigger,addInteger.u[1],sharedMemoryWrite.bufferSize,sharedMemoryWrite.dummy,packager.backwardPropagatedBufferSize,packager.bufferSize,addReal.pkgIn.autoPkgBitSize,addInteger.pkgIn.autoPkgBitSize,sharedMemoryWrite.pkgIn.userPkgBitSize,sharedMemoryWrite.pkgIn.autoPkgBitSize) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (27): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 18 * 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.0006592/0.4116, allocations: 339.7 kB / 0.5598 GB, free: 12.29 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004474/0.4121, allocations: 264.3 kB / 0.56 GB, free: 12.04 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.4121, allocations: 4 kB / 0.56 GB, free: 12.03 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001952/0.4123, allocations: 125 kB / 0.5602 GB, free: 11.91 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005012/0.4128, allocations: 51.88 kB / 0.5602 GB, free: 11.86 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001056/0.4139, allocations: 0.6347 MB / 0.5608 GB, free: 11.19 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003157/0.4142, allocations: 0.7753 MB / 0.5616 GB, free: 10.39 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001099/0.4143, allocations: 42.25 kB / 0.5616 GB, free: 10.35 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.201e-05/0.4144, allocations: 19.44 kB / 0.5616 GB, free: 10.33 MB / 378.7 MB Notification: Performance of SimCode: time 2.4e-07/0.4144, allocations: 0 / 0.5616 GB, free: 10.33 MB / 378.7 MB Notification: Performance of Templates: time 0.007229/0.4216, allocations: 3.736 MB / 0.5653 GB, free: 6.637 MB / 378.7 MB make -j1 -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemory.makefile (rm -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemory.pipe ; mkfifo Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemory.pipe ; head -c 1048576 < Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemory.pipe >> ../files/Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemory.sim & ./Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemory -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemory.pipe 2>&1)