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.001135/0.001135, allocations: 182.3 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.317/1.317, allocations: 221.4 MB / 235.1 MB, free: 14.44 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.000814/0.0008141, allocations: 98.28 kB / 286.1 MB, free: 13 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.05138/0.05138, allocations: 11.89 MB / 348.9 MB, free: 14.42 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 2.161e-05/2.162e-05, allocations: 0 / 410.1 MB, free: 58.29 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.072/0.07204, allocations: 53.35 MB / 463.5 MB, free: 4.898 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3168/0.3889, allocations: 84.6 MB / 0.5352 GB, free: 14.68 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001776/0.3891, allocations: 72.34 kB / 0.5353 GB, free: 14.64 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01843/0.4076, allocations: 7.239 MB / 0.5424 GB, free: 8.539 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.313e-06/0.4076, allocations: 0 / 0.5424 GB, free: 8.539 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.874e-05/0.4076, allocations: 12 kB / 0.5424 GB, free: 8.527 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.0009946/0.4086, allocations: 0.7867 MB / 0.5431 GB, free: 7.734 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.807e-05/0.4087, allocations: 8.594 kB / 0.5431 GB, free: 7.727 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.754e-05/0.4087, allocations: 39.61 kB / 0.5432 GB, free: 7.688 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003559/0.4091, allocations: 291.9 kB / 0.5435 GB, free: 7.391 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.796e-05/0.4091, allocations: 23.78 kB / 0.5435 GB, free: 7.379 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.108e-05/0.4092, allocations: 30.98 kB / 0.5435 GB, free: 7.355 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000509/0.4097, allocations: 356.4 kB / 0.5439 GB, free: 7.062 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.103e-05/0.4097, allocations: 4 kB / 0.5439 GB, free: 7.059 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.029e-05/0.4098, allocations: 14.03 kB / 0.5439 GB, free: 7.051 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.394e-06/0.4098, allocations: 8 kB / 0.5439 GB, free: 7.043 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002896/0.4101, allocations: 181.4 kB / 0.5441 GB, free: 6.922 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001193/0.4113, allocations: 1.16 MB / 0.5452 GB, free: 5.84 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003733/0.4117, allocations: 243.9 kB / 0.5454 GB, free: 5.617 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001534/0.4118, allocations: 117 kB / 0.5455 GB, free: 5.527 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.606e-05/0.4119, allocations: 4 kB / 0.5455 GB, free: 5.523 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002673/0.4121, allocations: 211.1 kB / 0.5457 GB, free: 5.328 MB / 362.7 MB Notification: Performance of pre-optimization done (n=31): time 1.502e-06/0.4121, allocations: 3.938 kB / 0.5457 GB, free: 5.324 MB / 362.7 MB Notification: Performance of matching and sorting (n=31): time 0.0005938/0.4127, allocations: 354.2 kB / 0.5461 GB, free: 5.043 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.317e-05/0.4128, allocations: 151.1 kB / 0.5462 GB, free: 4.867 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001718/0.413, allocations: 198.6 kB / 0.5464 GB, free: 4.695 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.761e-05/0.413, allocations: 40.27 kB / 0.5464 GB, free: 4.656 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.655e-05/0.4131, allocations: 173.8 kB / 0.5466 GB, free: 4.508 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.74e-05/0.4132, allocations: 73.72 kB / 0.5467 GB, free: 4.449 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.543e-05/0.4132, allocations: 7.875 kB / 0.5467 GB, free: 4.445 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000102/0.4133, allocations: 334.4 kB / 0.547 GB, free: 4.121 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001389/0.4135, allocations: 87.59 kB / 0.5471 GB, free: 4.062 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002071/0.4137, allocations: 242 kB / 0.5473 GB, free: 3.801 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001849/0.4139, allocations: 134.2 kB / 0.5475 GB, free: 3.703 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.866e-06/0.4139, allocations: 0 / 0.5475 GB, free: 3.703 MB / 362.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0004966/0.4144, allocations: 377.5 kB / 0.5478 GB, free: 3.402 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.622e-05/0.4144, allocations: 5.406 kB / 0.5478 GB, free: 3.398 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.456e-06/0.4144, allocations: 8 kB / 0.5478 GB, free: 3.391 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.882e-05/0.4145, allocations: 8.594 kB / 0.5478 GB, free: 3.383 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001963/0.4147, allocations: 59.72 kB / 0.5479 GB, free: 3.328 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.456e-05/0.4147, allocations: 15.95 kB / 0.5479 GB, free: 3.312 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001276/0.4148, allocations: 27.5 kB / 0.5479 GB, free: 3.289 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.884e-05/0.4148, allocations: 23.8 kB / 0.548 GB, free: 3.27 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.0001193/0.415, allocations: 157.6 kB / 0.5481 GB, free: 3.117 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.442e-05/0.415, allocations: 19.81 kB / 0.5481 GB, free: 3.098 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002956/0.4153, allocations: 191.7 kB / 0.5483 GB, free: 2.938 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.48e-06/0.4153, allocations: 4 kB / 0.5483 GB, free: 2.934 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.392e-06/0.4153, allocations: 4.188 kB / 0.5483 GB, free: 2.93 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.913e-06/0.4154, allocations: 3.953 kB / 0.5483 GB, free: 2.926 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008082/0.4162, allocations: 0.8065 MB / 0.5491 GB, free: 2.203 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.867e-06/0.4162, allocations: 4 kB / 0.5491 GB, free: 2.199 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.412e-05/0.4162, allocations: 11.94 kB / 0.5491 GB, free: 2.188 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.248e-06/0.4162, allocations: 4 kB / 0.5491 GB, free: 2.184 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.151e-05/0.4163, allocations: 11.92 kB / 0.5491 GB, free: 2.172 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.328e-06/0.4163, allocations: 7.953 kB / 0.5491 GB, free: 2.164 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.4163, allocations: 0 / 0.5491 GB, free: 2.164 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005441/0.4168, allocations: 0.5706 MB / 0.5497 GB, free: 1.637 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.912e-05/0.4169, allocations: 104.8 kB / 0.5498 GB, free: 1.516 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.96e-05/0.4169, allocations: 4 kB / 0.5498 GB, free: 1.512 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001237/0.4171, allocations: 7.672 kB / 0.5498 GB, free: 1.508 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.746e-05/0.4171, allocations: 15.92 kB / 0.5498 GB, free: 1.496 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.569e-05/0.4171, allocations: 15.98 kB / 0.5498 GB, free: 1.48 MB / 362.7 MB Notification: Performance of sorting global known variables: time 7.519e-05/0.4172, allocations: 123.8 kB / 0.55 GB, free: 1.371 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4172, allocations: 0 / 0.55 GB, free: 1.371 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004657/0.4177, allocations: 134.8 kB / 0.5501 GB, free: 1.258 MB / 362.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.0006218/0.4183, allocations: 337.6 kB / 0.5504 GB, free: 0.9766 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003889/0.4187, allocations: 258.1 kB / 0.5507 GB, free: 0.7852 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.4187, allocations: 0 / 0.5507 GB, free: 0.7852 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001723/0.4189, allocations: 126.5 kB / 0.5508 GB, free: 0.6953 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003404/0.4193, allocations: 45.5 kB / 0.5508 GB, free: 0.6602 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007977/0.4201, allocations: 418.8 kB / 0.5512 GB, free: 284 kB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000359/0.4205, allocations: 0.7905 MB / 0.552 GB, free: 15.46 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001061/0.4206, allocations: 42 kB / 0.552 GB, free: 15.42 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.632e-05/0.4206, allocations: 23.42 kB / 0.5521 GB, free: 15.4 MB / 378.7 MB Notification: Performance of SimCode: time 2.61e-07/0.4206, allocations: 3.938 kB / 0.5521 GB, free: 15.39 MB / 378.7 MB Notification: Performance of Templates: time 0.006868/0.4275, allocations: 3.726 MB / 0.5557 GB, free: 11.72 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)