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.0.0-master/package.mo", uses=false) Using package Modelica_DeviceDrivers with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.0.0-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.0009996/0.0009997, allocations: 168.2 kB / 16.8 MB, free: 5.027 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.326/1.326, allocations: 223.3 MB / 240.8 MB, free: 10.02 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.0007868/0.0007868, allocations: 93.69 kB / 292 MB, free: 10.6 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.0.0-master/package.mo): time 0.05579/0.05579, allocations: 12.05 MB / 355.2 MB, free: 11.84 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003507/0.0003508, allocations: 12 kB / 419.2 MB, free: 53.57 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07917/0.07954, allocations: 53.35 MB / 472.5 MB, free: 260 kB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.277/0.3565, allocations: 85.29 MB / 0.5447 GB, free: 12.32 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002152/0.3568, allocations: 75.95 kB / 0.5448 GB, free: 12.25 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01967/0.3765, allocations: 7.559 MB / 0.5522 GB, free: 4.684 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.663e-06/0.3765, allocations: 0 / 0.5522 GB, free: 4.684 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.916e-05/0.3766, allocations: 11.98 kB / 0.5522 GB, free: 4.672 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.001271/0.3778, allocations: 0.8119 MB / 0.553 GB, free: 3.789 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.268e-05/0.3779, allocations: 15.97 kB / 0.553 GB, free: 3.773 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001016/0.378, allocations: 48.45 kB / 0.553 GB, free: 3.727 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004123/0.3784, allocations: 300.2 kB / 0.5533 GB, free: 3.391 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.581e-05/0.3785, allocations: 29 kB / 0.5534 GB, free: 3.363 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.085e-05/0.3785, allocations: 40.38 kB / 0.5534 GB, free: 3.324 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006147/0.3791, allocations: 391.7 kB / 0.5538 GB, free: 2.914 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.546e-05/0.3792, allocations: 192 / 0.5538 GB, free: 2.914 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.766e-05/0.3792, allocations: 23.92 kB / 0.5538 GB, free: 2.891 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.016e-05/0.3792, allocations: 8 kB / 0.5538 GB, free: 2.883 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003816/0.3796, allocations: 209.6 kB / 0.554 GB, free: 2.68 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001553/0.3812, allocations: 1.295 MB / 0.5553 GB, free: 1.305 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003989/0.3816, allocations: 272.3 kB / 0.5555 GB, free: 0.9961 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001866/0.3818, allocations: 130.2 kB / 0.5556 GB, free: 0.8555 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.394e-05/0.3818, allocations: 8 kB / 0.5557 GB, free: 0.8477 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003047/0.3821, allocations: 225.1 kB / 0.5559 GB, free: 0.5938 MB / 362.7 MB Notification: Performance of pre-optimization done (n=34): time 2.996e-06/0.3822, allocations: 0 / 0.5559 GB, free: 0.5938 MB / 362.7 MB Notification: Performance of matching and sorting (n=34): time 0.0008341/0.383, allocations: 465.6 kB / 0.5563 GB, free: 136 kB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001066/0.3831, allocations: 174.2 kB / 0.5565 GB, free: 15.93 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002114/0.3833, allocations: 235.7 kB / 0.5567 GB, free: 15.68 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.084e-05/0.3834, allocations: 45.69 kB / 0.5568 GB, free: 15.63 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001037/0.3835, allocations: 176.5 kB / 0.5569 GB, free: 15.45 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.537e-05/0.3836, allocations: 83.05 kB / 0.557 GB, free: 15.37 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.826e-05/0.3836, allocations: 11.94 kB / 0.557 GB, free: 15.36 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001108/0.3837, allocations: 342.8 kB / 0.5573 GB, free: 15.02 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001889/0.3839, allocations: 101.1 kB / 0.5574 GB, free: 14.92 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002607/0.3842, allocations: 265.8 kB / 0.5577 GB, free: 14.59 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004625/0.3847, allocations: 392.2 kB / 0.5581 GB, free: 14.13 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.897e-06/0.3847, allocations: 0 / 0.5581 GB, free: 14.13 MB / 378.7 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.0006637/0.3853, allocations: 412.8 kB / 0.5585 GB, free: 13.72 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.93e-05/0.3854, allocations: 8.656 kB / 0.5585 GB, free: 13.71 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.022e-05/0.3854, allocations: 4 kB / 0.5585 GB, free: 13.71 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.239e-05/0.3854, allocations: 15.94 kB / 0.5585 GB, free: 13.7 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002266/0.3857, allocations: 67.83 kB / 0.5585 GB, free: 13.63 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.651e-05/0.3857, allocations: 15.88 kB / 0.5586 GB, free: 13.61 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000166/0.3858, allocations: 27.75 kB / 0.5586 GB, free: 13.59 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.945e-05/0.3859, allocations: 28.08 kB / 0.5586 GB, free: 13.56 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.00025/0.3862, allocations: 207 kB / 0.5588 GB, free: 13.35 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.262e-05/0.3862, allocations: 27.72 kB / 0.5588 GB, free: 13.32 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004967/0.3867, allocations: 287.2 kB / 0.5591 GB, free: 13.03 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.897e-06/0.3867, allocations: 7.984 kB / 0.5591 GB, free: 13.02 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.206e-06/0.3867, allocations: 4 kB / 0.5591 GB, free: 13.02 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.781e-06/0.3868, allocations: 0 / 0.5591 GB, free: 13.02 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000997/0.3878, allocations: 0.7516 MB / 0.5599 GB, free: 12.21 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.839e-06/0.3878, allocations: 4 kB / 0.5599 GB, free: 12.21 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.372e-05/0.3878, allocations: 19.92 kB / 0.5599 GB, free: 12.19 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.069e-06/0.3879, allocations: 0 / 0.5599 GB, free: 12.19 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.766e-05/0.3879, allocations: 12.3 kB / 0.5599 GB, free: 12.18 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.858e-06/0.3879, allocations: 8 kB / 0.5599 GB, free: 12.17 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.3879, allocations: 0 / 0.5599 GB, free: 12.17 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006766/0.3886, allocations: 0.4941 MB / 0.5604 GB, free: 11.65 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.558e-05/0.3887, allocations: 92.92 kB / 0.5605 GB, free: 11.54 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.888e-05/0.3887, allocations: 4 kB / 0.5605 GB, free: 11.54 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001066/0.3888, allocations: 11.98 kB / 0.5605 GB, free: 11.52 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.208e-05/0.3889, allocations: 19.97 kB / 0.5605 GB, free: 11.5 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.904e-05/0.389, allocations: 19.92 kB / 0.5605 GB, free: 11.48 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.00013/0.3891, allocations: 124.4 kB / 0.5606 GB, free: 11.36 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3891, allocations: 8 kB / 0.5607 GB, free: 11.36 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005761/0.3897, allocations: 131.8 kB / 0.5608 GB, free: 11.23 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.0007264/0.3904, allocations: 339.6 kB / 0.5611 GB, free: 10.94 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005239/0.391, allocations: 310.5 kB / 0.5614 GB, free: 10.64 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/0.391, allocations: 0 / 0.5614 GB, free: 10.64 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002134/0.3912, allocations: 135.8 kB / 0.5615 GB, free: 10.51 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004557/0.3916, allocations: 54.06 kB / 0.5616 GB, free: 10.46 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001006/0.3927, allocations: 0.6315 MB / 0.5622 GB, free: 9.789 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003201/0.393, allocations: 0.7798 MB / 0.563 GB, free: 8.984 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001453/0.3932, allocations: 42.94 kB / 0.563 GB, free: 8.945 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.117e-05/0.3932, allocations: 27.44 kB / 0.563 GB, free: 8.918 MB / 378.7 MB Notification: Performance of SimCode: time 1.442e-06/0.3932, allocations: 4 kB / 0.563 GB, free: 8.914 MB / 378.7 MB Notification: Performance of Templates: time 0.008014/0.4012, allocations: 3.943 MB / 0.5669 GB, free: 5.035 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)