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: "" <> buildModelFMU(Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemory,fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers_Blocks_Examples_TestSerialPackager_SharedMemory",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemory,fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers_Blocks_Examples_TestSerialPackager_SharedMemory",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001418/0.001418, 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.55/1.55, allocations: 221.5 MB / 230 MB, free: 7.562 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.0008485/0.0008486, allocations: 104.4 kB / 280.9 MB, free: 5.32 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.04856/0.04856, allocations: 11.91 MB / 343.6 MB, free: 3.496 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.557e-05/1.555e-05, allocations: 2.688 kB / 403.2 MB, free: 45.37 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09206/0.0921, allocations: 53.36 MB / 456.6 MB, free: 14.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3906/0.4828, allocations: 83.93 MB / 0.5278 GB, free: 16.79 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000302/0.4832, allocations: 72.94 kB / 0.5279 GB, free: 16.79 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0193/0.5025, allocations: 7.198 MB / 0.5349 GB, free: 16.11 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.713e-06/0.5025, allocations: 0 / 0.5349 GB, free: 16.11 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.61e-05/0.5025, allocations: 7.5 kB / 0.5349 GB, free: 16.11 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.001376/0.5039, allocations: 0.7883 MB / 0.5357 GB, free: 15.52 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.919e-05/0.504, allocations: 13.62 kB / 0.5357 GB, free: 15.52 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001081/0.5041, allocations: 33.06 kB / 0.5358 GB, free: 15.5 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004341/0.5046, allocations: 298.1 kB / 0.536 GB, free: 15.27 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.056e-05/0.5046, allocations: 12.64 kB / 0.5361 GB, free: 15.27 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.994e-05/0.5047, allocations: 21.62 kB / 0.5361 GB, free: 15.27 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000449/0.5051, allocations: 159.8 kB / 0.5362 GB, free: 15.27 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006848/0.5058, allocations: 325.1 kB / 0.5365 GB, free: 15.17 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.7e-05/0.5059, allocations: 1.031 kB / 0.5365 GB, free: 15.17 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.837e-05/0.5059, allocations: 3.703 kB / 0.5365 GB, free: 15.17 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.589e-05/0.5059, allocations: 7.875 kB / 0.5366 GB, free: 15.17 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001293/0.5072, allocations: 1.084 MB / 0.5376 GB, free: 14.46 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003742/0.5076, allocations: 224.6 kB / 0.5378 GB, free: 14.36 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001553/0.5078, allocations: 120.2 kB / 0.5379 GB, free: 14.32 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.063e-05/0.5078, allocations: 2.906 kB / 0.5379 GB, free: 14.32 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002237/0.5081, allocations: 201.2 kB / 0.5381 GB, free: 14.22 MB / 362.7 MB Notification: Performance of pre-optimization done (n=31): time 1.693e-06/0.5081, allocations: 224 / 0.5381 GB, free: 14.22 MB / 362.7 MB Notification: Performance of matching and sorting (n=31): time 0.0007458/0.5088, allocations: 354.1 kB / 0.5385 GB, free: 14.17 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.768e-05/0.5089, allocations: 147.4 kB / 0.5386 GB, free: 14.02 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001534/0.509, allocations: 196.9 kB / 0.5388 GB, free: 13.9 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.516e-05/0.5091, allocations: 35.86 kB / 0.5388 GB, free: 13.87 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.08e-05/0.5091, allocations: 170.6 kB / 0.539 GB, free: 13.75 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.282e-05/0.5092, allocations: 79.03 kB / 0.5391 GB, free: 13.7 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.449e-05/0.5092, allocations: 0 / 0.5391 GB, free: 13.7 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 5.511e-05/0.5093, allocations: 336.8 kB / 0.5394 GB, free: 13.39 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000132/0.5094, allocations: 80.06 kB / 0.5395 GB, free: 13.39 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001875/0.5096, allocations: 228.7 kB / 0.5397 GB, free: 13.21 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002589/0.5099, allocations: 129.8 kB / 0.5398 GB, free: 13.2 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.078e-06/0.5099, allocations: 1.531 kB / 0.5398 GB, free: 13.2 MB / 362.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0005766/0.5105, allocations: 345.7 kB / 0.5401 GB, free: 13.12 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.95e-05/0.5105, allocations: 13.16 kB / 0.5402 GB, free: 13.11 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.052e-05/0.5105, allocations: 5.062 kB / 0.5402 GB, free: 13.11 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.138e-05/0.5106, allocations: 7.844 kB / 0.5402 GB, free: 13.11 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002031/0.5108, allocations: 57.23 kB / 0.5402 GB, free: 13.11 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.539e-05/0.5108, allocations: 13.69 kB / 0.5402 GB, free: 13.11 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001261/0.5109, allocations: 22.31 kB / 0.5403 GB, free: 13.09 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.612e-05/0.511, allocations: 29.8 kB / 0.5403 GB, free: 13.08 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.000575/0.5115, allocations: 143.5 kB / 0.5404 GB, free: 28.96 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.000672/0.5122, allocations: 350.8 kB / 0.5408 GB, free: 28.91 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.51e-05/0.5123, allocations: 24.66 kB / 0.5408 GB, free: 28.9 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003052/0.5126, allocations: 187.3 kB / 0.541 GB, free: 28.86 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.867e-06/0.5126, allocations: 3.781 kB / 0.541 GB, free: 28.86 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.121e-06/0.5126, allocations: 7.797 kB / 0.541 GB, free: 28.85 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.15e-06/0.5126, allocations: 1.734 kB / 0.541 GB, free: 28.85 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008242/0.5134, allocations: 0.7481 MB / 0.5417 GB, free: 28.49 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.956e-06/0.5135, allocations: 3.875 kB / 0.5417 GB, free: 28.49 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.365e-05/0.5135, allocations: 11.19 kB / 0.5417 GB, free: 28.49 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.717e-06/0.5135, allocations: 3.969 kB / 0.5417 GB, free: 28.49 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.056e-05/0.5135, allocations: 7.578 kB / 0.5417 GB, free: 28.49 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.096e-06/0.5136, allocations: 7.828 kB / 0.5417 GB, free: 28.48 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.597e-06/0.5136, allocations: 3.984 kB / 0.5417 GB, free: 28.48 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006654/0.5142, allocations: 0.575 MB / 0.5423 GB, free: 28.18 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.252e-05/0.5143, allocations: 96.64 kB / 0.5424 GB, free: 28.07 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.587e-05/0.5143, allocations: 6.188 kB / 0.5424 GB, free: 28.07 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000126/0.5145, allocations: 13.92 kB / 0.5424 GB, free: 28.07 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.697e-05/0.5145, allocations: 21.44 kB / 0.5424 GB, free: 28.06 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.176e-05/0.5145, allocations: 14.34 kB / 0.5424 GB, free: 28.06 MB / 378.7 MB Notification: Performance of sorting global known variables: time 7.216e-05/0.5146, allocations: 121.9 kB / 0.5426 GB, free: 27.98 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5146, allocations: 0 / 0.5426 GB, free: 27.98 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005001/0.5151, allocations: 123.4 kB / 0.5427 GB, free: 27.95 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.001472/0.5166, allocations: 1.516 MB / 0.5442 GB, free: 26.85 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0003545/0.517, allocations: 253.8 kB / 0.5444 GB, free: 26.82 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.544e-06/0.517, allocations: 4.062 kB / 0.5444 GB, free: 26.82 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001537/0.5171, allocations: 114.9 kB / 0.5445 GB, free: 26.82 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003611/0.5175, allocations: 43.2 kB / 0.5446 GB, free: 26.81 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001036/0.5186, allocations: 0.5072 MB / 0.5451 GB, free: 26.58 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003264/0.5189, allocations: 0.7863 MB / 0.5458 GB, free: 25.88 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.000136/0.519, allocations: 41.69 kB / 0.5459 GB, free: 25.87 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001339/0.5192, allocations: 83.62 kB / 0.5459 GB, free: 25.86 MB / 378.7 MB Notification: Performance of SimCode: time 2.5e-07/0.5192, allocations: 0 / 0.5459 GB, free: 25.86 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02383/0.543, allocations: 5.647 MB / 0.5515 GB, free: 25.38 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001998/0.5433, allocations: 210.9 kB / 0.5517 GB, free: 25.09 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.888/2.431, allocations: 1.828 kB / 0.5517 GB, free: 25.09 MB / 378.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Modelica_DeviceDrivers_Modelica_DeviceDrivers_Blocks_Examples_TestSerialPackager_SharedMemory_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_DeviceDrivers_Modelica_DeviceDrivers_Blocks_Examples_TestSerialPackager_SharedMemory.fmu > Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemory.pipe 2>&1)