Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemoryExternalTrigger.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_SharedMemoryExternalTrigger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemoryExternalTrigger") translateModel(Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemoryExternalTrigger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemoryExternalTrigger") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009631/0.0009631, 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.251/1.251, allocations: 221.4 MB / 235.1 MB, free: 14.43 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.0008367/0.0008366, allocations: 98.47 kB / 286.1 MB, free: 12.97 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.05231/0.05231, allocations: 11.91 MB / 348.9 MB, free: 14.38 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 3.016e-05/3.032e-05, allocations: 0 / 410.1 MB, free: 58.26 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08524/0.08529, allocations: 53.36 MB / 463.5 MB, free: 4.875 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2954/0.3807, allocations: 85.2 MB / 0.5358 GB, free: 14.11 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002045/0.381, allocations: 68.59 kB / 0.5359 GB, free: 14.08 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01858/0.3996, allocations: 7.519 MB / 0.5432 GB, free: 7.73 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.126e-06/0.3996, allocations: 0 / 0.5432 GB, free: 7.73 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.808e-05/0.3996, allocations: 19.92 kB / 0.5432 GB, free: 7.711 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: 85 * Number of variables: 85 Notification: Performance of Generate backend data structure: time 0.0009878/0.4006, allocations: 0.8045 MB / 0.544 GB, free: 6.898 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.326e-05/0.4006, allocations: 8.031 kB / 0.544 GB, free: 6.891 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.121e-05/0.4007, allocations: 43.53 kB / 0.5441 GB, free: 6.848 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003581/0.4011, allocations: 294.1 kB / 0.5444 GB, free: 6.547 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.435e-05/0.4011, allocations: 31.83 kB / 0.5444 GB, free: 6.523 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.695e-05/0.4012, allocations: 35.25 kB / 0.5444 GB, free: 6.5 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005337/0.4017, allocations: 382.6 kB / 0.5448 GB, free: 6.191 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.115e-05/0.4017, allocations: 4 kB / 0.5448 GB, free: 6.188 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.14e-05/0.4018, allocations: 15.38 kB / 0.5448 GB, free: 6.184 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.029e-05/0.4018, allocations: 8 kB / 0.5448 GB, free: 6.176 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003163/0.4021, allocations: 203.1 kB / 0.545 GB, free: 6.039 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00127/0.4034, allocations: 1.285 MB / 0.5463 GB, free: 4.836 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003325/0.4037, allocations: 270.3 kB / 0.5465 GB, free: 4.582 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001527/0.4039, allocations: 118.9 kB / 0.5466 GB, free: 4.484 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.898e-05/0.4039, allocations: 8 kB / 0.5466 GB, free: 4.477 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002631/0.4042, allocations: 230.9 kB / 0.5469 GB, free: 4.262 MB / 362.7 MB Notification: Performance of pre-optimization done (n=34): time 1.673e-06/0.4042, allocations: 0 / 0.5469 GB, free: 4.262 MB / 362.7 MB Notification: Performance of matching and sorting (n=34): time 0.0005966/0.4048, allocations: 365.5 kB / 0.5472 GB, free: 3.969 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.933e-05/0.4049, allocations: 172.6 kB / 0.5474 GB, free: 3.77 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001746/0.4051, allocations: 215.3 kB / 0.5476 GB, free: 3.586 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.239e-05/0.4051, allocations: 45.08 kB / 0.5476 GB, free: 3.543 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.872e-05/0.4052, allocations: 183.4 kB / 0.5478 GB, free: 3.387 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.318e-05/0.4053, allocations: 89.17 kB / 0.5479 GB, free: 3.316 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.623e-05/0.4053, allocations: 6.938 kB / 0.5479 GB, free: 3.316 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.964e-05/0.4054, allocations: 336.6 kB / 0.5482 GB, free: 2.988 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001548/0.4056, allocations: 105.9 kB / 0.5483 GB, free: 2.918 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002234/0.4058, allocations: 255.6 kB / 0.5485 GB, free: 2.641 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001969/0.406, allocations: 149.8 kB / 0.5487 GB, free: 2.535 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.955e-06/0.406, allocations: 0 / 0.5487 GB, free: 2.535 MB / 362.7 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.0005475/0.4066, allocations: 421.8 kB / 0.5491 GB, free: 2.199 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.562e-05/0.4066, allocations: 8 kB / 0.5491 GB, free: 2.191 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.384e-06/0.4066, allocations: 4 kB / 0.5491 GB, free: 2.188 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.638e-05/0.4066, allocations: 8 kB / 0.5491 GB, free: 2.18 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002092/0.4069, allocations: 63.09 kB / 0.5492 GB, free: 2.121 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.35e-05/0.4069, allocations: 11.94 kB / 0.5492 GB, free: 2.109 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001384/0.407, allocations: 26.47 kB / 0.5492 GB, free: 2.09 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.847e-05/0.4071, allocations: 27.14 kB / 0.5492 GB, free: 2.066 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * Number of states: 0 () * Number of discrete variables: 50 ($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,$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],sharedMemoryRead.internalTrigger,sharedMemoryWrite.internalTrigger,enable.y,$whenCondition2,$whenCondition1,addInteger.pkgOut[1].trigger,sharedMemoryRead.trigger,$PRE.zeroCrossing1.u_pos,zeroCrossing1.u_pos,$PRE.zeroCrossing1.disable,zeroCrossing1.disable,$PRE.zeroCrossing1.enable,zeroCrossing1.enable,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 (58): * Single equations (assignments): 58 * 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.0001181/0.4072, allocations: 164.3 kB / 0.5494 GB, free: 1.91 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.069e-05/0.4072, allocations: 31.66 kB / 0.5494 GB, free: 1.879 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004129/0.4076, allocations: 283.1 kB / 0.5497 GB, free: 1.66 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.229e-06/0.4077, allocations: 4 kB / 0.5497 GB, free: 1.656 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.51e-06/0.4077, allocations: 8 kB / 0.5497 GB, free: 1.648 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.701e-06/0.4077, allocations: 3.984 kB / 0.5497 GB, free: 1.645 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008097/0.4085, allocations: 0.7485 MB / 0.5504 GB, free: 0.9844 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.4085, allocations: 0 / 0.5504 GB, free: 0.9844 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.448e-05/0.4086, allocations: 19.92 kB / 0.5505 GB, free: 0.9648 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.546e-06/0.4086, allocations: 0 / 0.5505 GB, free: 0.9648 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.339e-05/0.4086, allocations: 11.42 kB / 0.5505 GB, free: 0.957 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.851e-06/0.4086, allocations: 7.953 kB / 0.5505 GB, free: 0.9492 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.355e-06/0.4086, allocations: 4.094 kB / 0.5505 GB, free: 0.9453 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005585/0.4092, allocations: 0.5321 MB / 0.551 GB, free: 456 kB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.108e-05/0.4093, allocations: 100.9 kB / 0.5511 GB, free: 336 kB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.522e-05/0.4093, allocations: 11.44 kB / 0.5511 GB, free: 328 kB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001082/0.4094, allocations: 11.48 kB / 0.5511 GB, free: 320 kB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.346e-05/0.4095, allocations: 23.55 kB / 0.5511 GB, free: 300 kB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.288e-05/0.4095, allocations: 15.98 kB / 0.5512 GB, free: 284 kB / 362.7 MB Notification: Performance of sorting global known variables: time 8.03e-05/0.4096, allocations: 122.7 kB / 0.5513 GB, free: 176 kB / 362.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.4096, allocations: 4 kB / 0.5513 GB, free: 172 kB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004367/0.4101, allocations: 134.9 kB / 0.5514 GB, free: 56 kB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 30 (sharedMemoryWrite.internalTrigger,sharedMemoryRead.internalTrigger,getReal.pkgIn.autoPkgBitSize,getInteger.pkgIn.autoPkgBitSize,sharedMemoryRead.bufferSize,sharedMemoryRead.trigger,addInteger.pkgOut[1].trigger,$whenCondition2,$whenCondition1,packager.pkgOut.dummy,addReal.pkgOut[1].dummy,addInteger.pkgOut[1].dummy,addInteger.u[1],sharedMemoryWrite.bufferSize,sharedMemoryWrite.dummy,getReal.pkgOut[1].dummy,getReal.y[1],getReal.y[2],getReal.y[3],getReal.dummy,getInteger.y[1],getInteger.dummy,sharedMemoryRead.pkgOut.dummy,zeroCrossing1.u_pos,packager.backwardPropagatedBufferSize,packager.bufferSize,addReal.pkgIn.autoPkgBitSize,addInteger.pkgIn.autoPkgBitSize,sharedMemoryWrite.pkgIn.userPkgBitSize,sharedMemoryWrite.pkgIn.autoPkgBitSize) * Number of discrete states: 1 (zeroCrossing1.u_pos) * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 12 * 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.0006162/0.4107, allocations: 311.1 kB / 0.5517 GB, free: 15.8 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004206/0.4111, allocations: 304.7 kB / 0.552 GB, free: 15.57 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.4111, allocations: 3.938 kB / 0.552 GB, free: 15.57 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001821/0.4113, allocations: 130.1 kB / 0.5521 GB, free: 15.47 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003087/0.4116, allocations: 39.39 kB / 0.5522 GB, free: 15.44 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006564/0.4123, allocations: 413.2 kB / 0.5526 GB, free: 15.06 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003225/0.4126, allocations: 0.7948 MB / 0.5533 GB, free: 14.24 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001104/0.4127, allocations: 42.88 kB / 0.5534 GB, free: 14.2 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.623e-05/0.4128, allocations: 30.61 kB / 0.5534 GB, free: 14.17 MB / 378.7 MB Notification: Performance of SimCode: time 2.91e-07/0.4128, allocations: 0 / 0.5534 GB, free: 14.17 MB / 378.7 MB Notification: Performance of Templates: time 0.007097/0.4199, allocations: 3.931 MB / 0.5572 GB, free: 10.31 MB / 378.7 MB make -j1 -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemoryExternalTrigger.makefile (rm -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemoryExternalTrigger.pipe ; mkfifo Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemoryExternalTrigger.pipe ; head -c 1048576 < Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemoryExternalTrigger.pipe >> ../files/Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemoryExternalTrigger.sim & ./Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemoryExternalTrigger -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemoryExternalTrigger.pipe 2>&1)