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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009649/0.0009647, allocations: 96.2 kB / 15.73 MB, free: 440 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001047/0.001046, allocations: 179.7 kB / 16.61 MB, free: 6.422 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.243/1.243, allocations: 223.2 MB / 240.6 MB, free: 5.457 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/package.mo): time 0.1882/0.1882, allocations: 12.03 MB / 303.7 MB, free: 1.746 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003232/0.0003233, allocations: 8 kB / 367.6 MB, free: 9.531 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1082/0.1085, allocations: 53.34 MB / 420.9 MB, free: 4.148 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemory): time 0.002841/0.1114, allocations: 2.322 MB / 423.2 MB, free: 1.809 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001171/0.1126, allocations: 0.6581 MB / 423.9 MB, free: 1.148 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.592e-05/0.1127, allocations: 7.938 kB / 423.9 MB, free: 1.141 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002016/0.1129, allocations: 47.64 kB / 423.9 MB, free: 1.094 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001309/0.1131, allocations: 43.88 kB / 424 MB, free: 1.051 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004117/0.1135, allocations: 159.6 kB / 424.1 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002404/0.1138, allocations: 183.5 kB / 424.3 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002248/0.114, allocations: 152.3 kB / 424.5 MB, free: 0.5664 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.999e-05/0.1141, allocations: 95.55 kB / 424.5 MB, free: 484 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001748/0.1143, allocations: 119.3 kB / 424.7 MB, free: 364 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.108e-05/0.1143, allocations: 12 kB / 424.7 MB, free: 352 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001693/0.1145, allocations: 87.88 kB / 424.8 MB, free: 264 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.114e-05/0.1146, allocations: 83.72 kB / 424.8 MB, free: 180 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.26e-05/0.1147, allocations: 73.52 kB / 424.9 MB, free: 100 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1969/0.3115, allocations: 346.6 kB / 425.3 MB, free: 36.57 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.3116, allocations: 0 / 425.3 MB, free: 36.57 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.615e-06/0.3116, allocations: 1.312 kB / 425.3 MB, free: 36.57 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.967e-06/0.3116, allocations: 0 / 425.3 MB, free: 36.57 MB / 350.1 MB Warning: Alias equations of external objects are not Modelica compliant as in: getReal.pkgOut[1].pkg = getReal.pkgIn.pkg addInteger.pkgOut[1].pkg = addInteger.pkgIn.pkg addReal.pkgOut[1].pkg = addReal.pkgIn.pkg getReal.pkgOut[1].pkg = getInteger.pkgIn.pkg sharedMemoryRead.pkgOut.pkg = getReal.pkgIn.pkg addInteger.pkgOut[1].pkg = sharedMemoryWrite.pkgIn.pkg addReal.pkgOut[1].pkg = addInteger.pkgIn.pkg packager.pkgOut.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.001187/0.3128, allocations: 0.7726 MB / 426 MB, free: 36.01 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.099e-05/0.3128, allocations: 10.94 kB / 426 MB, free: 36.01 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.602e-05/0.3129, allocations: 40.05 kB / 426.1 MB, free: 35.99 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003201/0.3133, allocations: 281.3 kB / 426.4 MB, free: 35.78 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.075e-05/0.3133, allocations: 23.28 kB / 426.4 MB, free: 35.78 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.85e-05/0.3134, allocations: 32.33 kB / 426.4 MB, free: 35.78 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005187/0.3139, allocations: 366 kB / 426.8 MB, free: 35.69 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.268e-05/0.3139, allocations: 3.094 kB / 426.8 MB, free: 35.69 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.06e-05/0.3139, allocations: 11.66 kB / 426.8 MB, free: 35.69 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.275e-05/0.314, allocations: 12.22 kB / 426.8 MB, free: 35.69 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003105/0.3143, allocations: 187.1 kB / 427 MB, free: 35.69 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001109/0.3154, allocations: 1.175 MB / 428.1 MB, free: 34.96 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003736/0.3158, allocations: 247.3 kB / 428.4 MB, free: 34.87 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.16e-05/0.3158, allocations: 8.938 kB / 428.4 MB, free: 34.87 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002528/0.3161, allocations: 214.7 kB / 428.6 MB, free: 34.78 MB / 350.1 MB Notification: Performance of pre-optimization done (n=31): time 1.743e-06/0.3161, allocations: 3.375 kB / 428.6 MB, free: 34.78 MB / 350.1 MB Notification: Performance of matching and sorting (n=31): time 0.0007159/0.3168, allocations: 0.588 MB / 429.2 MB, free: 34.55 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.162e-05/0.3169, allocations: 147.1 kB / 429.3 MB, free: 34.4 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001582/0.317, allocations: 218.8 kB / 429.6 MB, free: 34.28 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.522e-05/0.3171, allocations: 45.06 kB / 429.6 MB, free: 34.25 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.804e-05/0.3172, allocations: 179.1 kB / 429.8 MB, free: 34.14 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.738e-05/0.3172, allocations: 63.92 kB / 429.8 MB, free: 34.1 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.124e-05/0.3172, allocations: 12.28 kB / 429.8 MB, free: 34.1 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.758e-05/0.3173, allocations: 338.2 kB / 430.2 MB, free: 33.78 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001468/0.3175, allocations: 96.11 kB / 430.3 MB, free: 33.78 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001682/0.3176, allocations: 235.7 kB / 430.5 MB, free: 33.61 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000183/0.3178, allocations: 141.3 kB / 430.6 MB, free: 33.61 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.168e-06/0.3178, allocations: 4 kB / 430.6 MB, free: 33.6 MB / 350.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0004781/0.3183, allocations: 377.1 kB / 431 MB, free: 33.56 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.719e-05/0.3183, allocations: 6.812 kB / 431 MB, free: 33.56 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.917e-06/0.3184, allocations: 9.719 kB / 431 MB, free: 33.55 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.894e-05/0.3184, allocations: 9.406 kB / 431 MB, free: 33.55 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000177/0.3186, allocations: 60.02 kB / 431.1 MB, free: 33.55 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.167e-05/0.3186, allocations: 15.91 kB / 431.1 MB, free: 33.55 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001261/0.3187, allocations: 31.31 kB / 431.1 MB, free: 33.54 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.408e-05/0.3187, allocations: 14.81 kB / 431.2 MB, free: 33.54 MB / 350.1 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,$whenCondition2,addInteger.pkgOut[1].trigger,addInteger.pkgOut[1].backwardTrigger,addInteger.u[1],$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.0001665/0.3189, allocations: 199.6 kB / 431.4 MB, free: 33.41 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.366e-05/0.319, allocations: 26.97 kB / 431.4 MB, free: 33.4 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002639/0.3192, allocations: 192.5 kB / 431.6 MB, free: 33.36 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.189e-06/0.3192, allocations: 6 kB / 431.6 MB, free: 33.36 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.503e-06/0.3193, allocations: 0 / 431.6 MB, free: 33.36 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.432e-06/0.3193, allocations: 2.875 kB / 431.6 MB, free: 33.36 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007581/0.32, allocations: 0.8357 MB / 432.4 MB, free: 32.97 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.925e-06/0.32, allocations: 5.828 kB / 432.4 MB, free: 32.97 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.191e-05/0.3201, allocations: 8.812 kB / 432.4 MB, free: 32.97 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.697e-06/0.3201, allocations: 2.531 kB / 432.4 MB, free: 32.97 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.083e-05/0.3201, allocations: 8.109 kB / 432.4 MB, free: 32.97 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.225e-06/0.3201, allocations: 6.094 kB / 432.4 MB, free: 32.97 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.3202, allocations: 4.656 kB / 432.4 MB, free: 32.97 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004916/0.3206, allocations: 0.5687 MB / 433 MB, free: 32.69 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.245e-05/0.3207, allocations: 97.42 kB / 433.1 MB, free: 32.58 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.18e-05/0.3207, allocations: 9.984 kB / 433.1 MB, free: 32.58 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000122/0.3209, allocations: 10.61 kB / 433.1 MB, free: 32.58 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.061e-05/0.3209, allocations: 18.67 kB / 433.1 MB, free: 32.58 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.912e-05/0.3209, allocations: 20.27 kB / 433.2 MB, free: 32.57 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.176e-05/0.321, allocations: 121 kB / 433.3 MB, free: 32.5 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.321, allocations: 0 / 433.3 MB, free: 32.5 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004597/0.3215, allocations: 115 kB / 433.4 MB, free: 32.48 MB / 350.1 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.0005297/0.322, allocations: 320.5 kB / 433.7 MB, free: 32.36 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003865/0.3224, allocations: 267.6 kB / 434 MB, free: 32.36 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.3224, allocations: 0 / 434 MB, free: 32.36 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001699/0.3226, allocations: 125.8 kB / 434.1 MB, free: 32.36 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000336/0.3229, allocations: 40.58 kB / 434.1 MB, free: 32.36 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008725/0.3238, allocations: 0.6389 MB / 434.8 MB, free: 32 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001728/0.324, allocations: 0.7816 MB / 435.6 MB, free: 31.3 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.17e-05/0.3241, allocations: 38.56 kB / 435.6 MB, free: 31.29 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.386e-05/0.3242, allocations: 27.12 kB / 435.6 MB, free: 31.29 MB / 350.1 MB Notification: Performance of SimCode: time 1.112e-06/0.3242, allocations: 0 / 435.6 MB, free: 31.29 MB / 350.1 MB Notification: Performance of Templates: time 0.006116/0.3303, allocations: 3.738 MB / 439.4 MB, free: 30.95 MB / 350.1 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)