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.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_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.0009198/0.0009198, allocations: 180.9 kB / 8.049 MB, free: 1.027 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.209/1.209, 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.0007866/0.0007866, allocations: 91.52 kB / 280.9 MB, free: 5.328 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.04731/0.04731, allocations: 11.9 MB / 343.6 MB, free: 3.492 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.225e-05/1.228e-05, allocations: 2.594 kB / 403.1 MB, free: 45.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07783/0.07785, allocations: 53.36 MB / 456.5 MB, free: 14.81 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3165/0.3944, allocations: 83.93 MB / 0.5277 GB, free: 16.93 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001629/0.3946, allocations: 71.39 kB / 0.5278 GB, free: 16.93 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01768/0.4123, allocations: 7.197 MB / 0.5348 GB, free: 16.25 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.042e-06/0.4123, allocations: 0 / 0.5348 GB, free: 16.25 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.897e-05/0.4124, allocations: 11.09 kB / 0.5349 GB, free: 16.25 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.0009705/0.4133, allocations: 0.7886 MB / 0.5356 GB, free: 15.66 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.934e-05/0.4134, allocations: 13.47 kB / 0.5356 GB, free: 15.66 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.008e-05/0.4135, allocations: 33.19 kB / 0.5357 GB, free: 15.64 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003352/0.4138, allocations: 285.5 kB / 0.5359 GB, free: 15.42 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.422e-05/0.4139, allocations: 17.06 kB / 0.536 GB, free: 15.42 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.175e-05/0.4139, allocations: 25.27 kB / 0.536 GB, free: 15.41 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003515/0.4143, allocations: 160.5 kB / 0.5361 GB, free: 15.41 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000534/0.4148, allocations: 317 kB / 0.5364 GB, free: 15.31 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.281e-05/0.4148, allocations: 4.469 kB / 0.5364 GB, free: 15.31 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.989e-05/0.4149, allocations: 5.812 kB / 0.5364 GB, free: 15.31 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.565e-05/0.4149, allocations: 13.78 kB / 0.5365 GB, free: 15.3 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001008/0.4159, allocations: 1.082 MB / 0.5375 GB, free: 14.6 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003049/0.4162, allocations: 232.1 kB / 0.5377 GB, free: 14.49 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001248/0.4164, allocations: 110.4 kB / 0.5378 GB, free: 14.46 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.366e-05/0.4164, allocations: 4.703 kB / 0.5378 GB, free: 14.46 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002175/0.4166, allocations: 202.7 kB / 0.538 GB, free: 14.36 MB / 362.7 MB Notification: Performance of pre-optimization done (n=31): time 1.753e-06/0.4166, allocations: 224 / 0.538 GB, free: 14.36 MB / 362.7 MB Notification: Performance of matching and sorting (n=31): time 0.0007033/0.4173, allocations: 357.4 kB / 0.5384 GB, free: 14.31 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.553e-05/0.4174, allocations: 149.4 kB / 0.5385 GB, free: 14.15 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001446/0.4176, allocations: 192.8 kB / 0.5387 GB, free: 14.04 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.367e-05/0.4176, allocations: 36.64 kB / 0.5387 GB, free: 14 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.687e-05/0.4177, allocations: 173.8 kB / 0.5389 GB, free: 13.88 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.927e-05/0.4177, allocations: 78.27 kB / 0.539 GB, free: 13.84 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.383e-05/0.4177, allocations: 0 / 0.539 GB, free: 13.84 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 5.197e-05/0.4178, allocations: 333 kB / 0.5393 GB, free: 13.53 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001277/0.4179, allocations: 79.72 kB / 0.5394 GB, free: 13.53 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001782/0.4181, allocations: 225.1 kB / 0.5396 GB, free: 13.35 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002549/0.4184, allocations: 140.5 kB / 0.5397 GB, free: 13.33 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/0.4184, allocations: 0 / 0.5397 GB, free: 13.33 MB / 362.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0005031/0.4189, allocations: 336.4 kB / 0.54 GB, free: 13.26 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.607e-05/0.4189, allocations: 7.5 kB / 0.5401 GB, free: 13.26 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.115e-06/0.4189, allocations: 5 kB / 0.5401 GB, free: 13.26 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.653e-05/0.4189, allocations: 7.594 kB / 0.5401 GB, free: 13.26 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000188/0.4191, allocations: 65.66 kB / 0.5401 GB, free: 13.25 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.377e-06/0.4192, allocations: 8.906 kB / 0.5401 GB, free: 13.25 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001226/0.4193, allocations: 23.19 kB / 0.5402 GB, free: 13.23 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.577e-05/0.4193, allocations: 22.27 kB / 0.5402 GB, free: 13.23 MB / 362.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 () * 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.0001099/0.4194, allocations: 153.4 kB / 0.5403 GB, free: 13.1 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.459e-05/0.4195, allocations: 19.91 kB / 0.5403 GB, free: 13.09 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002854/0.4198, allocations: 176.3 kB / 0.5405 GB, free: 13.06 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.586e-06/0.4198, allocations: 3.969 kB / 0.5405 GB, free: 13.06 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/0.4198, allocations: 0 / 0.5405 GB, free: 13.06 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.43e-06/0.4198, allocations: 1.922 kB / 0.5405 GB, free: 13.06 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001108/0.4209, allocations: 0.7594 MB / 0.5413 GB, free: 28.69 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.334e-06/0.4209, allocations: 3.875 kB / 0.5413 GB, free: 28.69 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.231e-05/0.421, allocations: 9.672 kB / 0.5413 GB, free: 28.69 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.126e-06/0.421, allocations: 0 / 0.5413 GB, free: 28.69 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.961e-05/0.421, allocations: 10.97 kB / 0.5413 GB, free: 28.69 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.337e-06/0.421, allocations: 5.625 kB / 0.5413 GB, free: 28.69 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.421, allocations: 3.938 kB / 0.5413 GB, free: 28.69 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006629/0.4217, allocations: 0.5728 MB / 0.5419 GB, free: 28.39 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.754e-05/0.4218, allocations: 102.5 kB / 0.542 GB, free: 28.27 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.487e-05/0.4218, allocations: 14.48 kB / 0.542 GB, free: 28.27 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001276/0.4219, allocations: 4.953 kB / 0.542 GB, free: 28.27 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.379e-05/0.422, allocations: 21.36 kB / 0.542 GB, free: 28.27 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.007e-05/0.422, allocations: 11.33 kB / 0.542 GB, free: 28.27 MB / 378.7 MB Notification: Performance of sorting global known variables: time 6.888e-05/0.4221, allocations: 122.9 kB / 0.5421 GB, free: 28.19 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.4221, allocations: 0 / 0.5421 GB, free: 28.19 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004813/0.4226, allocations: 122.9 kB / 0.5422 GB, free: 28.15 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 () * 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.0005621/0.4231, allocations: 328.5 kB / 0.5425 GB, free: 27.97 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0003516/0.4235, allocations: 235.5 kB / 0.5428 GB, free: 27.95 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/0.4235, allocations: 4.062 kB / 0.5428 GB, free: 27.95 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001382/0.4237, allocations: 115.5 kB / 0.5429 GB, free: 27.95 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003506/0.424, allocations: 42.11 kB / 0.5429 GB, free: 27.94 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006849/0.4247, allocations: 402.3 kB / 0.5433 GB, free: 27.78 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003259/0.425, allocations: 0.7942 MB / 0.5441 GB, free: 27.07 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 9.141e-05/0.4251, allocations: 35.06 kB / 0.5441 GB, free: 27.07 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.932e-05/0.4252, allocations: 25.89 kB / 0.5441 GB, free: 27.06 MB / 378.7 MB Notification: Performance of SimCode: time 2.31e-07/0.4252, allocations: 0 / 0.5441 GB, free: 27.06 MB / 378.7 MB Notification: Performance of Templates: time 0.005776/0.431, allocations: 3.631 MB / 0.5477 GB, free: 26.67 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)