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.001477/0.001477, allocations: 181 kB / 15.8 MB, free: 6.336 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.331/1.331, allocations: 223.2 MB / 239.7 MB, free: 44 kB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008468/0.0008468, allocations: 96.78 kB / 290.9 MB, free: 4.473 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.05402/0.05402, allocations: 12.05 MB / 354.1 MB, free: 1.289 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003954/0.0003956, allocations: 8 kB / 417.9 MB, free: 1.402 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2119/0.2123, allocations: 53.35 MB / 471.2 MB, free: 65.11 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09764/0.31, allocations: 85.27 MB / 0.5435 GB, free: 11.73 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001887/0.3102, allocations: 75.95 kB / 0.5435 GB, free: 11.66 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02477/0.335, allocations: 7.559 MB / 0.5509 GB, free: 4.074 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.705e-06/0.335, allocations: 0 / 0.5509 GB, free: 4.074 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.264e-05/0.3351, allocations: 15.94 kB / 0.5509 GB, free: 4.059 MB / 378.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.001615/0.3367, allocations: 0.8273 MB / 0.5517 GB, free: 3.156 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.486e-05/0.3368, allocations: 8.031 kB / 0.5518 GB, free: 3.148 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001124/0.3369, allocations: 39.53 kB / 0.5518 GB, free: 3.109 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005391/0.3375, allocations: 303 kB / 0.5521 GB, free: 2.77 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.773e-05/0.3375, allocations: 28.66 kB / 0.5521 GB, free: 2.742 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.3e-05/0.3376, allocations: 35.98 kB / 0.5521 GB, free: 2.707 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008973/0.3385, allocations: 395.2 kB / 0.5525 GB, free: 2.301 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.712e-05/0.3385, allocations: 0 / 0.5525 GB, free: 2.301 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.002e-05/0.3386, allocations: 12 kB / 0.5525 GB, free: 2.289 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.988e-05/0.3386, allocations: 8 kB / 0.5525 GB, free: 2.281 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005343/0.3392, allocations: 217.6 kB / 0.5527 GB, free: 2.07 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00196/0.3411, allocations: 1.284 MB / 0.554 GB, free: 0.7109 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005731/0.3417, allocations: 277.3 kB / 0.5543 GB, free: 400 kB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.608e-05/0.3418, allocations: 8.125 kB / 0.5543 GB, free: 392 kB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000457/0.3423, allocations: 224.5 kB / 0.5545 GB, free: 132 kB / 378.7 MB Notification: Performance of pre-optimization done (n=34): time 2.855e-06/0.3423, allocations: 0 / 0.5545 GB, free: 132 kB / 378.7 MB Notification: Performance of matching and sorting (n=34): time 0.198/0.5402, allocations: 0.5997 MB / 0.5551 GB, free: 87.48 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.462e-05/0.5404, allocations: 174.7 kB / 0.5552 GB, free: 87.29 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002883/0.5407, allocations: 209.3 kB / 0.5554 GB, free: 87.19 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.89e-05/0.5407, allocations: 41.73 kB / 0.5555 GB, free: 87.16 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001167/0.5408, allocations: 180.4 kB / 0.5556 GB, free: 87.05 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.91e-05/0.5409, allocations: 84.27 kB / 0.5557 GB, free: 87.02 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.562e-05/0.5409, allocations: 13.58 kB / 0.5557 GB, free: 87.02 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.297e-05/0.541, allocations: 338 kB / 0.5561 GB, free: 86.71 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002215/0.5413, allocations: 103.4 kB / 0.5562 GB, free: 86.71 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002787/0.5415, allocations: 266.7 kB / 0.5564 GB, free: 86.52 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002508/0.5418, allocations: 147.9 kB / 0.5566 GB, free: 86.52 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.442e-06/0.5418, allocations: 2.25 kB / 0.5566 GB, free: 86.52 MB / 378.7 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.0007113/0.5425, allocations: 417 kB / 0.557 GB, free: 86.46 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.092e-05/0.5426, allocations: 8.312 kB / 0.557 GB, free: 86.46 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.233e-05/0.5426, allocations: 5.5 kB / 0.557 GB, free: 86.46 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.217e-05/0.5426, allocations: 9.547 kB / 0.557 GB, free: 86.46 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002393/0.5429, allocations: 63.08 kB / 0.557 GB, free: 86.45 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.418e-05/0.5429, allocations: 18.77 kB / 0.5571 GB, free: 86.45 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001529/0.543, allocations: 31.22 kB / 0.5571 GB, free: 86.44 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.365e-05/0.5431, allocations: 22.14 kB / 0.5571 GB, free: 86.44 MB / 378.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 () * Number of clocked 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.000203/0.5433, allocations: 205.6 kB / 0.5573 GB, free: 86.31 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.503e-05/0.5433, allocations: 26.08 kB / 0.5573 GB, free: 86.3 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000485/0.5438, allocations: 289.6 kB / 0.5576 GB, free: 86.25 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.154e-06/0.5438, allocations: 5.156 kB / 0.5576 GB, free: 86.25 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.394e-06/0.5439, allocations: 5.719 kB / 0.5576 GB, free: 86.25 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.282e-06/0.5439, allocations: 3.188 kB / 0.5576 GB, free: 86.25 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009326/0.5448, allocations: 0.7562 MB / 0.5584 GB, free: 85.94 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.776e-06/0.5448, allocations: 0 / 0.5584 GB, free: 85.94 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.826e-05/0.5449, allocations: 15.41 kB / 0.5584 GB, free: 85.94 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.28e-06/0.5449, allocations: 10.67 kB / 0.5584 GB, free: 85.93 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.974e-05/0.5449, allocations: 14.97 kB / 0.5584 GB, free: 85.93 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.186e-06/0.5449, allocations: 3.234 kB / 0.5584 GB, free: 85.93 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.545, allocations: 1.5 kB / 0.5584 GB, free: 85.93 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006079/0.5456, allocations: 0.5192 MB / 0.5589 GB, free: 85.68 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.166e-05/0.5456, allocations: 104 kB / 0.559 GB, free: 85.58 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.834e-05/0.5457, allocations: 5.797 kB / 0.559 GB, free: 85.58 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001121/0.5458, allocations: 12.06 kB / 0.559 GB, free: 85.58 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.511e-05/0.5459, allocations: 23.22 kB / 0.559 GB, free: 85.57 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.989e-05/0.5459, allocations: 23.61 kB / 0.5591 GB, free: 85.57 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001143/0.546, allocations: 126.7 kB / 0.5592 GB, free: 85.5 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.51e-07/0.546, allocations: 1.188 kB / 0.5592 GB, free: 85.5 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005071/0.5465, allocations: 129.7 kB / 0.5593 GB, free: 85.49 MB / 378.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) * Number of clocked states: 0 () * 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.0006222/0.5472, allocations: 338 kB / 0.5596 GB, free: 85.37 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005239/0.5477, allocations: 311.3 kB / 0.5599 GB, free: 85.33 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.5477, allocations: 0 / 0.5599 GB, free: 85.33 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000226/0.548, allocations: 138.7 kB / 0.5601 GB, free: 85.32 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003459/0.5483, allocations: 40.09 kB / 0.5601 GB, free: 85.32 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008697/0.5492, allocations: 0.6259 MB / 0.5607 GB, free: 84.95 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002371/0.5494, allocations: 0.7919 MB / 0.5615 GB, free: 84.24 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001232/0.5496, allocations: 42.38 kB / 0.5615 GB, free: 84.23 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.477e-05/0.5496, allocations: 26.22 kB / 0.5616 GB, free: 84.23 MB / 378.7 MB Notification: Performance of SimCode: time 2.7e-07/0.5496, allocations: 0 / 0.5616 GB, free: 84.23 MB / 378.7 MB Notification: Performance of Templates: time 0.007553/0.5572, allocations: 3.924 MB / 0.5654 GB, free: 83.92 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)